Mute/Unmute any remote players audio on or off in the channel called "chat". This will block any audio that the muted player is speaking in the channel in which they were blocked. Only mutes them for the local user, not everyone in the channel.
Toggle any remote players audio on or off in the channel called "chat". This will block any audio from all muted players that are speaking in the channel in which they were blocked. Only mutes them for the local user, not everyone in the channel.
Checks if channel exists before attempting to mute all players
publicvoidMuteAllPlayers(){if (EasySession.ChannelSessions.ContainsKey("chat")) {_mute.LocalMuteAllUsers(EasySession.ChannelSessions["chat"]); }else {Debug.Log("Channel Does not exist. Cannot Mute player"); }}publicvoidUnmuteAllPlayers(){if (EasySession.ChannelSessions.ContainsKey("chat")) {_mute.LocalUnmuteAllUsers(EasySession.ChannelSessions["chat"]); }else {Debug.Log("Channel Does not exist. Cannot Unmute player"); }}
Cross Mute/Unmute a Player
Prevents a player from sending text/chat messages or audio/voice in the channel that is specified. In this case the player's name is "userNameToMute" and channel name is "channelName"
Prevents selected players from sending text/chat messages or audio/voice in the channel that is specified. In this case the players' names are "player1", "player2" and channel name is "channelName"
Unmutes all players for the current login session (player currently signed in), in this case the current logged in player is "userName". Unless locally muted, all players will now be able to talk and send text messages to the current logged in player ("userName")