|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
4 * You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 * |
|
6 * The origin of this IDL file is |
|
7 * http://www.whatwg.org/specs/web-apps/current-work/#the-track-element |
|
8 */ |
|
9 |
|
10 [Pref="media.webvtt.enabled"] |
|
11 interface HTMLTrackElement : HTMLElement { |
|
12 [SetterThrows, Pure] |
|
13 attribute DOMString kind; |
|
14 [SetterThrows, Pure] |
|
15 attribute DOMString src; |
|
16 [SetterThrows, Pure] |
|
17 attribute DOMString srclang; |
|
18 [SetterThrows, Pure] |
|
19 attribute DOMString label; |
|
20 [SetterThrows, Pure] |
|
21 attribute boolean default; |
|
22 |
|
23 const unsigned short NONE = 0; |
|
24 const unsigned short LOADING = 1; |
|
25 const unsigned short LOADED = 2; |
|
26 const unsigned short ERROR = 3; |
|
27 readonly attribute unsigned short readyState; |
|
28 |
|
29 readonly attribute TextTrack? track; |
|
30 }; |