2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
2023-04-04 14:14:33 -04:00
|
|
|
#import <HTML/VideoTrackList.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-03-04 18:49:30 +01:00
|
|
|
enum CanPlayTypeResult {
|
|
|
|
"",
|
|
|
|
"maybe",
|
|
|
|
"probably"
|
|
|
|
};
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
|
|
|
|
[Exposed=Window]
|
2020-08-01 03:05:43 +01:00
|
|
|
interface HTMLMediaElement : HTMLElement {
|
|
|
|
|
2023-04-03 11:11:18 -04:00
|
|
|
// network state
|
2023-03-01 01:45:18 +00:00
|
|
|
[Reflect, CEReactions] attribute DOMString src;
|
2023-04-03 11:11:18 -04:00
|
|
|
const unsigned short NETWORK_EMPTY = 0;
|
|
|
|
const unsigned short NETWORK_IDLE = 1;
|
|
|
|
const unsigned short NETWORK_LOADING = 2;
|
|
|
|
const unsigned short NETWORK_NO_SOURCE = 3;
|
|
|
|
readonly attribute unsigned short networkState;
|
2020-08-01 03:05:43 +01:00
|
|
|
|
2023-03-01 01:45:18 +00:00
|
|
|
[Reflect, CEReactions] attribute boolean autoplay;
|
|
|
|
[Reflect, CEReactions] attribute boolean loop;
|
2020-11-09 08:15:10 +00:00
|
|
|
|
2023-03-01 01:45:18 +00:00
|
|
|
[Reflect, CEReactions] attribute boolean controls;
|
2020-11-09 08:15:10 +00:00
|
|
|
|
2022-03-04 18:49:30 +01:00
|
|
|
CanPlayTypeResult canPlayType(DOMString type);
|
2022-10-28 15:38:35 +01:00
|
|
|
undefined load();
|
2022-12-09 18:49:36 +00:00
|
|
|
undefined pause();
|
2023-04-04 14:14:33 -04:00
|
|
|
|
|
|
|
// tracks
|
|
|
|
[SameObject] readonly attribute VideoTrackList videoTracks;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|