@nomercy-entertainment/nomercy-video-player 2.9.0 → 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,18 @@
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
+
11
+ ## [2.9.1] — 2026-11-18
12
+
13
+ ### Changed
14
+
15
+ - Released at the trio version with core 2.9.2 (sidecar subtitles and chapters keep the `baseUrl` path). No video player changes.
16
+
5
17
  ## [2.9.0] — 2026-11-14
6
18
 
7
19
  ### Fixed
@@ -1593,11 +1593,11 @@ export class Html5VideoBackend extends MediaElementBackend {
1593
1593
  // Cue normalisation
1594
1594
  // ─────────────────────────────────────────────────────────────────────────
1595
1595
  /**
1596
- * Tags renderers know how to draw safely. Everything else is stripped at
1597
- * parse time so consumers never need to re-sanitise downstream.
1596
+ * Keep only `<i>`, `<b>`, `<u>` so consumers never re-sanitise; same rule as
1597
+ * core's `parseVttSubtitles`. A `<` that could still open a tag is dropped.
1598
1598
  */
1599
- const UNRECOGNISED_INLINE_TAG_RE = /<\/?(?:c(?:\.[^>]*)?|v(?:\s[^>]*)?|ruby|rt|lang(?:\.[^>]*)?)>/gi;
1600
- const TIMESTAMP_TAG_RE = /<\d{2}:\d{2}:\d{2}\.\d{3}>/g;
1599
+ const NON_INLINE_TAG_RE = /<(?!\/?[ibu]>)[^<>]*>/gi;
1600
+ const STRAY_TAG_OPEN_RE = /<(?!\/?[ibu]>)(?=[a-z/!?])/gi;
1601
1601
  const ALL_TAG_RE = /<[^>]+>/g;
1602
1602
  /**
1603
1603
  * Translate a native `VTTCue` into the backend-agnostic `SubtitleCue`
@@ -1630,7 +1630,7 @@ function mergeCaptionRows(rows) {
1630
1630
  }
1631
1631
  function normaliseVttCue(cue) {
1632
1632
  const raw = cue.text ?? '';
1633
- const safe = raw.replace(TIMESTAMP_TAG_RE, '').replace(UNRECOGNISED_INLINE_TAG_RE, '');
1633
+ const safe = raw.replace(NON_INLINE_TAG_RE, '').replace(STRAY_TAG_OPEN_RE, '');
1634
1634
  const plain = safe.replace(ALL_TAG_RE, '').trim();
1635
1635
  // `cue.line` is either a number or 'auto'. `cue.snapToLines` decides
1636
1636
  // whether that number is a LINE INDEX (CEA-608 style: line:1 = top