2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
2024-06-29 23:07:57 +01:00
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#attr-track-kind
|
|
|
|
[MissingValueDefault=subtitles, InvalidValueDefault=metadata]
|
|
|
|
enum TrackKindAttribute {
|
|
|
|
"subtitles",
|
|
|
|
"captions",
|
|
|
|
"descriptions",
|
|
|
|
"chapters",
|
|
|
|
"metadata"
|
|
|
|
};
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#htmltrackelement
|
2023-09-03 01:09:33 +12:00
|
|
|
[Exposed=Window]
|
2020-08-01 03:07:00 +01:00
|
|
|
interface HTMLTrackElement : HTMLElement {
|
|
|
|
|
2023-03-23 03:48:52 -04:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2024-06-29 23:07:57 +01:00
|
|
|
[CEReactions, Enumerated=TrackKindAttribute, Reflect] attribute DOMString kind;
|
2024-08-08 10:35:57 +01:00
|
|
|
[CEReactions, Reflect, URL] attribute USVString src;
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute DOMString srclang;
|
|
|
|
[CEReactions, Reflect] attribute DOMString label;
|
|
|
|
[CEReactions, Reflect] attribute boolean default;
|
2020-08-01 03:07:00 +01:00
|
|
|
|
2024-07-17 11:31:28 +01:00
|
|
|
const unsigned short NONE = 0;
|
|
|
|
const unsigned short LOADING = 1;
|
|
|
|
const unsigned short LOADED = 2;
|
|
|
|
const unsigned short ERROR = 3;
|
2024-08-05 22:28:19 +01:00
|
|
|
readonly attribute unsigned short readyState;
|
2023-10-25 17:26:24 +02:00
|
|
|
|
2024-06-09 10:32:20 +01:00
|
|
|
readonly attribute TextTrack track;
|
2023-10-25 17:26:24 +02:00
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|