fix(tracks): keep segment resume across an hls merge failure and a locked partial on windows

This commit is contained in:
imSp4rky
2026-11-28 20:26:40 -07:00
parent 37357673fe
commit 74fa29b6f1
5 changed files with 212 additions and 38 deletions
+4 -2
View File
@@ -132,8 +132,10 @@ ranges must all match the previous download, or the download silently restarts c
download never make segment files, so this option does not apply to them (the
downloader has its own in-flight partial-file handling for those).
- HLS resumes Widevine/PlayReady and unencrypted titles only. An AES-128 title always
restarts. An HLS failure during the post-download merge step also restarts, and so does
a failure of a multi-period DASH WebVTT subtitle during its merge step.
restarts. An HLS failure after the post-download merge step starts to join or decrypt
segments also restarts, and so does a failure of a multi-period DASH WebVTT subtitle
during its merge step. A failure before that point, such as a failed init segment
fetch, keeps the downloaded segments.
- A track downloaded with [`merge_segments`](#merge_segments) or
[`decrypt_segments`](drm.md#decrypt_segments) never resumes. Both options consume
or rewrite the segment files during the download.