Represents a track of a media resource.

Remarks


- A specific track type (e.g. TextTrack) will always be used.

interface Track {
    id: string;
    kind: string;
    label: string;
    language: string;
    uid: number;
}

Hierarchy (view full)

Properties

Properties

id: string

The identifier of the track.

Remarks


- This identifier can be used to distinguish between related tracks, e.g. tracks in the same list.

kind: string

The kind of the track.

Remarks


- The values for this property depend on the specific type of the track.

label: string

The label of the track.

language: string

The language of the track.

uid: number

A unique identifier of the track.

Remarks


- This identifier is unique across tracks of a THEOplayer instance and can be used to distinguish between tracks.
- This identifier is a randomly generated number.