feat: offer timed opening and ending skips

This commit is contained in:
2026-10-22 13:24:37 +02:00
parent 7b53b00b15
commit 3d949154a2
8 changed files with 165 additions and 10 deletions
+3 -1
View File
@@ -766,7 +766,9 @@ struct Player {
for (auto &input : inputs) {
if (!input) continue;
input->discardAudio(false);
if (input.get() == tracks[0].input && input.get() != tracks[1].input && beyondAudio(target))
// EOF is a timeline position, not a demux seek target (HLS rejects it).
if ((duration > 0 && target >= duration) ||
(input.get() == tracks[0].input && input.get() != tracks[1].input && beyondAudio(target)))
input->finish();
else
input->seek(-1, timestamp);