mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Implement playbackRate
This commit is contained in:
parent
986fe0f408
commit
14e354bc29
Notes:
github-actions[bot]
2025-02-10 11:39:00 +00:00
Author: https://github.com/Psychpsyo
Commit: 14e354bc29
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3514
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 123 additions and 3 deletions
|
@ -109,6 +109,12 @@ public:
|
|||
double volume() const { return m_volume; }
|
||||
WebIDL::ExceptionOr<void> set_volume(double);
|
||||
|
||||
double default_playback_rate() const { return m_default_playback_rate; }
|
||||
void set_default_playback_rate(double);
|
||||
|
||||
double playback_rate() const { return m_playback_rate; }
|
||||
WebIDL::ExceptionOr<void> set_playback_rate(double);
|
||||
|
||||
bool muted() const { return m_muted; }
|
||||
void set_muted(bool);
|
||||
|
||||
|
@ -266,6 +272,12 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-paused
|
||||
bool m_paused { true };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-defaultplaybackrate
|
||||
double m_default_playback_rate { 1.0 };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-playbackrate
|
||||
double m_playback_rate { 1.0 };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-volume
|
||||
double m_volume { 1.0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue