muteRemoteVideoStream abstract method
- String userId,
- TRTCVideoStreamType streamType,
- 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:
- mute(bool):
- Whether to pause receiving.
- streamType(TRTCVideoStreamType):
- Specify for which video stream to pause (or resume):
- HD big image: TRTCVideoStreamType.big
- Smooth small image: TRTCVideoStreamType.small
- Substream image (usually used for screen sharing): TRTCVideoStreamType.sub
- Specify for which video stream to pause (or resume):
- userId(String):
- ID of the specified remote user.
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);