Webrtc Videoconferencing (many-to-many)
Solution 1:
When C first receives offer from A, this is C setRemoteDescription(offerA), but when receiving offer from B, this is C setRemoteDescription(offerB), I am setting a new value here and losing the previous offer from A, is this procedure just temporary?, isn't C going to need the A offer anymore?
You will need to have a peer connection (pc
) in your client side per each other participant, you will do something similar to:
socket.on('offer', function(from, data) {
users[from].pc.setRemoteDescription(newRTCSessionDescription(data));
// create answer..
});
Note that the Node server is sending the offer along with the id of the user who is sending it. Also, users
will contain an entry per room participant with a reference to its pc
. You will be adding the remote description for each participant to their own pc
.
There are plenty of examples in internet, mine is on http://github.com/jconde/euphony :)
Post a Comment for "Webrtc Videoconferencing (many-to-many)"