muteRemoteAudioStream abstract method

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

Stops or resumes subscribing to the audio stream of a specified user. Call this method after joining a channel. See recommended settings in Set the Subscribing State.

Param userId The user ID of the specified user.

Param muted Whether to stop subscribing to the audio stream of the specified user. true: Stop subscribing to the audio stream of the specified user. false: (Default) Subscribe to the audio stream of the specified user.

Implementation

Future<void> muteRemoteAudioStream(int userId, bool muted);