@oddin-gg/havik-player 2.17.0 → 2.18.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 +17 -17
- 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 +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +405 -344
- package/dist/index.js.map +1 -1
- package/docs/API.md +21 -1
- package/docs/STABILITY.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
|
@@ -98,6 +98,9 @@ export declare interface CatalogTournament {
|
|
|
98
98
|
*/
|
|
99
99
|
export declare function clearDeviceId(): void;
|
|
100
100
|
|
|
101
|
+
/** Forget every remembered estimate (privacy / "reset player data" control). */
|
|
102
|
+
export declare function clearRememberedBandwidth(): void;
|
|
103
|
+
|
|
101
104
|
/**
|
|
102
105
|
* Endpoint selection, enforced at COMPILE time.
|
|
103
106
|
*
|
|
@@ -193,6 +196,17 @@ export declare interface CreatePlayerOptions {
|
|
|
193
196
|
* return is the one from before leaving. Default: true. Live/LL only.
|
|
194
197
|
*/
|
|
195
198
|
snapToLiveOnRefocus?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Start a stream at the quality this device's last measured speed allows,
|
|
201
|
+
* instead of always at ~360p. The hls.js engine saves its bandwidth estimate
|
|
202
|
+
* in localStorage (key `havik.player.bandwidth`, per connection type where the
|
|
203
|
+
* browser reports one) after ~10 s of playback and reuses it, discounted to
|
|
204
|
+
* 80%, for up to 3 days; a device that measured a slow line starts from that
|
|
205
|
+
* lower figure (never below 0.3 Mbps). A first visit, a stale record, or
|
|
206
|
+
* blocked storage keeps the conservative ~1 Mbps start. An explicit
|
|
207
|
+
* hlsConfig.abrEwmaDefaultEstimate or startLevel still wins. Default: true.
|
|
208
|
+
*/
|
|
209
|
+
rememberBandwidth?: boolean;
|
|
196
210
|
/**
|
|
197
211
|
* DRM cold start: download the first init segment and parts while the
|
|
198
212
|
* first key is still being acquired, instead of after it (hls.js waits for
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,9 @@ export declare interface CatalogTournament {
|
|
|
98
98
|
*/
|
|
99
99
|
export declare function clearDeviceId(): void;
|
|
100
100
|
|
|
101
|
+
/** Forget every remembered estimate (privacy / "reset player data" control). */
|
|
102
|
+
export declare function clearRememberedBandwidth(): void;
|
|
103
|
+
|
|
101
104
|
/**
|
|
102
105
|
* Endpoint selection, enforced at COMPILE time.
|
|
103
106
|
*
|
|
@@ -193,6 +196,17 @@ export declare interface CreatePlayerOptions {
|
|
|
193
196
|
* return is the one from before leaving. Default: true. Live/LL only.
|
|
194
197
|
*/
|
|
195
198
|
snapToLiveOnRefocus?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Start a stream at the quality this device's last measured speed allows,
|
|
201
|
+
* instead of always at ~360p. The hls.js engine saves its bandwidth estimate
|
|
202
|
+
* in localStorage (key `havik.player.bandwidth`, per connection type where the
|
|
203
|
+
* browser reports one) after ~10 s of playback and reuses it, discounted to
|
|
204
|
+
* 80%, for up to 3 days; a device that measured a slow line starts from that
|
|
205
|
+
* lower figure (never below 0.3 Mbps). A first visit, a stale record, or
|
|
206
|
+
* blocked storage keeps the conservative ~1 Mbps start. An explicit
|
|
207
|
+
* hlsConfig.abrEwmaDefaultEstimate or startLevel still wins. Default: true.
|
|
208
|
+
*/
|
|
209
|
+
rememberBandwidth?: boolean;
|
|
196
210
|
/**
|
|
197
211
|
* DRM cold start: download the first init segment and parts while the
|
|
198
212
|
* first key is still being acquired, instead of after it (hls.js waits for
|