mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibWeb: Move helper to toggle a media element's playback to the element
This will be needed elsewhere.
This commit is contained in:
parent
435ced70b8
commit
3793b7c6bd
3 changed files with 20 additions and 17 deletions
|
@ -84,6 +84,7 @@ public:
|
|||
bool potentially_playing() const;
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> play();
|
||||
WebIDL::ExceptionOr<void> pause();
|
||||
WebIDL::ExceptionOr<void> toggle_playback();
|
||||
|
||||
double volume() const { return m_volume; }
|
||||
WebIDL::ExceptionOr<void> set_volume(double);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue