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