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:
parent
33047b38ec
commit
4797f07883
4 changed files with 90 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue