@oddin-gg/havik-player 2.15.5 → 2.16.0
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/havik-player.global.js +1 -1
- package/dist/havik-player.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/docs/API.md +1 -1
- package/embed/index.html +1 -1
- package/examples/vanilla.html +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -863,7 +863,9 @@ export declare interface PlaybackStats {
|
|
|
863
863
|
* contract rename is not worth a migration (plan D10). Read it as "total".
|
|
864
864
|
*/
|
|
865
865
|
decodedFrames?: number;
|
|
866
|
-
/** Live-edge latency in seconds
|
|
866
|
+
/** Live-edge latency in seconds: how far the playhead is behind the newest
|
|
867
|
+
* media the player knows about. hls.js engine: hls.js's own figure (includes
|
|
868
|
+
* playlist age). Native engine: end of the seekable range minus the playhead. */
|
|
867
869
|
latencySeconds?: number;
|
|
868
870
|
/** The live-sync target latency hls.js is converging to, in seconds. Compare
|
|
869
871
|
* against latencySeconds to see drift. */
|
package/dist/index.d.ts
CHANGED
|
@@ -863,7 +863,9 @@ export declare interface PlaybackStats {
|
|
|
863
863
|
* contract rename is not worth a migration (plan D10). Read it as "total".
|
|
864
864
|
*/
|
|
865
865
|
decodedFrames?: number;
|
|
866
|
-
/** Live-edge latency in seconds
|
|
866
|
+
/** Live-edge latency in seconds: how far the playhead is behind the newest
|
|
867
|
+
* media the player knows about. hls.js engine: hls.js's own figure (includes
|
|
868
|
+
* playlist age). Native engine: end of the seekable range minus the playhead. */
|
|
867
869
|
latencySeconds?: number;
|
|
868
870
|
/** The live-sync target latency hls.js is converging to, in seconds. Compare
|
|
869
871
|
* against latencySeconds to see drift. */
|
package/dist/index.js
CHANGED
|
@@ -1038,7 +1038,15 @@ var K = class {
|
|
|
1038
1038
|
droppedFrames: t.dropped,
|
|
1039
1039
|
decodedFrames: t.totalFrames
|
|
1040
1040
|
};
|
|
1041
|
-
|
|
1041
|
+
if (this.cdnHost ||= Ke(this.builtAt), this.cdnHost && (n.cdnHost = this.cdnHost), this.deps.descriptor.drmEnabled && (n.keySystem = "fairplay"), e.duration === Infinity) {
|
|
1042
|
+
if (n.isLive = !0, e.seekable.length > 0) {
|
|
1043
|
+
let t = e.seekable.end(e.seekable.length - 1);
|
|
1044
|
+
n.atLiveEdge = e.currentTime >= t - 2;
|
|
1045
|
+
let r = t - e.currentTime;
|
|
1046
|
+
Number.isFinite(r) && r >= 0 && (n.latencySeconds = r);
|
|
1047
|
+
}
|
|
1048
|
+
} else Number.isFinite(e.duration) && e.duration > 0 && (n.isLive = !1);
|
|
1049
|
+
return n;
|
|
1042
1050
|
}
|
|
1043
1051
|
stop() {
|
|
1044
1052
|
try {
|
|
@@ -2355,7 +2363,7 @@ async function ln() {
|
|
|
2355
2363
|
}
|
|
2356
2364
|
//#endregion
|
|
2357
2365
|
//#region src/core/version.ts
|
|
2358
|
-
var un = "2.
|
|
2366
|
+
var un = "2.16.0", dn = {
|
|
2359
2367
|
accent: "#E1B600",
|
|
2360
2368
|
accentText: "#1B1C23",
|
|
2361
2369
|
background: "#0e0f13",
|