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.
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.
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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With