@vindral/web-sdk 4.7.2-24-g3887c827 → 4.7.2-26-g8b5e1b27

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.
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as d, k as f, m as ee, p as te, t as ne, v as re, w as ie, x as ae, y as oe } from "./DoRrimKa.js";
2
+ import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as d, k as f, m as ee, p as te, t as ne, v as re, w as ie, x as ae, y as oe } from "./jG3XdcLo.js";
3
3
  import { t as se } from "./CuYn2z5X.js";
4
4
  import { i as p, n as m, r as h, t as g } from "./DSw1XhvD.js";
5
5
  import { c as ce, n as le, t as ue } from "./D40eQS8l.js";
package/cast-sender.d.ts CHANGED
@@ -299,6 +299,9 @@ interface Options {
299
299
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
300
300
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
301
301
  *
302
+ * While the page is hidden, a failure counts toward `reconnectRetries` only when the server answered: the channel
303
+ * is not live or not found, or the connect request got a 4xx other than 408 or 429. Retries back off up to 30 seconds.
304
+ *
302
305
  * ```typescript
303
306
  * // An example reconnect handler that will reconnect forever
304
307
  * const reconnectHandler = (state: ReconnectState) => true
package/core.d.ts CHANGED
@@ -408,6 +408,9 @@ export interface Options {
408
408
  * Note: the ReconnectState gets reset every time the client instance makes a successful connection.
409
409
  * This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
410
410
  *
411
+ * While the page is hidden, a failure counts toward `reconnectRetries` only when the server answered: the channel
412
+ * is not live or not found, or the connect request got a 4xx other than 408 or 429. Retries back off up to 30 seconds.
413
+ *
411
414
  * ```typescript
412
415
  * // An example reconnect handler that will reconnect forever
413
416
  * const reconnectHandler = (state: ReconnectState) => true
@@ -835,6 +838,14 @@ declare class ApiClient {
835
838
  private toChannel;
836
839
  }
837
840
  type TransportSelectionReason = "unsupported" | "disabled" | "disabled_unstable_browser" | "unavailable" | "fallback";
841
+ interface DocumentStateModulesStatistics extends NavigatorConnectionStatistics {
842
+ isVisible: boolean;
843
+ isOnline: boolean;
844
+ isVisibleCount: number;
845
+ isHiddenCount: number;
846
+ isOnlineCount: number;
847
+ isOfflineCount: number;
848
+ }
838
849
  interface AdaptivityStatistics {
839
850
  /**
840
851
  * True if adaptive bitrate (ABR) is enabled.
@@ -930,14 +941,6 @@ interface DecoderStatistics {
930
941
  audioRenderer?: "AudioContext" | "MSE";
931
942
  audioDecoder?: "WebCodecs" | "WASM" | "MSE";
932
943
  }
933
- interface DocumentStateModulesStatistics extends NavigatorConnectionStatistics {
934
- isVisible: boolean;
935
- isOnline: boolean;
936
- isVisibleCount: number;
937
- isHiddenCount: number;
938
- isOnlineCount: number;
939
- isOfflineCount: number;
940
- }
941
944
  interface IncomingDataModuleStatistics {
942
945
  /**
943
946
  * Current video bitrate in bits/second.
@@ -1571,10 +1574,11 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1571
1574
  getCastOptions: () => Options;
1572
1575
  private onConnectInfo;
1573
1576
  /**
1574
- * The connection closed because media queued ahead of the pong for seconds, so the current level doesn't fit the
1575
- * link. Lower the target below it before the rejoin, which otherwise asks for the same quality again.
1577
+ * A recovery reconnect: the current level didn't fit the link. Rejoin at the lowest level and let ABR climb back,
1578
+ * since another backlog or stall costs more than a few seconds at low quality.
1576
1579
  */
1577
- private stepDownForRejoin;
1580
+ private lowerTargetForRejoin;
1581
+ private onPingTimeout;
1578
1582
  private emitLanguagesIfChanged;
1579
1583
  private updateTextTracks;
1580
1584
  private cleanupTextTracks;
@@ -1757,8 +1761,8 @@ interface ConnectionStatistics {
1757
1761
  /**
1758
1762
  * Connections closed since instantiation because media queued too long between the edge and this client: the
1759
1763
  * link-queue breaker on vindral_ws and moq_ws, or missed pings on vindral_ws while its link queue is unknown. With ABR
1760
- * on, the reconnect drops a pending upgrade or targets one level lower, unless the player is at the lowest level or
1761
- * switching channel.
1764
+ * on, the reconnect targets the lowest level, unless the player is already there, switching channel or on an
1765
+ * audio-only ladder.
1762
1766
  */
1763
1767
  backlogReconnectCount: number;
1764
1768
  /**
package/core.js CHANGED
@@ -1,2 +1,2 @@
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 "./DoRrimKa.js";
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 "./jG3XdcLo.js";
2
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 };