stopRemoteView method Null safety
停止显示远端视频画面,同时不再拉取该远端用户的视频数据流。
指定要停止观看的 userId 的视频流类型
参数:
userId:用户Id
streamType:
- 高清大画面:TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG
- 低清大画面:TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SMALL
- 辅流(屏幕分享):TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SUB
Implementation
Future<void> stopRemoteView(
String userId, // 用户ID
int streamType) {
return _channel.invokeMethod(
'stopRemoteView', {"userId": userId, "streamType": streamType});
}