@banou/media-player 0.10.43 → 0.10.44

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/dist/index.js CHANGED
@@ -1912,7 +1912,7 @@ ${Nt}
1912
1912
  }
1913
1913
  }
1914
1914
  }
1915
- `, Lt = (e, t) => new Date(e).toLocaleTimeString(t), Rt = (e) => e === void 0 || !Number.isFinite(e) ? void 0 : _t(Math.max(0, e)), zt = (e) => e.reduce((e, t) => e + t.count, 0), Bt = (e) => e.map((e, t) => {
1915
+ `, Lt = (e, t) => new Date(e).toLocaleTimeString(t ?? "en"), Rt = (e) => e === void 0 || !Number.isFinite(e) ? void 0 : _t(Math.max(0, e)), zt = (e) => e.reduce((e, t) => e + t.count, 0), Bt = (e) => e.map((e, t) => {
1916
1916
  let n = Rt(e.atMediaTime), r = e.count > 1 ? `${new Date(e.at).toISOString()} to ${new Date(e.lastAt).toISOString()} ×${e.count}` : new Date(e.at).toISOString();
1917
1917
  return [
1918
1918
  `${t + 1}. ${r}${n ? ` (at ${n})` : ""}${e.recovered ? " [recovered]" : ""}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banou/media-player",
3
- "version": "0.10.43",
3
+ "version": "0.10.44",
4
4
  "description": "A video player for containers and codecs the browser cannot play natively, remuxed on the fly",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -103,7 +103,8 @@ ${popoverStyle}
103
103
  }
104
104
  `
105
105
 
106
- const clock = (at: number, locale: string | undefined) => new Date(at).toLocaleTimeString(locale)
106
+ // English when the player was given no language, as its numbers are, never the browser's own digits
107
+ const clock = (at: number, locale: string | undefined) => new Date(at).toLocaleTimeString(locale ?? 'en')
107
108
 
108
109
  // the chrome's own formatter, so a position in the log reads exactly like the one on the seekbar
109
110
  const mediaTime = (seconds: number | undefined) =>