2013-05-21 20:14:00 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#texttrack
|
|
|
|
*/
|
|
|
|
|
|
|
|
enum TextTrackKind {
|
|
|
|
"subtitles",
|
|
|
|
"captions",
|
|
|
|
"descriptions",
|
|
|
|
"chapters",
|
|
|
|
"metadata"
|
|
|
|
};
|
|
|
|
|
|
|
|
enum TextTrackMode {
|
|
|
|
"disabled",
|
|
|
|
"hidden",
|
|
|
|
"showing"
|
|
|
|
};
|
|
|
|
|
|
|
|
[Pref="media.webvtt.enabled"]
|
|
|
|
interface TextTrack : EventTarget {
|
|
|
|
readonly attribute TextTrackKind kind;
|
|
|
|
readonly attribute DOMString label;
|
|
|
|
readonly attribute DOMString language;
|
2013-07-09 19:44:35 +04:00
|
|
|
|
|
|
|
readonly attribute DOMString id;
|
2013-05-21 20:14:00 +04:00
|
|
|
readonly attribute DOMString inBandMetadataTrackDispatchType;
|
|
|
|
|
|
|
|
attribute TextTrackMode mode;
|
|
|
|
|
|
|
|
readonly attribute TextTrackCueList? cues;
|
|
|
|
readonly attribute TextTrackCueList? activeCues;
|
2013-09-20 22:42:35 +04:00
|
|
|
readonly attribute VTTRegionList? regions;
|
2013-05-21 20:14:00 +04:00
|
|
|
|
2013-08-28 00:07:00 +04:00
|
|
|
void addCue(VTTCue cue);
|
2013-06-28 21:31:43 +04:00
|
|
|
[Throws]
|
2013-08-28 00:07:00 +04:00
|
|
|
void removeCue(VTTCue cue);
|
2013-05-21 20:14:00 +04:00
|
|
|
|
|
|
|
attribute EventHandler oncuechange;
|
2013-09-14 03:44:33 +04:00
|
|
|
[Throws]
|
2013-09-20 22:42:35 +04:00
|
|
|
void removeRegion(VTTRegion region);
|
|
|
|
void addRegion(VTTRegion region);
|
2013-05-21 20:14:00 +04:00
|
|
|
};
|