RtcTextureView
The RtcTextureView class.
This class is used for rendering and corresponds to the Android native TextureView.
Attention: This class is only available for the Android platform.
To ensure the rendering of the image, before calling this component, you should proceed based on whether you are joining a channel:
- Not joining a channel: First call startPreview, and then call enableVideo.
- Joining a channel: First ensure capture is enabled, and then call enableVideo.
RtcRendererViewProps
A common property for RtcSurfaceView and RtcTextureView.
export interface RtcRendererViewProps { canvas: VideoCanvas; connection?: RtcConnection; }
Attributes
- canvas
- The local video view and settings. See VideoCanvas.
- connection
- The connection infomation. See RtcConnection.