class TrackElement
package js.html
extends Element › DOMElement › Node › EventTarget
Available on HTML5
The HTMLTrackElement interface provides access to the properties of
track` elements, as well as methods to manipulate them.
Documentation HTMLTrackElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Variables
Is a DOMString
that reflects the kind
HTML attribute, indicating how the text track is meant to be used. Possible values are: subtitles, captions, descriptions, chapters, metadata.
Is a DOMString
that reflects the label
HTML attribute, indicating a user-readable title for the track.
read onlyreadyState:Int
Returns an unsigned short
that show the readiness state of the track:
Constant | Value | Description |
NONE |
0 | Indicates that the text track's cues have not been obtained. |
LOADING |
1 | Indicates that the text track is loading and there have been no fatal errors encountered so far. Further cues might still be added to the track by the parser. |
LOADED |
2 | Indicates that the text track has been loaded with no fatal errors. |
ERROR |
3 | Indicates that the text track was enabled, but when the user agent attempted to obtain it, this failed in some way. Some or all of the cues are likely missing and will not be obtained. |