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:
parent
a6b938b407
commit
4f26b35640
2 changed files with 40 additions and 53 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue