@oddin-gg/havik-player 2.0.4 → 2.1.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 +2 -2
- package/dist/havik-player.global.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +426 -165
- package/dist/index.js.map +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
|
@@ -217,8 +217,10 @@ export declare interface CreatePlayerOptions {
|
|
|
217
217
|
* `{ endpoint }` to point at a non-conventional beacons host.
|
|
218
218
|
*
|
|
219
219
|
* Privacy: the sid is an opaque per-session id, held in memory only and
|
|
220
|
-
* never persisted
|
|
221
|
-
*
|
|
220
|
+
* never persisted. Beacons carry playback QoE numbers plus the session's
|
|
221
|
+
* environment (form factor, device model and OS version where the browser
|
|
222
|
+
* offers client hints, screen, connection, embedding origin) — never an
|
|
223
|
+
* IP, never the raw user agent, and no identifier beyond the sid.
|
|
222
224
|
*/
|
|
223
225
|
analytics?: boolean | {
|
|
224
226
|
endpoint?: string;
|
|
@@ -654,6 +656,8 @@ export declare interface PlaybackErrorInit {
|
|
|
654
656
|
|
|
655
657
|
export declare interface PlaybackStats {
|
|
656
658
|
droppedFrames: number;
|
|
659
|
+
/** Frames decoded this session — the denominator dropped frames need. */
|
|
660
|
+
decodedFrames?: number;
|
|
657
661
|
/** Live-edge latency in seconds (hls.js engine only). */
|
|
658
662
|
latencySeconds?: number;
|
|
659
663
|
/** The live-sync target latency hls.js is converging to, in seconds. Compare
|
|
@@ -679,6 +683,28 @@ export declare interface PlaybackStats {
|
|
|
679
683
|
renditionBitrateKbps?: number;
|
|
680
684
|
/** Duration of the most recent DRM license acquisition in ms (0 = none yet). */
|
|
681
685
|
licenseTimeMs?: number;
|
|
686
|
+
/** RFC 6381 codec strings of the current rendition. */
|
|
687
|
+
videoCodec?: string;
|
|
688
|
+
audioCodec?: string;
|
|
689
|
+
/** The offered rendition ladder, ascending heights, and its top bitrate. */
|
|
690
|
+
ladderHeights?: number[];
|
|
691
|
+
ladderTopBitrateKbps?: number;
|
|
692
|
+
/** DRM the engine negotiated for the session. */
|
|
693
|
+
keySystem?: 'widevine' | 'fairplay' | 'none';
|
|
694
|
+
/** Robustness requested/granted, e.g. Widevine L3 (software) on the web. */
|
|
695
|
+
drmSecurityLevel?: string;
|
|
696
|
+
/** The viewer pinned a quality; ABR is not deciding. */
|
|
697
|
+
qualityPinned?: boolean;
|
|
698
|
+
/** Cumulative ABR switch direction split (renditionSwitches = both). */
|
|
699
|
+
upshifts?: number;
|
|
700
|
+
downshifts?: number;
|
|
701
|
+
/** Cumulative media requests completed / failed, and the durations of the
|
|
702
|
+
* most recent ones (ms, newest last, bounded) for interval percentiles. */
|
|
703
|
+
requestCount?: number;
|
|
704
|
+
requestErrors?: number;
|
|
705
|
+
requestTimesMs?: number[];
|
|
706
|
+
/** Host of the most recent media request — host only, never the path. */
|
|
707
|
+
cdnHost?: string;
|
|
682
708
|
}
|
|
683
709
|
|
|
684
710
|
export declare interface Player {
|
package/dist/index.d.ts
CHANGED
|
@@ -217,8 +217,10 @@ export declare interface CreatePlayerOptions {
|
|
|
217
217
|
* `{ endpoint }` to point at a non-conventional beacons host.
|
|
218
218
|
*
|
|
219
219
|
* Privacy: the sid is an opaque per-session id, held in memory only and
|
|
220
|
-
* never persisted
|
|
221
|
-
*
|
|
220
|
+
* never persisted. Beacons carry playback QoE numbers plus the session's
|
|
221
|
+
* environment (form factor, device model and OS version where the browser
|
|
222
|
+
* offers client hints, screen, connection, embedding origin) — never an
|
|
223
|
+
* IP, never the raw user agent, and no identifier beyond the sid.
|
|
222
224
|
*/
|
|
223
225
|
analytics?: boolean | {
|
|
224
226
|
endpoint?: string;
|
|
@@ -654,6 +656,8 @@ export declare interface PlaybackErrorInit {
|
|
|
654
656
|
|
|
655
657
|
export declare interface PlaybackStats {
|
|
656
658
|
droppedFrames: number;
|
|
659
|
+
/** Frames decoded this session — the denominator dropped frames need. */
|
|
660
|
+
decodedFrames?: number;
|
|
657
661
|
/** Live-edge latency in seconds (hls.js engine only). */
|
|
658
662
|
latencySeconds?: number;
|
|
659
663
|
/** The live-sync target latency hls.js is converging to, in seconds. Compare
|
|
@@ -679,6 +683,28 @@ export declare interface PlaybackStats {
|
|
|
679
683
|
renditionBitrateKbps?: number;
|
|
680
684
|
/** Duration of the most recent DRM license acquisition in ms (0 = none yet). */
|
|
681
685
|
licenseTimeMs?: number;
|
|
686
|
+
/** RFC 6381 codec strings of the current rendition. */
|
|
687
|
+
videoCodec?: string;
|
|
688
|
+
audioCodec?: string;
|
|
689
|
+
/** The offered rendition ladder, ascending heights, and its top bitrate. */
|
|
690
|
+
ladderHeights?: number[];
|
|
691
|
+
ladderTopBitrateKbps?: number;
|
|
692
|
+
/** DRM the engine negotiated for the session. */
|
|
693
|
+
keySystem?: 'widevine' | 'fairplay' | 'none';
|
|
694
|
+
/** Robustness requested/granted, e.g. Widevine L3 (software) on the web. */
|
|
695
|
+
drmSecurityLevel?: string;
|
|
696
|
+
/** The viewer pinned a quality; ABR is not deciding. */
|
|
697
|
+
qualityPinned?: boolean;
|
|
698
|
+
/** Cumulative ABR switch direction split (renditionSwitches = both). */
|
|
699
|
+
upshifts?: number;
|
|
700
|
+
downshifts?: number;
|
|
701
|
+
/** Cumulative media requests completed / failed, and the durations of the
|
|
702
|
+
* most recent ones (ms, newest last, bounded) for interval percentiles. */
|
|
703
|
+
requestCount?: number;
|
|
704
|
+
requestErrors?: number;
|
|
705
|
+
requestTimesMs?: number[];
|
|
706
|
+
/** Host of the most recent media request — host only, never the path. */
|
|
707
|
+
cdnHost?: string;
|
|
682
708
|
}
|
|
683
709
|
|
|
684
710
|
export declare interface Player {
|