1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

LibWeb: Add HTMLMediaElement.canPlayType()

For the time being, the answer is no, or rather: "" :^)
This commit is contained in:
Linus Groh 2022-03-04 18:49:30 +01:00 committed by Andreas Kling
parent 55c247d044
commit a2e6abe159
4 changed files with 28 additions and 0 deletions

View file

@ -1,5 +1,11 @@
#import <HTML/HTMLElement.idl>
enum CanPlayTypeResult {
"",
"maybe",
"probably"
};
interface HTMLMediaElement : HTMLElement {
[Reflect] attribute DOMString src;
@ -9,4 +15,5 @@ interface HTMLMediaElement : HTMLElement {
[Reflect] attribute boolean controls;
CanPlayTypeResult canPlayType(DOMString type);
};