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:

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.