@oddin-gg/havik-player 2.6.2 → 2.6.3
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 +18 -18
- package/dist/havik-player.global.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +170 -154
- package/dist/index.js.map +1 -1
- package/docs/API.md +23 -10
- package/embed/index.html +1 -1
- package/examples/vanilla.html +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -906,9 +906,11 @@ export declare interface StreamDescriptor {
|
|
|
906
906
|
* The body is a `text/event-stream` we parse incrementally. The connection is
|
|
907
907
|
* long-lived (the server caps it at ~30min and sends heartbeats); on any
|
|
908
908
|
* close/error the client reconnects with exponential backoff and re-syncs from
|
|
909
|
-
* the initial snapshot the server replays on connect. A
|
|
910
|
-
*
|
|
911
|
-
* the
|
|
909
|
+
* the initial snapshot the server replays on connect. A connection that stops
|
|
910
|
+
* delivering without closing is caught by the idle watchdog
|
|
911
|
+
* (`idleTimeoutMs`) — see the note on it in `readStream`. A subscription
|
|
912
|
+
* failure is always non-fatal to playback — callers keep the HLS staleness
|
|
913
|
+
* watchdog as the layer-fallback.
|
|
912
914
|
*/
|
|
913
915
|
export declare function subscribeLiveState(opts: SubscribeLiveStateOptions): LiveStateSubscription;
|
|
914
916
|
|
|
@@ -934,6 +936,15 @@ export declare interface SubscribeLiveStateOptions {
|
|
|
934
936
|
/** Reconnect backoff floor / ceiling (ms). Defaults: 1000 / 15000. */
|
|
935
937
|
minBackoffMs?: number;
|
|
936
938
|
maxBackoffMs?: number;
|
|
939
|
+
/**
|
|
940
|
+
* How long a request may stay silent before it is treated as dead and
|
|
941
|
+
* reconnected. Applies to both phases: waiting for response headers, and
|
|
942
|
+
* waiting for the next byte on an open connection. Default 45000 — two
|
|
943
|
+
* missed 20s server heartbeats. Set `0` to disable the watchdog (a silent
|
|
944
|
+
* connection then stays open forever, which is what this subscription did
|
|
945
|
+
* before the watchdog existed).
|
|
946
|
+
*/
|
|
947
|
+
idleTimeoutMs?: number;
|
|
937
948
|
}
|
|
938
949
|
|
|
939
950
|
/** A selectable text (caption/subtitle) track. */
|
package/dist/index.d.ts
CHANGED
|
@@ -906,9 +906,11 @@ export declare interface StreamDescriptor {
|
|
|
906
906
|
* The body is a `text/event-stream` we parse incrementally. The connection is
|
|
907
907
|
* long-lived (the server caps it at ~30min and sends heartbeats); on any
|
|
908
908
|
* close/error the client reconnects with exponential backoff and re-syncs from
|
|
909
|
-
* the initial snapshot the server replays on connect. A
|
|
910
|
-
*
|
|
911
|
-
* the
|
|
909
|
+
* the initial snapshot the server replays on connect. A connection that stops
|
|
910
|
+
* delivering without closing is caught by the idle watchdog
|
|
911
|
+
* (`idleTimeoutMs`) — see the note on it in `readStream`. A subscription
|
|
912
|
+
* failure is always non-fatal to playback — callers keep the HLS staleness
|
|
913
|
+
* watchdog as the layer-fallback.
|
|
912
914
|
*/
|
|
913
915
|
export declare function subscribeLiveState(opts: SubscribeLiveStateOptions): LiveStateSubscription;
|
|
914
916
|
|
|
@@ -934,6 +936,15 @@ export declare interface SubscribeLiveStateOptions {
|
|
|
934
936
|
/** Reconnect backoff floor / ceiling (ms). Defaults: 1000 / 15000. */
|
|
935
937
|
minBackoffMs?: number;
|
|
936
938
|
maxBackoffMs?: number;
|
|
939
|
+
/**
|
|
940
|
+
* How long a request may stay silent before it is treated as dead and
|
|
941
|
+
* reconnected. Applies to both phases: waiting for response headers, and
|
|
942
|
+
* waiting for the next byte on an open connection. Default 45000 — two
|
|
943
|
+
* missed 20s server heartbeats. Set `0` to disable the watchdog (a silent
|
|
944
|
+
* connection then stays open forever, which is what this subscription did
|
|
945
|
+
* before the watchdog existed).
|
|
946
|
+
*/
|
|
947
|
+
idleTimeoutMs?: number;
|
|
937
948
|
}
|
|
938
949
|
|
|
939
950
|
/** A selectable text (caption/subtitle) track. */
|