@oddin-gg/havik-player 1.16.0 → 1.17.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
@@ -151,12 +151,27 @@ export declare interface CreatePlayerOptions {
151
151
  * Subscribe to push-based live-state over SSE (`events.<domain>/v1/events/{urn}`)
152
152
  * to detect end-of-stream the instant the bridge flips, instead of waiting on
153
153
  * the frozen Tencent manifest (which never emits #EXT-X-ENDLIST). On `ended`/
154
- * `gone` the player stops buffering and emits `ended`. Default: true — and
154
+ * `gone` the player stops buffering and emits `ended`; a later pushed `live`
155
+ * rejoins automatically (see {@link rejoinOnLive}). Default: true — and
155
156
  * fully graceful: if the endpoint is unreachable the subscription retries
156
157
  * quietly in the background while the HLS staleness watchdog remains the
157
158
  * layer-fallback, so playback is never affected. Set false to disable.
158
159
  */
159
160
  liveStateEvents?: boolean;
161
+ /**
162
+ * Rejoin automatically when a stream that ended comes back live. An ingest
163
+ * outage longer than the bridge's reconnect grace tears the session down
164
+ * and — when the encoder reconnects — recreates it under a NEW manifest
165
+ * URL, while the old playlist freezes at HTTP 200 forever. A player that
166
+ * latched `ended` can therefore only recover by re-resolving playback.
167
+ * With this on (the default), the live-state subscription stays open after
168
+ * `ended` (it closes on `gone`, the past-catchup terminal), and a pushed
169
+ * `live` re-arms and re-attaches automatically through the same jittered
170
+ * go-live path the pre-live wait uses. Set false to keep `ended` terminal
171
+ * (the pre-1.13 behavior). No effect when {@link liveStateEvents} is
172
+ * disabled — without the push channel there is nothing to rejoin on.
173
+ */
174
+ rejoinOnLive?: boolean;
160
175
  /**
161
176
  * Override the SSE endpoint base URL. Default: derived from {@link baseUrl} by
162
177
  * prefixing the host with `events.` (e.g. `feed.<domain>` →
package/dist/index.d.ts CHANGED
@@ -151,12 +151,27 @@ export declare interface CreatePlayerOptions {
151
151
  * Subscribe to push-based live-state over SSE (`events.<domain>/v1/events/{urn}`)
152
152
  * to detect end-of-stream the instant the bridge flips, instead of waiting on
153
153
  * the frozen Tencent manifest (which never emits #EXT-X-ENDLIST). On `ended`/
154
- * `gone` the player stops buffering and emits `ended`. Default: true — and
154
+ * `gone` the player stops buffering and emits `ended`; a later pushed `live`
155
+ * rejoins automatically (see {@link rejoinOnLive}). Default: true — and
155
156
  * fully graceful: if the endpoint is unreachable the subscription retries
156
157
  * quietly in the background while the HLS staleness watchdog remains the
157
158
  * layer-fallback, so playback is never affected. Set false to disable.
158
159
  */
159
160
  liveStateEvents?: boolean;
161
+ /**
162
+ * Rejoin automatically when a stream that ended comes back live. An ingest
163
+ * outage longer than the bridge's reconnect grace tears the session down
164
+ * and — when the encoder reconnects — recreates it under a NEW manifest
165
+ * URL, while the old playlist freezes at HTTP 200 forever. A player that
166
+ * latched `ended` can therefore only recover by re-resolving playback.
167
+ * With this on (the default), the live-state subscription stays open after
168
+ * `ended` (it closes on `gone`, the past-catchup terminal), and a pushed
169
+ * `live` re-arms and re-attaches automatically through the same jittered
170
+ * go-live path the pre-live wait uses. Set false to keep `ended` terminal
171
+ * (the pre-1.13 behavior). No effect when {@link liveStateEvents} is
172
+ * disabled — without the push channel there is nothing to rejoin on.
173
+ */
174
+ rejoinOnLive?: boolean;
160
175
  /**
161
176
  * Override the SSE endpoint base URL. Default: derived from {@link baseUrl} by
162
177
  * prefixing the host with `events.` (e.g. `feed.<domain>` →