RTCViewContext.publicStreamContext constructor

RTCViewContext.publicStreamContext(
  1. String publicStreamId
)

Sets the canvas for rendering public video streams.

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

Implementation

RTCViewContext.publicStreamContext(String publicStreamId)
    : canvasType = VideoCanvasType.publicStream,
      roomId = '',
      uid = publicStreamId,
      streamType = StreamIndex.main;