How do I call without a MediaStream?
See original GitHub issueI have a use-case where:
- there are two people, Presenter and Viewer
- Presenter opens the page and gets a peer ID
- Presenter sends that peer ID to Viewer
- Viewer uses that peer ID to call Presenter
- Presenter sends his shared screen to the viewer
For this use-case I need, for the Viewer side:
var call = peer.call(presenterPeerID, null);
call.on('stream', function(theirWebcamStream) {
showWebcamStream(theirWebcamStream);
});
This does not work, because peer.call(presenterPeerID, null) returns undefined.
How do I call without sending a MediaStream?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
webrtc and peerjs: how to play a stream without starting his ...
We first create a function variable named getUserMedia which will be mapped to native webrtc method provided by browser (for example in case ......
Read more >MediaStream - Web APIs - MDN Web Docs - Mozilla
Chrome Edge
MediaStream Full support. Chrome55. more. Toggle history Full support. Edge...
MediaStream() constructor Full support. Chrome55. more. Toggle history Full support. Edge...
active Full support....
Read more >AddTrack to MediaStream not working - Google Groups
Hi, I am using twilio and get the MediaStream via the Twilio getLocalStream function. If I alter this I should be able to...
Read more >dom MediaStream - CodeProject Reference
Returns a list of all MediaStreamTrack objects stored in the MediaStream object, regardless of the value of the kind attribute. The order is...
Read more >Media Capture and Streams - W3C
A getCapabilities () call on a track returns the same underlying ... A MediaStream that does not have any tracks or only has...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You can create empty stream with any track, or with both:
+1