muteRemoteVideoStream abstract method

void muteRemoteVideoStream(
  1. String userId,
  2. TRTCVideoStreamType streamType,
  3. 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:

Note

This API can be called before room entry, and the pause status will be reset after room exit.

After calling this API to pause receiving the video stream from a specific user, simply calling the startRemoteView API will not be able to play the video from that user. You need to call muteRemoteVideoStream (false) or muteAllRemoteVideoStreams (false) to resume it.

Implementation

void muteRemoteVideoStream(String userId, TRTCVideoStreamType streamType, bool mute);