@torrent-tv/proxy 2.9.118 → 2.9.119
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/services/hls-session-manager.js +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.9.119
|
|
2
|
+
|
|
3
|
+
- **Fix**: The progress report says the height the viewer is actually watching, not only the one an encoder is producing. It was zero whenever the video was copied — which is most sessions — so the quality menu read a bare "Auto" in exactly the case it was built to explain. Copying reports the source height, re-encoding reports the rung the proxy has settled on.
|
|
4
|
+
|
|
1
5
|
## 2.9.118
|
|
2
6
|
|
|
3
7
|
- **New**: Suspending the encoder says what the decision was taken on — where the viewer is, how far the unbroken run of segments reaches from there, and how many segment files the session directory holds. Suspending stops the only thing that reads the input, so a wrong reading here stops the download as well: measured 2026-08-06, the log announced "135s ahead of the viewer" while three segments totalling 31 s lay on disk, and neither figure could be checked against the other because the line carried no evidence. The directory keeps the segments of every run a session has had, so which of them were counted is the whole question.
|
package/package.json
CHANGED
|
@@ -3494,13 +3494,16 @@ export class HlsSessionManager {
|
|
|
3494
3494
|
segmentDurationSec: this.segmentDurationSec,
|
|
3495
3495
|
speed: session.progress.speed,
|
|
3496
3496
|
outputMbps,
|
|
3497
|
-
// The height
|
|
3498
|
-
//
|
|
3499
|
-
//
|
|
3500
|
-
//
|
|
3501
|
-
//
|
|
3502
|
-
//
|
|
3503
|
-
|
|
3497
|
+
// The height the viewer is WATCHING right now, which is what the menu
|
|
3498
|
+
// has to say next to "Auto". When the video is re-encoded that is the
|
|
3499
|
+
// rung the proxy has settled on — it steps down when the host cannot keep
|
|
3500
|
+
// up or the link cannot carry the stream. When the video is COPIED it is
|
|
3501
|
+
// the source's own height, and reporting zero there was simply wrong:
|
|
3502
|
+
// most sessions copy the video, so the menu read a bare "Auto" almost
|
|
3503
|
+
// always, which is exactly the question it was supposed to answer.
|
|
3504
|
+
currentHeight: session.transcodeVideo
|
|
3505
|
+
? (session.encodeHeight ?? session.sourceHeight ?? 0)
|
|
3506
|
+
: (session.sourceHeight ?? 0),
|
|
3504
3507
|
updatedAt: session.progress.updatedAt,
|
|
3505
3508
|
error: session.state === "failed" ? session.lastError : ""
|
|
3506
3509
|
};
|