muteRemoteVideoStreamEx abstract method

Future<void> muteRemoteVideoStreamEx({
  1. required int uid,
  2. required bool mute,
  3. required RtcConnection connection,
})

Stops or resumes receiving the video stream of a specified user.

This method is used to stop or resume receiving the video stream of a specified user. You can call this method before or after joining a channel. If a user leaves a channel, the settings in this method become invalid.

  • uid The user ID of the remote user.
  • mute Whether to stop receiving the video stream of the specified user: true : Stop receiving the video stream of the specified user. false : (Default) Resume receiving the video stream of the specified user.
  • connection The connection information. See RtcConnection.

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> muteRemoteVideoStreamEx(
    {required int uid,
    required bool mute,
    required RtcConnection connection});