13

I am working on a WebRTC client and I would like to allow the clients to modify the ongoing audio/video session to add or remove an audio or video stream.

So for instance if there is an ongoing audio/video call between two clients, one client can modify the session and add another video stream to share his screen. So the remote client can see the video from the camera, and the video captured from the screen.

I do the modification by sending a re-INVITE with the updated SDP that will supposedly contain two video media lines.

My question is, would it be possible for the receiver to receive such SDP and deal with each video media line independently but over the same peerConnection?

Thank you.

dirtandfilth
  • 160
  • 1
  • 1
  • 7

1 Answers1

9
  • firefox is limited to 1 audio and 1 video now.
  • handling of multiple streams in a PC is still subject to 3 approaches: plan A, plan B and unified plan [here]. Hangout uses plan B, which is obviously supported by chrome for the time being. Firefox has announced they will support unified plan, ... the day they implement the feature.
  • in short, as the sdp interpretation is done by the browser, it is NOT possible today.
Community
  • 1
  • 1
Dr. Alex Gouaillard
  • 2,078
  • 14
  • 13
  • Thank you for your answer. I have been reading Plan B and the example that is shown there is exactly what I wanted to implement. I suppose it will work on Chrome. Is there anything I do not understand that you say it is NOT possible today? Apart from Firefox. – dirtandfilth Sep 19 '14 at 11:26
  • it is possible in chrome and that's it. The jitsi team, which is using plan B as well in their meet me bridge, has interconnection with hangout, but it comes at the price of not working in firefox. They have an one bug against firefox that has been ignored for quite some time. google jitsi+plan B+firefox. – Dr. Alex Gouaillard Sep 19 '14 at 16:09
  • 1
    I'm very confused, which plan A and plan B were you referring to? – Bill Yan Nov 05 '14 at 04:08
  • 2
    plan B: https://tools.ietf.org/html/draft-uberti-rtcweb-plan-00 Unified Plan: https://tools.ietf.org/html/draft-roach-mmusic-unified-plan-00 – Dr. Alex Gouaillard Nov 05 '14 at 15:30
  • @Dr. Alex Gouaillard the link you provided is a research paper or something. Is there a working solution with code example? – Raymond Aug 14 '21 at 22:14