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"
|
|
|
|
};
|
|
|
|
|
|
|
|
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-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
|
|
|
|
2016-03-02 21:34:02 +03:00
|
|
|
attribute EventHandler oncuechange;
|
2013-05-21 20:14:00 +04:00
|
|
|
};
|
2014-01-27 22:10:06 +04:00
|
|
|
|
|
|
|
// Mozilla Extensions
|
|
|
|
partial interface TextTrack {
|
|
|
|
[ChromeOnly]
|
|
|
|
readonly attribute TextTrackList? textTrackList;
|
|
|
|
};
|