@oddin-gg/havik-player 2.23.1 → 2.23.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/dist/index.d.cts CHANGED
@@ -1052,7 +1052,10 @@ export declare interface PlaybackStats {
1052
1052
  upshifts?: number;
1053
1053
  downshifts?: number;
1054
1054
  /** Cumulative media requests completed / failed, and the durations of the
1055
- * most recent ones (ms, newest last, bounded) for interval percentiles. */
1055
+ * most recent ones (ms, newest last, bounded) for interval percentiles.
1056
+ * A request is one media fetch: on LL-HLS a part, otherwise a whole
1057
+ * fragment. (Earlier hls.js-engine releases recorded the fragment's span
1058
+ * across its parts on LL-HLS, so their readings are not comparable.) */
1056
1059
  requestCount?: number;
1057
1060
  requestErrors?: number;
1058
1061
  requestTimesMs?: number[];
package/dist/index.d.ts CHANGED
@@ -1052,7 +1052,10 @@ export declare interface PlaybackStats {
1052
1052
  upshifts?: number;
1053
1053
  downshifts?: number;
1054
1054
  /** Cumulative media requests completed / failed, and the durations of the
1055
- * most recent ones (ms, newest last, bounded) for interval percentiles. */
1055
+ * most recent ones (ms, newest last, bounded) for interval percentiles.
1056
+ * A request is one media fetch: on LL-HLS a part, otherwise a whole
1057
+ * fragment. (Earlier hls.js-engine releases recorded the fragment's span
1058
+ * across its parts on LL-HLS, so their readings are not comparable.) */
1056
1059
  requestCount?: number;
1057
1060
  requestErrors?: number;
1058
1061
  requestTimesMs?: number[];
package/dist/index.js CHANGED
@@ -1770,11 +1770,11 @@ var Fn = class {
1770
1770
  t?.frag?.type === "main" && (this.lastFragLoadingMs = Date.now());
1771
1771
  }), p.on(e.Events.FRAG_LOADED, (e, t) => {
1772
1772
  t?.frag?.type === "main" && (this.mainFragsSinceTick += 1, this.bwFragsLoaded += 1, this.maybeRememberBandwidth(!1));
1773
- let n = t?.frag?.stats, r = n?.loaded;
1773
+ let n = t?.frag, r = n?.stats?.loaded;
1774
1774
  typeof r == "number" && (this.bytesLoaded += r), !this.reportedFirstBytes && typeof r == "number" && r > 0 && (this.reportedFirstBytes = !0, l({ type: "firstBytes" }));
1775
- let i = n?.loading;
1775
+ let i = (t?.part ?? n)?.stats?.loading;
1776
1776
  i && i.end > 0 && i.start > 0 && (this.requestCount += 1, this.requestTimesMs.push(Math.max(0, Math.round(i.end - i.start))), this.requestTimesMs.length > Sn && this.requestTimesMs.shift()), this.sampleHoldBack(t);
1777
- let a = t?.frag?.url;
1777
+ let a = n?.url;
1778
1778
  if (a) {
1779
1779
  let e = st(a);
1780
1780
  e && (this.cdnHost = e);
@@ -2804,7 +2804,7 @@ async function ir() {
2804
2804
  }
2805
2805
  //#endregion
2806
2806
  //#region src/core/version.ts
2807
- var ar = "2.23.1", or = {
2807
+ var ar = "2.23.2", or = {
2808
2808
  accent: "#E1B600",
2809
2809
  accentText: "#1B1C23",
2810
2810
  background: "#0e0f13",