ladybird/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.idl
Linus Groh a2e6abe159 LibWeb: Add HTMLMediaElement.canPlayType()
For the time being, the answer is no, or rather: "" :^)
2022-03-04 23:03:29 +01:00

19 lines
359 B
Text

#import <HTML/HTMLElement.idl>
enum CanPlayTypeResult {
"",
"maybe",
"probably"
};
interface HTMLMediaElement : HTMLElement {
[Reflect] attribute DOMString src;
[Reflect] attribute boolean autoplay;
[Reflect] attribute boolean loop;
[Reflect] attribute boolean controls;
CanPlayTypeResult canPlayType(DOMString type);
};