muteRemoteAudioStream method Null safety

Future<void> muteRemoteAudioStream(
  1. int uid,
  2. bool muted

Stops/Resumes receiving a specified 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.


  • Call this method after joining a channel.
  • See recommended settings in Set the Subscribing State.


Future<void> muteRemoteAudioStream(int uid, bool muted) {
  return _invokeMethod('muteRemoteAudioStream', {
    'uid': uid,
    'muted': muted,