Reputation: 5469
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.
Upvotes: 4
Views: 5879
Reputation: 6984
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.
Upvotes: 3
Reputation: 2207
You seem to need a peer 2 peer implementation of webRTC . I am not sure but you should check these:
https://hacks.mozilla.org/2013/03/webrtc-data-channels-for-great-multiplayer/
https://github.com/js-platform/p2p
Upvotes: 0