diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h index f98bf13525..b16127f5e4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h @@ -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); |