keep audio skip consistent with playback

Clips were skipped even when the range would be served video-only, and seeking into a skipped span landed on later footage. The skip now only applies when every row in the range carries audio, and seeks inside a zero-duration span land on the next clip.
This commit is contained in:
Josh Hawkins
2026-10-25 15:58:01 -05:00
parent 0ed5561553
commit 4f82c68f64
4 changed files with 52 additions and 8 deletions
+6
View File
@@ -61,6 +61,12 @@ export function calculateSeekPosition(
return false;
}
// skipped clips have no playlist media, so a seek inside one lands on
// the next clip that plays
if (segment.duration === 0) {
return true;
}
// playlist duration exceeds wall length when the clip carries
// keyframe back-snap lead-in
const wallLength = segment.end_time - segment.start_time;