mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Add the concept of direction of playback in HTMLMediaElement
This commit is contained in:
parent
45727d7a58
commit
3be6b957f8
Notes:
github-actions[bot]
2025-10-28 00:31:10 +00:00
Author: https://github.com/Zaggy1024
Commit: 3be6b957f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6410
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/gmta ✅
2 changed files with 26 additions and 11 deletions
|
|
@ -216,6 +216,13 @@ private:
|
|||
void update_volume();
|
||||
|
||||
bool is_eligible_for_autoplay() const;
|
||||
|
||||
enum class PlaybackDirection : u8 {
|
||||
Forwards,
|
||||
Backwards,
|
||||
};
|
||||
PlaybackDirection direction_of_playback() const;
|
||||
|
||||
bool has_ended_playback() const;
|
||||
void reached_end_of_media_playback();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue