LiveKit JS Client SDK - v2.10.0

    Class RemoteTrack<TrackKind>Abstract

    Type Parameters

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    attachedElements: HTMLMediaElement[] = []
    isMuted: boolean = false
    kind: TrackKind
    sid?: string

    sid is set after track is published to server, or if it's a remote track

    source: Source
    streamState: StreamState = Track.StreamState.Active

    indicates current state of stream, it'll indicate paused if the track has been paused by congestion controller

    Accessors

    • get currentBitrate(): number

      current receive bits per second

      Returns number

    • get mediaStreamTrack(): MediaStreamTrack

      Returns MediaStreamTrack

    Methods

    • creates a new HTMLAudioElement or HTMLVideoElement, attaches to it, and returns it

      Returns HTMLMediaElement

    • attaches track to an existing HTMLAudioElement or HTMLVideoElement

      Parameters

      • element: HTMLMediaElement

      Returns HTMLMediaElement

    • Allows to set a playout delay (in seconds) for this track. A higher value allows for more buffering of the track in the browser and will result in a delay of media being played back of delayInSeconds

      Parameters

      • delayInSeconds: number

      Returns void

    MMNEPVFCICPMFPCPTTAAATR