LiveKit JS Client SDK - v2.24.0
    Preparing search index...

    Class RemoteTrackPublication

    Hierarchy (View Summary)

    Index
    dimensions?: Dimensions

    dimension of the original published stream, video-only

    kind: Kind
    mimeType?: string

    MimeType of the published track

    simulcasted?: boolean

    true if track was simulcasted to server, video-only

    source: Source
    track?: RemoteTrack<Kind> = undefined
    trackName: string
    trackSid: string
    • get videoQuality(): VideoQuality | undefined

      The maximum video quality that was requested with setVideoQuality(). When no quality was requested, it is VideoQuality.HIGH. setVideoDimensions() clears the requested quality, so it is VideoQuality.HIGH after that call too.

      This value does not show the layer that the server sends. Adaptive stream and network bandwidth can make the server send a lower layer, and this value does not change.

      Returns VideoQuality | undefined

      RemoteVideoTrack.getReceiverStats() (frameWidth and frameHeight) for the size of the video that the client receives.

    • disable server from sending down data for this track. this is useful when the participant is off screen, you may disable streaming down their video to reduce bandwidth requirements

      Parameters

      • enabled: boolean

      Returns void

    • Subscribe or unsubscribe to this remote track

      Parameters

      • subscribed: boolean

        true to subscribe to a track, false to unsubscribe

      Returns void

    • Explicitly set the video dimensions for this track.

      With adaptive stream, the SDK requests the smaller of these and the adaptive stream dimensions (by pixel count). It clears a quality that was requested with setVideoQuality().

      Parameters

      • dimensions: Dimensions

        The video dimensions to set.

      Returns void

    • for tracks that support simulcasting, adjust subscribed quality

      This indicates the highest quality the client can accept. if network bandwidth does not allow, server will automatically reduce quality to optimize for uninterrupted video

      Parameters

      Returns void