muteAllRemoteAudio method

  1. @override
void muteAllRemoteAudio(
  1. bool mute
)
override

Pause/Resume playing back all remote users' audio streams

When you mute the audio of all remote users, the SDK will stop playing back all their audio streams and pulling all their audio data.

Parameters:

  • mute(bool):
    • true: mute;
    • false: unmute.

Note

This API works when called either before or after room entry (enterRoom), and the mute status will be reset to false after room exit (exitRoom).

Implementation

@override
void muteAllRemoteAudio(bool mute) {
  TRTCLog(_tag, "muteAllRemoteAudio: $mute");
  TRTCCloudNative.instance.muteAllRemoteAudio(mute);
}