LibWeb: Add the concept of direction of playback in HTMLMediaElement

This commit is contained in:
Zaggy1024 2025-10-14 15:55:38 -05:00 committed by Jelle Raaijmakers
parent 45727d7a58
commit 3be6b957f8
Notes: github-actions[bot] 2025-10-28 00:31:10 +00:00
2 changed files with 26 additions and 11 deletions

View file

@ -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();