Version: 2.67.0

MediaTrack

THEOplayer > MediaTrack

MediaTrack interface

Inherits from Track . See parent page for inherited properties and methods.

Represents a media track (audio or video) of a media resource.

Signature:
export interface MediaTrack extends Track

Properties

Property

Type

Description

activeQuality

Quality

The active quality of the media track, i.e. the quality that is currently being played.

enabled

boolean

Whether the track is enabled.

id

string

The identifier of the media track.

kind

string

The kind of the media track, represented by a value from the following list:
- 'main': The track is the default track for playback
- 'alternative': The track is not the default track for playback

label

string

The label of the media track.

language

string

The language of the media track.

qualities

QualityList

The qualities of the media track.

targetQuality

Quality

One or more desired qualities of the media track.

uid

number

A unique identifier of the media track.