- player.set_progress_callback([¤t_value, &clips, total_length](const std::map<size_t, double> &player_progress) {
- current_value = 1.0 - compute_time_left(clips, player_progress) / total_length;
+ player.set_progress_callback([¤t_value, total_length](const std::map<uint64_t, double> &player_progress, double time_remaining) {
+ current_value = 1.0 - time_remaining / total_length;