muaz-khan / RTCMultiConnection

RTCMultiConnection is a WebRTC JavaScript library for peer-to-peer applications (screen sharing, audio/video conferencing, file sharing, media streaming etc.)
https://muazkhan.com:9001/
MIT License
2.57k stars 1.37k forks source link

How to prevent viewer-participants to connect to the chat room where communicate broadcasters? #720

Open ghost opened 5 years ago

ghost commented 5 years ago

Now I use connection.onNewParticipant. I check if a broadcaster connects to the room, then its stream add to the video session using connection.acceptParticipationRequest. And if connect to the room a viewer, then the connection is canceled. But technically the viewer is connected to the room only does not receive the stream.

Is there a mechanism to disable viewers to joining room of at connection.join level?

ghost commented 5 years ago

Or is it possible to set different passwords for broadcasters and viewers?