ladybird/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.idl

24 lines
491 B
Text
Raw Normal View History

#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);
2022-10-28 15:38:35 +01:00
undefined load();
undefined pause();
};