haXe API Documentation
Back | Index
extern class js.html.TrackElement
extends Element
Available in js

The track element is used as a child of the media elements—<audio> and <video> —and does not represent anything on its own. It lets you specify timed text tracks (or time-based data).

The type of data that track adds to the media is set in the kind attribute, which can take values of subtitles, captions, descriptions, chapters or metadata. The element points to a source file containing timed text that the browser exposes when the user requests additional data.



Documentation for this class was provided by MDN.
var default_(dynamic,dynamic) : Bool
This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one track element per media element.
var kind : String
var label : String
A user-readable title of the text track Used by the browser when listing available text tracks.
var readyState(default,null) : Int
var src : String
Address of the track. Must be a valid URL. This attribute must be defined.
var srclang : String
Language of the track text data.
var track(default,null) : TextTrack
static inline var ERROR : Int
static inline var LOADED : Int
static inline var LOADING : Int
static inline var NONE : Int
Back | Index