@oddin-gg/havik-player 2.6.3 → 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/dist/index.d.cts CHANGED
@@ -231,6 +231,16 @@ export declare interface CreatePlayerOptions {
231
231
  */
232
232
  analytics?: boolean | {
233
233
  endpoint?: string;
234
+ /**
235
+ * How long the player may sit paused before the session closes itself
236
+ * (`END_REASON_IDLE`), and the suspension gap (OS sleep, a frozen tab)
237
+ * after which it does the same on waking. Default 10 minutes; `0`
238
+ * disables the idle close; the suspension gap never goes below five
239
+ * minutes, whatever this is set to (a hidden tab's throttled timers
240
+ * legitimately gap to a minute). After an idle close the next play()
241
+ * reloads the stream — a fresh session, a fresh sid, the live edge.
242
+ */
243
+ idleMs?: number;
234
244
  };
235
245
  }
236
246
 
package/dist/index.d.ts CHANGED
@@ -231,6 +231,16 @@ export declare interface CreatePlayerOptions {
231
231
  */
232
232
  analytics?: boolean | {
233
233
  endpoint?: string;
234
+ /**
235
+ * How long the player may sit paused before the session closes itself
236
+ * (`END_REASON_IDLE`), and the suspension gap (OS sleep, a frozen tab)
237
+ * after which it does the same on waking. Default 10 minutes; `0`
238
+ * disables the idle close; the suspension gap never goes below five
239
+ * minutes, whatever this is set to (a hidden tab's throttled timers
240
+ * legitimately gap to a minute). After an idle close the next play()
241
+ * reloads the stream — a fresh session, a fresh sid, the live edge.
242
+ */
243
+ idleMs?: number;
234
244
  };
235
245
  }
236
246