1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibVideo: Create Resuming handler for seek/buffer handlers to inherit

This allows the logic for keeping track of whether to resume to the
paused or the playing state when exiting these states. The new
StartingStateHandler also uses the class, since it can also be paused
and unpaused while waiting for samples.

The pause/play actions on the handlers inheriting from the resuming
handler will also now notify the owner that the state has changed so
that it can change icons, etc.
This commit is contained in:
Zaggy1024 2023-02-12 02:36:06 -06:00 committed by Andreas Kling
parent a6b938b407
commit 4f26b35640
2 changed files with 40 additions and 53 deletions

View file

@ -114,6 +114,8 @@ public:
private:
class PlaybackStateHandler;
// Abstract class to allow resuming play/pause after the state is completed.
class ResumingStateHandler;
class StartingStateHandler;
class PlayingStateHandler;
class PausedStateHandler;