+ void override_angle(unsigned stream_idx); // For the current clip only.
+
+ // Not thread-safe to set concurrently with playing.
+ // Will be called back from the player thread.
+ using done_callback_func = std::function<void()>;
+ void set_done_callback(done_callback_func cb) { done_callback = cb; }
+
+ // Not thread-safe to set concurrently with playing.
+ // Will be called back from the player thread.
+ using progress_callback_func = std::function<void(double played_this_clip, double total_length)>;
+ void set_progress_callback(progress_callback_func cb) { progress_callback = cb; }