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