muteRemoteAudioStreamEx abstract method
Future<void>
muteRemoteAudioStreamEx({
- required int uid,
- required bool mute,
- required RtcConnection connection,
Stops or resumes receiving a specified audio stream.
This method stops or resumes receiving the audio stream of a specified remote user. You can call this method before or after joining a channel. The setting is reset after leaving the channel.
uidThe ID of the specified user.muteWhether to stop receiving the specified audio stream: true : Stop receiving the specified audio stream. false : (Default) Continue receiving the specified audio stream.connectionConnection information. See RtcConnection.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> muteRemoteAudioStreamEx(
{required int uid,
required bool mute,
required RtcConnection connection});