Conference host and participant limitation

sandeep

New Member
Hi team,

I have below query on conference section.

1) Is there any way to identify the conference host and participant (like, who is host of the conference and who are the participant of the conference).

2) We want to restrict the number participant to join the conference, for example we wants allow only 2 participant can join the conference in such scenario unexpectedly if 3'rd person try to join the conference, on that time we want show that person as room full is that possible?

3) On conference is there any specific host control? like, participant audio, video mute / unmute and remove the participant from the conference?

4) After conference over is there any way to restrict the participants, to should not able to join that conference (without host participant should not able to join the conference)?

We want to implement the above feature's on conference. please help me out!

Thanks!
 
Last edited:

Max

Administrator
Staff member
Good day.
1) Is there any way to identify the conference host and participant (like, who is host of the conference and who are the participant of the conference).
No, all the participants are equal
2) We want to restrict the number participant to join the conference, for example we wants allow only 2 participant can join the conference in such scenario unexpectedly if 3'rd person try to join the conference, on that time we want show that person as room full is that possible?
Please see the Conference example source code on GitHub. A maximum participants number is defined in conference.html file:
Code:
<script>var _participants = 3</script>
Then, the current participant number is checked on ROOM_EVENT.STATE event:
Code:
connection.join({name: getRoomName(), record: isRecord()}).on(ROOM_EVENT.STATE, function(room) {
        var participants = room.getParticipants();
        console.log("Current number of participants in the room: " + participants.length);
        if (participants.length >= _participants) {
            console.warn("Current room is full");
            $("#failedInfo").text("Current room is full.");
            room.leave().then(onLeft, onLeft);
            return false;
        }
        ...
});
3) On conference is there any specific host control? like, participant audio, video mute / unmute and remove the participant from the conference?
You should implement a custom messages to send to a participant which need to be controlled. Please see this post for example.
 
Hi @Max , if participant disconnected due to network disconnection, room.getParticipants() return the updated participant count only after 60 seconds. Can we reduce the timeout to 10 seconds ?
 

Max

Administrator
Staff member
Can we reduce the timeout to 10 seconds ?
You can reduce websocket unanswered pings count:
Code:
keep_alive.probes=1
In this case, WCS should detect a network disconnection after 10 seconds. note that it can get a false positive on unstable networks.
 
Top