mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
28 lines
967 B
Text
28 lines
967 B
Text
#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;
|
|
|
|
readonly attribute DOMString id;
|
|
[FIXME] readonly attribute DOMString inBandMetadataTrackDispatchType;
|
|
|
|
attribute TextTrackMode mode;
|
|
|
|
[FIXME] readonly attribute TextTrackCueList? cues;
|
|
[FIXME] readonly attribute TextTrackCueList? activeCues;
|
|
|
|
[FIXME] undefined addCue(TextTrackCue cue);
|
|
[FIXME] undefined removeCue(TextTrackCue cue);
|
|
|
|
attribute EventHandler oncuechange;
|
|
};
|