Table of Contents
Hard Mute / Unmute Room
Moderator may put the room in a hard-mute state when he wishes no-one else to be audible in the Room. Any new user who joins the room when the room is in hard-mute state will also be inaudible.
To put room into hard mute state, you may use hardMute()
method; and to disable you may use hardUnMute()
method. All participant of the room are notified with onReceivedHardMute
and onReceivedHardUnMute
event listeners; whereas the Moderator is notified with onHardMuted
and onHardUnMuted
event listeners respectively.
Methods:
-
static Future<void> hardMute()
– to hard mute room -
static Future<void> hardUnMute()
– to hard unmute room
Callbacks:
onReceivedMuteRoom
– To all participants on hard-muting RoomonReceivedUnMuteRoom
– To all participants on hard-unmuting RoomonMutedRoom
– To notify Moderator that Room is hard-mutedonUnMutedRoom
– To notify Moderator that Room is hard-unmuted
EnxRtc.hardMute(); // To hard-mute Room EnxRtc.hardUnMute(); // To hard-unmute Room EnxRtc.onHardMuted= (Map<dynamic, dynamic> map) { // Moderators are notified that Room is hard-muted }; EnxRtc.onReceivedHardMute= (Map<dynamic, dynamic> map) { // Participants are notified that Room is hard-muted }; EnxRtc.onHardUnMuted = (Map<dynamic, dynamic> map) { // Moderators are notified that Room is hard-unmuted }; EnxRtc.onReceivedHardUnMute = (Map<dynamic, dynamic> map) { // Participants are notified that Room is hard-unmuted };
Hard Mute / Unmute Participant
Moderator may enforce hard-mute on any selected participant in the room. The affected participant will not be able to talk or may not be able to publish his video until the imposed state is lifted.
The EnxRtc.hardMuteAudio()
and EnxRtc.hardMuteVideo()
methods allow the Moderator to hard-mute a Participant’s Audio and Video Streams respectively. The affected Participant cannot unmute their Audio or Video Streams. The Moderator can unmute the Participant’s Audio or Video Streams using EnxRtc.hardUnMuteAudio()
and EnxRtc.hardUnMuteVideo()
methods respectively.
Class: EnxRtc
Methods:
-
static Future<void> hardMuteAudio(String clientId)
– to hard mute audio. -
static Future<void> hardMuteVideo(String clientId)
– to hard mute video. -
static Future<void> hardUnMuteAudio(String clientId)
– to hard unmute audio. -
static Future<void> hardUnMuteVideo(String clientId)
– to hard unmute video.
Callbacks:
onHardMutedAudio
– Notification to the moderator to notify about user’s hard-muted audio.onHardUnMutedAudio
– Notification to the moderator to notify about user’s hard-unmuted audio.onHardMutedVideo
– Notification to the moderator to notify about user’s hard-muted video.onHardUnMutedVideo
– Notification to the moderator to notify about user’s hard-unmuted video.onReceivedHardMuteAudio
– Notification to all the participants in the Room when a user’s Audio is hard-muted.onReceivedHardUnMuteAudio
– Notification to all the participants in the Room when a user’s Audio is lifted off the hard-mute state.onReceivedHardMuteVideo
– Notification to all the participants in the Room when a user’s Video is hard-muted.onReceivedHardUnMuteVideo
– Notification to all the participants in the Room when a user’s Video is lifted off the hard-mute state.
EnxRtc.hardMuteAudio(clientId) // To hard-mute user's Audio Stream EnxRtc.hardUnMuteAudio(clientId) // To hard-unmute user's Audio Stream EnxRtc.onHardMutedAudio=(Map<dynamic, dynamic> map){ // Your audio is hard-muted }; EnxRtc.onHardUnMutedAudio=(Map<dynamic, dynamic> map){ // Your audio is hard-unmuted }; EnxRtc.onReceivedHardMuteAudio=(Map<dynamic, dynamic> map){ // A User's audio is hard-unmuted - to all }; EnxRtc.onReceivedHardUnMuteAudio=(Map<dynamic, dynamic> map){ // A User's audio is hardmuted - to all }; // EnxRtc.hardMuteVideo(clientId). // To hard-mute user's Video Stream EnxRtc.hardUnMuteVideo(clientId). //// To hard-unmute user's Video Stream EnxRtc.onHardMutedVideo=(Map<dynamic, dynamic> map){ // Your video is hard-muted }; EnxRtc.onHardUnMutedVideo=(Map<dynamic, dynamic> map){ // Your video is hard-unmuted }; EnxRtc.onReceivedHardMuteVideo=(Map<dynamic, dynamic> map){ // A User's video is hard-unmuted - to all }; EnxRtc.onReceivedHardUnMuteVideo=(Map<dynamic, dynamic> map){ // A User's video is hardmuted - to all };