mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +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
|
@ -38,6 +38,9 @@ private:
|
|||
|
||||
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
||||
|
||||
virtual void on_playing() override;
|
||||
virtual void on_paused() override;
|
||||
|
||||
JS::GCPtr<HTML::VideoTrack> m_video_track;
|
||||
RefPtr<Platform::Timer> m_video_timer;
|
||||
RefPtr<Gfx::Bitmap> m_current_frame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue