/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html; /**

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. */ @:native("HTMLTrackElement") extern class TrackElement extends Element { static inline var ERROR : Int = 3; static inline var LOADED : Int = 2; static inline var LOADING : Int = 1; static inline var NONE : Int = 0; /** 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 default_(get,set) : Bool; private inline function get_default_() : Bool { return untyped this["default"]; } private inline function set_default_(x : Bool) : Bool { return untyped this["default"] = x; } /** Kind of text track. The following keywords are allowed: */ var kind : String; /** A user-readable title of the text track Used by the browser when listing available text tracks. */ var label : String; var readyState(default,null) : Int; /** Address of the track. Must be a valid URL. This attribute must be defined. */ var src : String; /** Language of the track text data. */ var srclang : String; var track(default,null) : TextTrack; }