- // The second parameter is the clip's position in the play list.
- using next_clip_callback_func = std::function<std::pair<Clip, size_t>()>;
- void set_next_clip_callback(next_clip_callback_func cb) { next_clip_callback = cb; }
-
- // Not thread-safe to set concurrently with playing.
- // Will be called back from the player thread.