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
Notes: sideshowbarker 2024-07-17 08:42:05 +09:00

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.