2022-02-15 16:10:51 -03:00
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
|
2022-03-04 14:49:30 -03:00
|
|
|
enum CanPlayTypeResult {
|
|
|
|
|
"",
|
|
|
|
|
"maybe",
|
|
|
|
|
"probably"
|
|
|
|
|
};
|
|
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
|
|
|
|
|
[Exposed=Window]
|
2020-07-31 23:05:43 -03:00
|
|
|
interface HTMLMediaElement : HTMLElement {
|
|
|
|
|
|
|
|
|
|
[Reflect] attribute DOMString src;
|
|
|
|
|
|
2020-11-09 05:15:10 -03:00
|
|
|
[Reflect] attribute boolean autoplay;
|
|
|
|
|
[Reflect] attribute boolean loop;
|
|
|
|
|
|
|
|
|
|
[Reflect] attribute boolean controls;
|
|
|
|
|
|
2022-03-04 14:49:30 -03:00
|
|
|
CanPlayTypeResult canPlayType(DOMString type);
|
2022-10-28 11:38:35 -03:00
|
|
|
undefined load();
|
2022-12-09 15:49:36 -03:00
|
|
|
undefined pause();
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|