Readonly
accessibilityThe accessibility settings of the track.
Readonly
activeThe list of active cues of the track.
- A cue is active if the current playback position falls within the time bounds of the cue.
- This list dynamically updates based on the current playback position.
- If the TextTrack.mode is 'disabled'
, this property is null
.
Readonly
cuesThe list of cues of the track.
- If the TextTrack.mode is 'disabled'
, this property is null
.
Readonly
forcedIndicates whether the track contains Forced Narrative cues.
This may only be true for subtitle tracks where
- For DASH: the corresponding AdaptationSet contains a child Role with its value attribute equal to 'forced_subtitle'
- For HLS: the corresponding #EXT-X-MEDIA tag contains the attributes TYPE=SUBTITLES and FORCED=YES (not supported yet)
Readonly
idThe identifier of the text track.
Readonly
inThe in-band metadata track dispatch type of the text track.
Readonly
kindThe kind of the text track, represented by a value from the following list:
- 'subtitles'
: The track contains subtitles.
- 'captions'
: The track contains closed captions, a translation of dialogue and sound effects.
- 'descriptions'
: The track contains descriptions, a textual description of the video.
- 'chapters'
: The track contains chapter titles.
- 'metadata'
: The track contains metadata. This track will not serve display purposes.
The label of the text track.
Readonly
languageThe language of the text track.
The mode of the text track, represented by a value from the following list:
- 'disabled'
: The track is disabled.
- 'hidden'
: The track is hidden.
- 'showing'
: The track is showing.
Readonly
readyThe ready state of the text track.
Readonly
srcThe source of the text track.
Readonly
typeThe kind of the text track.
Readonly
uidA unique identifier of the text track.
Add the given listener for the given event type(s).
The type of the event.
The callback which is executed when the event occurs.
Removed a cue from the text track.
The cue to be removed.
Remove the given listener for the given event type(s).
The type of the event.
The callback which will be removed.
Represents a text track of a media resource that can be filled with cues during playback.