stopRemoteView method

Future<void> stopRemoteView(
  1. String userId,
  2. int streamType
)

停止订阅远端用户的视频流,同时释放渲染控件

停止观看指定的 userId 的视频流类型:

参数:

userId 用户 ID

streamType

不支持:

  • macOS

Implementation

Future<void> stopRemoteView(String userId, int streamType) {
  return _channel.invokeMethod(
      'stopRemoteView', {"userId": userId, "streamType": streamType});
}