Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC multiple video streams in same peerConnection

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.

like image 847
dirtandfilth Avatar asked Sep 17 '14 10:09

dirtandfilth


People also ask

Can a video have multiple video streams?

Yes. MPEG-4 Part 14 (the MP4 container format) supports any number of objects (e.g. video, audio and subtitle streams) and isn't limited to only one stream per content type. In practice however, you seldom see a video file that has multiple video streams, because the range of applications for this is very limited.

How many connections can WebRTC handle?

As many as you like. You can cram anywhere from one to a million users into a WebRTC call. You've been asked to create a group video call, and obviously, the technology selected for the project was WebRTC. It is almost the only alternative out there and certainly the one with the best price-performance ratio.

What is peer to peer connection in WebRTC?

Peer connections is the part of the WebRTC specifications that deals with connecting two applications on different computers to communicate using a peer-to-peer protocol. The communication between peers can be video, audio or arbitrary binary data (for clients supporting the RTCDataChannel API).

What is WebRTC stream?

WebRTC (Web Real-Time Communication) is a technology that enables Web applications and sites to capture and optionally stream audio and/or video media, as well as to exchange arbitrary data between browsers without requiring an intermediary.


1 Answers

  • 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.
like image 97
Dr. Alex Gouaillard Avatar answered Nov 07 '22 21:11

Dr. Alex Gouaillard