-
Notifications
You must be signed in to change notification settings - Fork 197
Adding multiple streams to a single peer connection #54
Comments
Each input pad is a stream so you can have multiple input/output pads for multiple audio/video streams. The example already uses two streams, one for video and the other for audio. |
Okay so in the browser there would be a media source object with two different video tracks in this case. How would one go about having each track played in a separate video element? Eventually I want to have separate video elements, but I still can't even get it working in a single video element. Even though I have both video tracks in a single video element, I can't find a way to 'switch' between each track. Both tracks are by default 'enabled', and if I try disabling the first track then I still don't see the second track (I just see a black video). Is there any example code somewhere for dealing with multiple video tracks? Can't seem to find any anywhere. |
@ystreet ,
Is there any way to send 2+ unrelated videos via single
I have tried naive calling queue2
.get_static_pad("src").unwrap()
.link(&webrtcbin.get_request_pad("sink_%u").unwrap()); SDP seems to be correct:
But I have also tried adding multiple streams via Trying to hack into |
This is a werbtcbin question and should be directed at the GStreamer mailing list or IRC channel. |
Is there an easy way to add multiple video streams to a single peer connection?
Something like 'RTCPeerConnection.addTrack()' in the browser.
The text was updated successfully, but these errors were encountered: