@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.
- package/{DpGzTUcf.js → CBrlDmUn.js} +1 -1
- package/cast-sender.d.ts +3 -0
- package/core.d.ts +17 -13
- package/core.js +1 -1
- package/{DoRrimKa.js → jG3XdcLo.js} +1101 -1054
- package/legacy.d.ts +17 -13
- package/legacy.es.js +550 -503
- package/legacy.umd.js +8 -8
- package/package.json +1 -1
- package/player.d.ts +17 -13
- package/player.js +2 -2
- package/react.d.ts +17 -13
- package/vindral-player-component.js +2 -2
|
@@ -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 "./
|
|
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
|
-
*
|
|
1575
|
-
*
|
|
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
|
|
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
|
|
1761
|
-
*
|
|
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 "./
|
|
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 };
|