package js.html
extends Element › DOMElement › Node › EventTarget
Available on jsThe 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:
default_:Bool
kind:String
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.
label:String
Is a DOMString
that reflects the label
HTML attribute, indicating a user-readable title for the track.
read only readyState: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. |
src:String
Is a DOMString
that reflects the src
HTML attribute, indicating the address of the text track data.
srclang:String
Is a DOMString
that reflects the srclang
HTML attribute, indicating the language of the text track data.
read only track:TextTrack
Returns 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–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/TrackElement.html