RTCViewContext.remoteContext constructor
RTCViewContext.remoteContext({
- required String roomId,
- required String userId,
- StreamIndex streamIndex = StreamIndex.main,
- VideoRotation videoRotation = VideoRotation.rotation0,
- 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);