@torrent-tv/proxy 2.107.17 → 2.107.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -749,8 +749,13 @@ function scheduleTail({ trackState, sourceState, sourceByteCoverage, sourceArriv
|
|
|
749
749
|
if (!source) return { reason: "source-measurement-unavailable" };
|
|
750
750
|
if (source.source.complete === true) continue;
|
|
751
751
|
const ranges = exactInputs ? inputRangesOf(exactInputs, sourceId) : null;
|
|
752
|
-
if (ranges === null)
|
|
753
|
-
|
|
752
|
+
if (ranges === null) {
|
|
753
|
+
// The tail extends beyond the ranges the playback map has asked to
|
|
754
|
+
// resolve. Stop this projection at that boundary: the near window
|
|
755
|
+
// remains exact, and later segments enter the map as the viewer
|
|
756
|
+
// advances. Waiting for the whole tail here prevents a cold start.
|
|
757
|
+
return null;
|
|
758
|
+
}
|
|
754
759
|
const bytes = supplyOf(sourceId);
|
|
755
760
|
let order = 0;
|
|
756
761
|
for (const range of ranges) {
|