muteRemoteVideoStreamEx abstract method
Future<void>
muteRemoteVideoStreamEx({
- required int uid,
- required bool mute,
- 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.
uidThe ID of the remote user.muteWhether to stop receiving the video of a remote user: true : Stop receiving. false : (Default) Resume receiving.connectionConnection 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});