Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC ability to broadcast one local video stream to a peer but receive/display multiple video streams from several remote peers?

Tags:

webrtc

Basically I have a media server where I have multiple clients in a conference sending one stream and receiving multiple streams (the media server does not mix the streams to make it 1:1). I have it such that WebRTC/Chrome attaches and can exchange streams in a 1:1 scenario but am unclear if/how to do 1:N with WebRTC. To reiterate, it's not peer-to-peer-X-N, it's send one, receive many. Any thoughts? Thanks.

like image 366
mark Avatar asked Oct 18 '25 17:10

mark


1 Answers

The spec allows for receiving (and sending) multiple streams in a single RTCPeerConnection. However, the current implementations in Chrome (I believe) and Firefox do not enable that yet. You can receive mutliple RTCPeerConnections, so a possible workaround is for you to have multiple RTCPeerConnections to the server, one of which is sending, and the others of which are receive-only (there are constraints to createOffer() to (not) offer to receive audio and video without adding a MediaStream).

This would work similarly to the spec, except you'd be responsible for managing N RTCPeerConnections.

like image 68
jesup Avatar answered Oct 21 '25 15:10

jesup