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.
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.
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