muteRemoteVideoStream abstract method

Future<void> muteRemoteVideoStream({
  1. required int uid,
  2. required bool mute,
})

Stops or resumes subscribing to the video stream of a specified user.

Call this method after joining a channel.

  • uid The user ID of the specified user.
  • mute Whether to subscribe to the specified remote user's video stream. true : Stop subscribing to the video streams of the specified user. false : (Default) Subscribe to the video stream of the specified user.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. < 0: Failure.

Implementation

Future<void> muteRemoteVideoStream({required int uid, required bool mute});