package js.html
extends Element › DOMElement › Node › EventTarget
Available on jsThe HTMLTrackElement
interface provides access to the properties oftrack` elements, as well as methods to manipulate them.Documentation HTMLTrackElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
default_:Boolkind:StringIs 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.
label:StringIs a DOMString that reflects the label HTML attribute, indicating a user-readable title for the track.
read only readyState:IntReturns an unsigned shortthat 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. |
src:StringIs a DOMString that reflects the src HTML attribute, indicating the address of the text track data.
srclang:StringIs a DOMString that reflects the srclang HTML attribute, indicating the language of the text track data.
read only track:TextTrackReturns TextTrack is the track element's text track data.
static inline read only ERROR:Int = 3 static inline read only LOADED:Int = 2 static inline read only LOADING:Int = 1 static inline read only NONE:Int = 0
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/TrackElement.html