Open ghost opened 6 years ago
If you change these values, then viewers from room number 1 do not see the broadcast patches from other rooms. Is this the correct solution?
in file Multi-Broadcasters-and-Many-Viewers.html change values fore:
var connection = new RTCMultiConnection('test2');
and
connection.socketMessageEvent = 'multi-broadcasters-demo-test2';
as long as your users are in separate channels they will not see/hear each other.
Thanks for the advice. It really works )
And why should I use connection.socketMessageEvent
? Does it also need to be changed if the connection.channel
changes?
And a few more questions, if you please.
connection.channel
.When checking whether a chat room is open on the server, does it not take into account that it can be created in different channels? Or is this restriction?
In the Demo Multi-Broadcasters-and-Many-Viewers.html
Initiator A opens room №1.
Broadcasters B, C join room №1.
Viewers receive a link to the link to see the initiator and the broadcasters in the room number 1: A, B, C.
Second Initiator AA opens room №2.
Broadcasters AB, AC join room №2.
Viewers see the first initiator A and the Broadcasters B and C from room №1 and Broadcasters AB and AC from room №2, ie: A, B, C, AB, AC.
Is this a bug? How to make Viewers receive video/audio streams only from those who are in the room that they chose?