@nomercy-entertainment/nomercy-video-player 2.9.1 → 2.9.2

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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.9.2] — 2026-11-18
6
+
7
+ ### Fixed
8
+
9
+ - The desktop UI's progress bar stays inside its track. When a live stream ends, it can report a time just past its duration, and the fill ran past the bar's right edge.
10
+
5
11
  ## [2.9.1] — 2026-11-18
6
12
 
7
13
  ### Changed
@@ -69,11 +69,10 @@ export const transportStateMethods = {
69
69
  let pct = dur > 0
70
70
  ? ((seconds - offset) / dur) * 100
71
71
  : 0;
72
- if (live) {
73
- pct = win && dur > 0
74
- ? Math.min(100, Math.max(0, pct))
75
- : 100;
76
- }
72
+ // Clamp in every mode: an ended live stream can report a time just past its duration.
73
+ pct = live && !(win && dur > 0)
74
+ ? 100
75
+ : Math.min(100, Math.max(0, pct));
77
76
  this.remainingTimeEl.classList.toggle('behind-live', Boolean(win) && win.end - seconds > LIVE_EDGE_SLACK_SECONDS);
78
77
  if (!this.isScrubbing) {
79
78
  this.sliderRefs.sliderProgress.style.width = `${pct}%`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomercy-entertainment/nomercy-video-player",
3
3
  "type": "module",
4
- "version": "2.9.1",
4
+ "version": "2.9.2",
5
5
  "description": "Headless, event-driven HTML5 video player with HLS streaming, subtitle rendering (VTT/ASS/SSA), and a plugin system. No UI — you build your own.",
6
6
  "author": {
7
7
  "name": "NoMercy Entertainment",