RTCViewContext.publicStreamContext constructor
RTCViewContext.publicStreamContext(
- String publicStreamId
Set the canvas for rendering WTN public stream video
The application binds the canvas and the WTN public stream video stream by calling this interface. The binding remains valid after leaving the room. Call removeRemoteVideo to remove the binding.
Implementation
RTCViewContext.publicStreamContext(String publicStreamId)
: canvasType = VideoCanvasType.public_stream,
roomId = '',
userId = publicStreamId,
streamId = publicStreamId,
streamIndex = StreamIndex.main,
videoRotation = VideoRotation.rotation0,
viewId = genPublicStreamId(publicStreamId);