1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

LibVideo: Add StartingStateHandler to prepare the first frames of video

This new state handler will retrieve and display the first frame, while
ensuring that playback can start as soon as possible by buffering two
frames on top of the first frame for the PlayingStateHandler to set its
next frame timer by.
This commit is contained in:
Zaggy1024 2023-02-12 00:48:27 -06:00 committed by Andreas Kling
parent f9a65c1502
commit 789bc99b8d
2 changed files with 58 additions and 2 deletions

View file

@ -114,6 +114,7 @@ public:
private:
class PlaybackStateHandler;
class StartingStateHandler;
class PlayingStateHandler;
class PausedStateHandler;
class BufferingStateHandler;