Host Controls
The meeting.hostActions
provides methods to perform host actions on all meeting participants such as muting everyone, disabling all videos, or removing all participants simultaneously.
To use these host controls, the local user must have the appropriate host permissions in their preset.
// Check if the local user has host permissions
final hostPermissions = meeting.permissions.host;
final canDisableAudio = hostPermissions.canMuteAudio;
final canDisableVideo = hostPermissions.canDisableVideo;
final canKick = hostPermissions.canKickParticipant;
Mute All Participants
The muteAllAudios()
method allows hosts to mute all participants in the meeting simultaneously. Participants will need to unmute themselves manually if they wish to speak again.
// Mute all participants in the meeting
meeting.hostActions.muteAllAudios();
Required Permission: permissions.host.canMuteAudio
must be true
Disable All Videos
The disableAllVideos()
method turns off video for all participants in the meeting. Participants will need to re-enable their cameras manually if they wish to be visible again.
// Disable video for all participants
meeting.hostActions.disableAllVideos();
Required Permission: permissions.host.canDisableVideo
must be true
Remove All Participants
The kickAll()
method removes all participants from the meeting, including the host, effectively ending the meeting for everyone.
// Remove all participants and end the meeting
meeting.hostActions.kickAll();
Required Permission: permissions.host.canKickParticipant
must be true
This is a destructive action. Use with caution as the meeting will be terminated for everyone.
For host actions on individual participants, see the Individual Participant Controls documentation.