RtcSurfaceView
The RtcSurfaceView class.
This class is used for rendering.
- Android: This class corresponds to the native SurfaceView.
- iOS: This class corresponds to the native UIView.
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.
RtcSurfaceViewProps
Properties of the RtcSurfaceView.
export interface RtcSurfaceViewProps { zOrderOnTop?: boolean; zOrderMediaOverlay?: boolean; }
Attributes
- zOrderOnTop
-
Controls whether to place the surface of the RtcSurfaceView on top of the window:
- true: Place it on top of the window.
- false: Do not place it on top of another RtcSurfaceView in the window.
- zOrderMediaOverlay
-
Controls whether to place the surface of the RtcSurfaceView on top of another RtcSurfaceView in the window (but still behind the window):
- true: Place it on top of another RtcSurfaceView in the window.
- false: Do not place it on top of another RtcSurfaceView in the window.