2024-06-09 10:32:20 +01:00
|
|
|
#import <DOM/EventTarget.idl>
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#texttrackmode
|
|
|
|
enum TextTrackMode { "disabled", "hidden", "showing" };
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#texttrackkind
|
|
|
|
enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "metadata" };
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#texttrack
|
|
|
|
[Exposed=Window]
|
|
|
|
interface TextTrack : EventTarget {
|
|
|
|
readonly attribute TextTrackKind kind;
|
|
|
|
readonly attribute DOMString label;
|
|
|
|
readonly attribute DOMString language;
|
|
|
|
|
2024-07-05 19:46:06 +01:00
|
|
|
readonly attribute DOMString id;
|
2024-06-09 10:32:20 +01:00
|
|
|
[FIXME] readonly attribute DOMString inBandMetadataTrackDispatchType;
|
|
|
|
|
2024-07-25 20:21:06 +01:00
|
|
|
attribute TextTrackMode mode;
|
2024-06-09 10:32:20 +01:00
|
|
|
|
|
|
|
[FIXME] readonly attribute TextTrackCueList? cues;
|
|
|
|
[FIXME] readonly attribute TextTrackCueList? activeCues;
|
|
|
|
|
|
|
|
[FIXME] undefined addCue(TextTrackCue cue);
|
|
|
|
[FIXME] undefined removeCue(TextTrackCue cue);
|
|
|
|
|
|
|
|
attribute EventHandler oncuechange;
|
|
|
|
};
|