React Native Api Reference
    Preparing search index...

    Class RTCView

    To display participant video and screen share, you have to use RTCView component.

    <RTCView
    streamURL={tracks.toURL()}
    objectFit={"cover"}
    mirror={true}
    style={{
    flex: 1,
    borderRadius: 20,
    }}
    />
    Index

    Constructors

    Properties

    maxResolution?: number

    Sets the maximum resolution for the rendered video stream.

    mirror?: boolean

    Determines whether the video rendered from streamURL should be mirrored. This is typically enabled for user-facing (front) cameras.

    false
    
    objectFit?: "contain" | "cover"

    Controls how the video is scaled within the view.

    • contain: Scales the video to fit within the view while preserving aspect ratio.
    • cover: Scales the video to completely fill the view, potentially cropping it.
    "contain"
    
    streamURL?: string

    The URL of the media stream to be rendered.

    zOrder?: number
    • Specifies the stacking order of the RTCView when multiple views overlap. Similar to the CSS z-index property.
    • A higher value renders the view above others with lower values.
    0