Version: 2.69.0

MediaTrack

THEOplayer > MediaTrack

MediaTrack interface

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

Signature:
export interface MediaTrack extends Track

Properties

PropertyTypeDescription
activeQualityQuality | undefinedThe active quality of the media track, i.e. the quality that is currently being played.
enabledbooleanWhether the track is enabled.
idstringThe identifier of the media track.
kindstringThe 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
labelstringThe label of the media track.
languagestringThe language of the media track.
qualitiesQualityListThe qualities of the media track.
targetQualityQuality | Quality[] | undefinedOne or more desired qualities of the media track.
uidnumberA unique identifier of the media track.