mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Implement HTMLMediaElement.pause
This commit is contained in:
parent
90921a4f16
commit
b8a37ef809
Notes:
sideshowbarker
2024-07-16 21:45:44 +09:00
Author: https://github.com/trflynn89
Commit: b8a37ef809
Pull-request: https://github.com/SerenityOS/serenity/pull/18233
Reviewed-by: https://github.com/linusg
2 changed files with 43 additions and 3 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
WebIDL::ExceptionOr<void> load();
|
||||
double duration() const;
|
||||
bool paused() const { return m_paused; }
|
||||
void pause() const;
|
||||
WebIDL::ExceptionOr<void> pause();
|
||||
|
||||
JS::NonnullGCPtr<VideoTrackList> video_tracks() const { return *m_video_tracks; }
|
||||
|
||||
|
@ -78,6 +78,7 @@ private:
|
|||
void forget_media_resource_specific_tracks();
|
||||
void set_ready_state(ReadyState);
|
||||
|
||||
WebIDL::ExceptionOr<void> pause_element();
|
||||
void notify_about_playing();
|
||||
void set_paused(bool);
|
||||
void set_duration(double);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue