RTCViewContext.remoteContext constructor

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

Sets the canvas for rendering remote video.

The application binds the canvas to the local video stream by calling this API. The binding remains in effect after leaving the room.
Call RTCVideo.removeRemoteVideo to unbind.

Implementation

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