1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:38:12 +00:00

LibWeb: Add a getter for HTMLMediaElement's current playback position

This will be needed by the layout node, which may change what is painted
when the position of the frame image is not the same as the element's
current time.
This commit is contained in:
Timothy Flynn 2023-04-20 06:47:48 -04:00 committed by Andreas Kling
parent dd188aafb9
commit 42d93005ac

View file

@ -63,6 +63,8 @@ public:
double current_time() const;
void set_current_time(double);
double current_playback_position() const { return m_current_playback_position; }
void set_current_playback_position(double);
double duration() const;