React Native Api Reference - v2.0.0
    Preparing search index...

    Class MediaStreamTrack

    MediaStreamTrack represents one track inside a MediaStream.

    On React Native a track is a handle, not a buffer: frames live in the native SDK and never cross into JS. Rendering goes through RTCView, which resolves the handle back to the real native track.

    Index
    id: string
    • Id of the track.
    kind: "audio" | "video" | "share" | "shareAudio"
    • The kind of media this track carries.
    participantId: string
    • Id of the participant producing this track.
    readyState: "live" | "ended"
    • Whether the track is still live, or has ended because the device was released or the participant stopped producing.
    roomId: string
    • Id of the room this track belongs to.
    streamId: string
    • Id of the stream this track came from.