Readonly
activeThe active quality of the media track, i.e. the quality that is currently being played.
Whether the track is enabled.
- Only one track of the same type (e.g. video) can be enabled at the same time.
- Enabling a track will disable all other tracks of the same type.
- Disabling a track will not enable a different track of the same type.
Readonly
idThe identifier of the media track.
- This identifier can be used to distinguish between related tracks, e.g. tracks in the same list.
Readonly
kindThe 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
The label of the media track.
Readonly
languageThe language of the media track.
Readonly
qualitiesThe qualities of the media track.
One or more desired qualities of the media track.
- If desired qualities are present, the Adaptive Bitrate mechanism of the player will limit itself to these qualities.
- If one desired quality is present, the Adaptive Bitrate mechanism of the player will be disabled and the desired quality will be played back.
Readonly
uidA unique identifier of the media track.
- 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.
Add the given listener for the given event type(s).
The type of the event.
The callback which is executed when the event occurs.
Remove the given listener for the given event type(s).
The type of the event.
The callback which will be removed.
Generated using TypeDoc
Represents a media track (audio or video) of a media resource.