RTCViewContext.remoteContext constructor

RTCViewContext.remoteContext({
  1. required String roomId,
  2. required String userId,
  3. StreamIndex streamIndex = StreamIndex.main,
  4. VideoRotation videoRotation = VideoRotation.rotation0,
  5. String? streamId = '',
})

@brief 设置渲染远端视频的画布

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

Implementation

RTCViewContext.remoteContext({
  required this.roomId,
  required this.userId,
  this.streamIndex = StreamIndex.main,
  this.videoRotation = VideoRotation.rotation0,
  this.streamId = '',
})  : canvasType = VideoCanvasType.remote,
      viewId = genViewId(roomId, userId);