1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibWeb: Implement HTMLMediaElement.play

This also includes the HTMLMediaElement's list of pending play promises,
which is coupled pretty tightly with HTMLMediaElement.play.
This commit is contained in:
Timothy Flynn 2023-04-07 12:52:41 -04:00 committed by Linus Groh
parent b8a37ef809
commit d99a075ff9
3 changed files with 170 additions and 12 deletions

View file

@ -34,6 +34,7 @@ interface HTMLMediaElement : HTMLElement {
readonly attribute boolean paused;
[Reflect, CEReactions] attribute boolean autoplay;
[Reflect, CEReactions] attribute boolean loop;
Promise<undefined> play();
undefined pause();
// controls