mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Implement the HTMLMediaElement paused attribute
Note that the default value of the attribute is true. We were previously autoplaying videos as soon as they loaded - this will prevent that from happening until the paused attribute is set to false.
This commit is contained in:
parent
e130525c24
commit
90921a4f16
Notes:
sideshowbarker
2024-07-17 00:16:31 +09:00
Author: https://github.com/trflynn89
Commit: 90921a4f16
Pull-request: https://github.com/SerenityOS/serenity/pull/18233
Reviewed-by: https://github.com/linusg
5 changed files with 68 additions and 7 deletions
|
@ -31,6 +31,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
|
||||
// playback state
|
||||
readonly attribute unrestricted double duration;
|
||||
readonly attribute boolean paused;
|
||||
[Reflect, CEReactions] attribute boolean autoplay;
|
||||
[Reflect, CEReactions] attribute boolean loop;
|
||||
undefined pause();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue