muteRemoteVideoStreamEx abstract method

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

Stops or resumes receiving a specified video stream.

This method stops or resumes receiving the video stream of a specified remote user. You can call this method before or after joining a channel. The setting is reset after leaving the channel.

  • uid The ID of the remote user.
  • mute Whether to stop receiving the video of a remote user: true : Stop receiving. false : (Default) Resume receiving.
  • connection 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. See Error Codes for details and resolution suggestions. < 0: Method call failed. See Error Codes for details and resolution suggestions.

Implementation

Future<void> muteRemoteVideoStreamEx(
    {required int uid,
    required bool mute,
    required RtcConnection connection});