HTML and CSS Reference
In-Depth Information
Multiple Text Tracks
In addition to support for multiple video and audio tracks, HTML5 also provides support for
multiple text tracks, as well. The text tracks are accessed through an array of TextTrack ob-
jects via HTMLMediaElement's textTracks property.
The TextTrack interface has no methods but does have several properties:
activeCues
A live TextTrackCueList object representing the text track list of cues for the TextTrack
objects that are flagged as active.
cues
A live TextTrackCueList object representing the text track list of cues. The cues provide
information to the user agent for rendering.
kind
The kind of text track object.
language
The text track language of the text track.
readyState
The ready state for the text track.
mode
Whether the text track is on or off, and whether hidden or not.
The kind and language attributes will be discussed in more detail in the next section, cover-
ing the track element. The readyState property can be one of four constant values:
NONE (0)
NONE (0)
The text track is not loaded.
LOADING (1)
The text track is loading.
LOADED (2)
LOADED (2)
The text track is loaded.
Search WWH ::




Custom Search