@vindral/web-sdk 4.8.2 → 4.8.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/api-client.js CHANGED
@@ -1,2 +1 @@
1
- import { t as e } from "./D40eQS8l.js";
2
- export { e as ApiClient };
1
+ export { t as ApiClient } from "./BeCY4GvT.js";
package/cast-sender.d.ts CHANGED
@@ -299,7 +299,14 @@ interface Options {
299
299
  * false to stop reconnecting. It can also return a promise with true or false if it needs
300
300
  * to make any async calls before determining wether to reconnect.
301
301
  *
302
- * The default reconnect handler allows 30 reconnects before stopping.
302
+ * The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
303
+ * rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
304
+ * only the failed reconnects since the handler last answered. The first such failure of a player instance is
305
+ * reported as an uncaught error, with the original as its `cause`.
306
+ *
307
+ * Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
308
+ * a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
309
+ * return your own answer.
303
310
  *
304
311
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
305
312
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
package/cast-sender.js CHANGED
@@ -1,2 +1 @@
1
- import { t as e } from "./CLvW8aae.js";
2
- export { e as CastSender };
1
+ export { t as CastSender } from "./DHV7WJZT.js";
package/core.d.ts CHANGED
@@ -408,7 +408,14 @@ export interface Options {
408
408
  * false to stop reconnecting. It can also return a promise with true or false if it needs
409
409
  * to make any async calls before determining wether to reconnect.
410
410
  *
411
- * The default reconnect handler allows 30 reconnects before stopping.
411
+ * The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
412
+ * rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
413
+ * only the failed reconnects since the handler last answered. The first such failure of a player instance is
414
+ * reported as an uncaught error, with the original as its `cause`.
415
+ *
416
+ * Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
417
+ * a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
418
+ * return your own answer.
412
419
  *
413
420
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
414
421
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
@@ -1264,6 +1271,8 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1264
1271
  private offscreenCanvasElement?;
1265
1272
  private webCodecsRenditionSupport;
1266
1273
  private hasCalledConnect;
1274
+ /** The next join is a rejoin after congestion or fatal QoS, which asks for a short burst. */
1275
+ private shortBurstRejoin;
1267
1276
  /** The last upgrade check held, so the hold is logged once. */
1268
1277
  private upgradeHeld;
1269
1278
  private hasRequestedAudioSession;
@@ -1585,6 +1594,12 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1585
1594
  * since another backlog or stall costs more than a few seconds at low quality.
1586
1595
  */
1587
1596
  private lowerTargetForRejoin;
1597
+ /**
1598
+ * The join burst: the buffer target, or 0 when bursts are off. A link too thin for the target's burst, or a rejoin
1599
+ * after congestion or fatal QoS, gets a short burst instead, so it starts in the edge's live group without
1600
+ * resending history into a link that can't take it.
1601
+ */
1602
+ private joinBurstMs;
1588
1603
  private onPingTimeout;
1589
1604
  private emitLanguagesIfChanged;
1590
1605
  private updateTextTracks;
package/core.js CHANGED
@@ -1,2 +1 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./DTFc40PP.js";
2
- export { s as AUTHENTICATION_EXPIRED_CODE, i as AUTHENTICATION_FAILED_CODE, e as CHANNEL_NOT_FOUND_CODE, o as CHANNEL_NOT_LIVE_CODE, c as CONNECTION_FAILED_AFTER_RETRIES_CODE, t as CONNECTION_FAILED_CODE, a as DISCONNECTED_BY_EDGE, u as INACTIVITY_CODE, n as NO_INCOMING_DATA, l as Vindral, r as VindralError };
1
+ export { o as AUTHENTICATION_EXPIRED_CODE, s as AUTHENTICATION_FAILED_CODE, c as CHANNEL_NOT_FOUND_CODE, l as CHANNEL_NOT_LIVE_CODE, u as CONNECTION_FAILED_AFTER_RETRIES_CODE, d as CONNECTION_FAILED_CODE, f as DISCONNECTED_BY_EDGE, p as INACTIVITY_CODE, m as NO_INCOMING_DATA, t as Vindral, h as VindralError } from "./CnefSzun.js";
package/legacy.d.ts CHANGED
@@ -411,7 +411,14 @@ export interface Options {
411
411
  * false to stop reconnecting. It can also return a promise with true or false if it needs
412
412
  * to make any async calls before determining wether to reconnect.
413
413
  *
414
- * The default reconnect handler allows 30 reconnects before stopping.
414
+ * The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
415
+ * rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
416
+ * only the failed reconnects since the handler last answered. The first such failure of a player instance is
417
+ * reported as an uncaught error, with the original as its `cause`.
418
+ *
419
+ * Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
420
+ * a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
421
+ * return your own answer.
415
422
  *
416
423
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
417
424
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
@@ -1279,6 +1286,8 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1279
1286
  private offscreenCanvasElement?;
1280
1287
  private webCodecsRenditionSupport;
1281
1288
  private hasCalledConnect;
1289
+ /** The next join is a rejoin after congestion or fatal QoS, which asks for a short burst. */
1290
+ private shortBurstRejoin;
1282
1291
  /** The last upgrade check held, so the hold is logged once. */
1283
1292
  private upgradeHeld;
1284
1293
  private hasRequestedAudioSession;
@@ -1600,6 +1609,12 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1600
1609
  * since another backlog or stall costs more than a few seconds at low quality.
1601
1610
  */
1602
1611
  private lowerTargetForRejoin;
1612
+ /**
1613
+ * The join burst: the buffer target, or 0 when bursts are off. A link too thin for the target's burst, or a rejoin
1614
+ * after congestion or fatal QoS, gets a short burst instead, so it starts in the edge's live group without
1615
+ * resending history into a link that can't take it.
1616
+ */
1617
+ private joinBurstMs;
1603
1618
  private onPingTimeout;
1604
1619
  private emitLanguagesIfChanged;
1605
1620
  private updateTextTracks;