1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:45:07 +00:00

LibWeb: Begin detecting the end of an HTMLMediaElement media resource

This commit is contained in:
Timothy Flynn 2023-04-10 20:04:46 -04:00 committed by Linus Groh
parent 33047b38ec
commit 4797f07883
4 changed files with 90 additions and 0 deletions

View file

@ -54,6 +54,7 @@ public:
double duration() const;
bool paused() const { return m_paused; }
bool ended() const;
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> play();
WebIDL::ExceptionOr<void> pause();
@ -93,6 +94,9 @@ private:
void set_paused(bool);
void set_duration(double);
bool has_ended_playback() const;
WebIDL::ExceptionOr<void> reached_end_of_media_playback();
WebIDL::ExceptionOr<void> dispatch_time_update_event();
enum class TimeMarchesOnReason {