mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Implement the HTMLMediaElement "potentially playing" concept
This commit is contained in:
parent
9f71799456
commit
12c15641c1
Notes:
sideshowbarker
2024-07-17 03:27:40 +09:00
Author: https://github.com/trflynn89
Commit: 12c15641c1
Pull-request: https://github.com/SerenityOS/serenity/pull/18438
Reviewed-by: https://github.com/Zaggy1024 ✅
2 changed files with 31 additions and 0 deletions
|
@ -70,6 +70,7 @@ public:
|
|||
double duration() const;
|
||||
bool paused() const { return m_paused; }
|
||||
bool ended() const;
|
||||
bool potentially_playing() const;
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> play();
|
||||
WebIDL::ExceptionOr<void> pause();
|
||||
|
||||
|
@ -115,6 +116,7 @@ private:
|
|||
void set_paused(bool);
|
||||
void set_duration(double);
|
||||
|
||||
bool blocked() const;
|
||||
bool is_eligible_for_autoplay() const;
|
||||
bool has_ended_playback() const;
|
||||
WebIDL::ExceptionOr<void> reached_end_of_media_playback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue