muteRemoteAudioStreamEx abstract method

Future<void> muteRemoteAudioStreamEx({
  1. required int uid,
  2. required bool mute,
  3. 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.

  • uid The ID of the specified user.
  • mute Whether to stop receiving the specified audio stream: true : Stop receiving the specified audio stream. false : (Default) Continue receiving the specified audio stream.
  • connection Connection 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});