@oddin-gg/havik-player 2.6.4 → 2.7.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/README.md +9 -2
- 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 +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +144 -113
- 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/README.md
CHANGED
|
@@ -279,8 +279,15 @@ are correlated with CDN logs via a server-minted CMCD session id (`sid`). The
|
|
|
279
279
|
`sid` lives **only in JS memory**, never in storage or cookies, and dies with the
|
|
280
280
|
player. Opt out or
|
|
281
281
|
redirect with the `analytics` option on `createPlayer`
|
|
282
|
-
(`analytics: false | { endpoint?: string }`); without a
|
|
283
|
-
emitter is inert.
|
|
282
|
+
(`analytics: false | { endpoint?: string; idleMs?: number }`); without a
|
|
283
|
+
server-minted `sid` the emitter is inert.
|
|
284
|
+
|
|
285
|
+
A session closes itself
|
|
286
|
+
(`END_REASON_IDLE`) after `idleMs` of sitting paused. The default is 10
|
|
287
|
+
minutes, and `0` disables it. The same close happens when the page was
|
|
288
|
+
suspended (OS sleep, a frozen tab) for that long. The suspension gap never
|
|
289
|
+
goes below five minutes, whatever `idleMs` is. The next `play()` reloads the
|
|
290
|
+
stream as a fresh session.
|
|
284
291
|
|
|
285
292
|
## Privacy
|
|
286
293
|
|