RTCViewContext.publicStreamContext constructor

RTCViewContext.publicStreamContext(
  1. String publicStreamId
)

设置渲染公共视频流的画布

应用程序通过调用此接口将画布和公共视频流绑定。退出房间后绑定仍然有效。
调用 RTCVideo.removePublicStreamVideo 解除绑定。

Implementation

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