setDefaultMuteAllRemoteAudioStreams method
Sets whether to receive all remote audio streams by default.
You can call this method either before or after joining a channel. If you call RtcEngine.setDefaultMuteAllRemoteAudioStreams (true) after joining a channel, you will not receive the audio streams of any subsequent user.
Note
- If you want to resume receiving audio streams, call RtcEngine.muteRemoteAudioStream (false), and specify the ID of the remote user that you want to subscribe to. To resume audio streams of multiple users, call RtcEngine.muteRemoteAudioStream as many times. Calling RtcEngine.setDefaultMuteAllRemoteAudioStreams (false) resumes receiving audio streams of the subsequent users only.
Parameter muted
Sets whether or not to receive/stop receiving the remote audio streams by default:
true
: Stop receiving any audio stream by default.false
: (Default) Receive all remote audio streams by default.
Implementation
@override
Future<void> setDefaultMuteAllRemoteAudioStreams(bool muted) {
return _invokeMethod(
'setDefaultMuteAllRemoteAudioStreams', {'muted': muted});
}