muteRemoteVideoStream method

Future<void> muteRemoteVideoStream(
  1. String userId,
  2. bool mute
)

Pause/Resume subscribing to remote user's video stream

This API only pauses/resumes receiving the specified user's video stream but does not release displaying resources; therefore, the video image will freeze at the last frame before it is called.

Parameters:

userId: Remote user ID

mute: Whether to pause receiving

Platform not supported:

  • web

Implementation

Future<void> muteRemoteVideoStream(String userId, bool mute) {
  return _cloudChannel!.invokeMethod('muteRemoteVideoStream', {
    "userId": userId,
    "mute": mute,
  });
}