muteRemoteAudioStreamEx abstract method

Future<void> muteRemoteAudioStreamEx({
  1. required int uid,
  2. required bool mute,
  3. required RtcConnection connection,
})

Stops or resumes receiving the audio stream of a specified user.

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

Implementation

Future<void> muteRemoteAudioStreamEx(
    {required int uid,
    required bool mute,
    required RtcConnection connection});