stopRemoteView method
Stop subscribing to remote user's video stream and release rendering control
Video stream type of the userId
specified for stopping watching:
Parameters:
userId
User ID
streamType
:
-
HD big image: TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG
-
Smooth big image: TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SMALL
-
Substream (screen sharing): TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SUB
Platform not supported:
- macOS
Implementation
Future<void> stopRemoteView(String userId, int streamType) {
return _cloudChannel!.invokeMethod(
'stopRemoteView', {"userId": userId, "streamType": streamType});
}