1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibVideo: Add a getter for the PlaybackManager's selected track

This commit is contained in:
Timothy Flynn 2023-04-08 21:41:00 -04:00 committed by Linus Groh
parent 519b79abde
commit 918ed5c920

View file

@ -125,6 +125,8 @@ public:
Function<void(DecoderError)> on_decoder_error;
Function<void(Error)> on_fatal_playback_error;
Track const& selected_video_track() const { return m_selected_video_track; }
private:
class PlaybackStateHandler;
// Abstract class to allow resuming play/pause after the state is completed.