Definition of a video track.

interface VideoTrack {
    id: string;
    label: string;
    metadata?: MediaTrackMetadata[];
    role?: MediaTrackRole[];
    getQualities(): VideoQuality[];
}

Hierarchy (view full)

Properties

Methods

Properties

id: string

The id of the media track that is used to identify and set the track.

label: string

The text used to represent this track to the user (e.g. in the UI).

metadata?: MediaTrackMetadata[]

Optional custom metadata about the track. This is currently only supported for DASH manifests, where these are populated from SupplementalProperty elements.

Since

8.243.0

The optional roles of the track.

Methods