muteRemoteAudioStream method
Stops/Resumes receiving a specified audio stream.
Note
- If you called the RtcEngine.muteAllRemoteAudioStreams method and set muted as true to stop receiving all remote video streams, ensure that the RtcEngine.muteAllRemoteAudioStreams method is called and set muted as false before calling this method. The RtcEngine.muteAllRemoteAudioStreams method sets all remote audio streams, while the RtcEngine.muteRemoteAudioStream method sets a specified remote user's audio stream.
Parameter uid
ID of the specified remote user.
Parameter muted
Sets whether to receive/stop receiving the specified remote user's audio stream:
true
: Stop receiving the specified remote user’s audio stream.false
: (Default) Receive the specified remote user’s audio stream.
Note
- Call this method after joining a channel.
- See recommended settings in Set the Subscribing State.
Implementation
@override
Future<void> muteRemoteAudioStream(int uid, bool muted) {
return _invokeMethod('muteRemoteAudioStream', {'uid': uid, 'muted': muted});
}