GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing developer.mozilla.org — HTMLTrackElement - Web APIs | MDN HTMLTrackElement
|
| 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. |
HTMLTrackElement.track Read onlyReturns TextTrack is the track element's text track data.
No specific method; inherits methods from its parent, HTMLElement.
Inherits events from its parent, HTMLElement.
Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface:
The WebVTT or TTML data describing the actual cues for the text track isn't loaded if the track's mode is initially in the disabled state. If you need to be able to perform any processing on the track after the <track> is set up, you should instead ensure that the track's mode is either hidden (if you don't want it to start out being presented to the user) or showing (to initially display the track). You can then change the mode as desired later.
| Specification |
|---|
| HTML # htmltrackelement |
<track>.