blob: c611d567eb43ac2ab30756d68c245f2df71b6b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#import <HTML/HTMLElement.idl>
enum CanPlayTypeResult {
"",
"maybe",
"probably"
};
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
[Exposed=Window]
interface HTMLMediaElement : HTMLElement {
[Reflect] attribute DOMString src;
[Reflect] attribute boolean autoplay;
[Reflect] attribute boolean loop;
[Reflect] attribute boolean controls;
CanPlayTypeResult canPlayType(DOMString type);
undefined load();
undefined pause();
};
|