ladybird/Libraries/LibWeb/HTML/TextTrack.idl

29 lines
967 B
Text
Raw Normal View History

#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;
[FIXME] readonly attribute DOMString inBandMetadataTrackDispatchType;
2024-07-25 20:21:06 +01:00
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;
};