RTCViewContext.remoteContext constructor

RTCViewContext.remoteContext({
  1. required String roomId,
  2. required String uid,
  3. StreamIndex streamType = StreamIndex.main,
})

设置渲染远端视频的画布

应用程序通过调用此接口将画布和远端视频流绑定。退出房间后绑定仍然有效。
调用 RTCVideo.removeRemoteVideo 解除绑定。

Implementation

RTCViewContext.remoteContext({
  required this.roomId,
  required this.uid,
  this.streamType = StreamIndex.main,
}) : canvasType = VideoCanvasType.remote;