2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
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 {
|
|
|
|
|
|
|
|
[Reflect] attribute DOMString src;
|
|
|
|
|
2020-11-09 08:15:10 +00:00
|
|
|
[Reflect] attribute boolean autoplay;
|
|
|
|
[Reflect] attribute boolean loop;
|
|
|
|
|
|
|
|
[Reflect] attribute boolean controls;
|
|
|
|
|
2022-03-04 18:49:30 +01:00
|
|
|
CanPlayTypeResult canPlayType(DOMString type);
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|