RTCViewContext.remoteContext constructor
RTCViewContext.remoteContext({
- required String roomId,
- required String userId,
- StreamIndex streamIndex = StreamIndex.main,
- VideoRotation videoRotation = VideoRotation.rotation0,
- String? streamId = '',
Set the canvas for rendering remote video
The application binds the canvas and the remote video stream by calling this interface. The binding remains valid after leaving the room. Call removeRemoteVideo to remove the binding.
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);