Definition of an audio track.

interface AudioTrack {
    id: string;
    label: string;
    lang: string;
    role?: MediaTrackRole[];
    getQualities(): AudioQuality[];
}

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).

lang: string

The language of the audio track.

The optional roles of the track.

Methods