@vindral/web-sdk 4.2.1-1-gf6c6f2fd → 4.2.1-11-ge4e4b428

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.2.1-1-gf6c6f2fd",
2
+ "version": "4.2.1-11-ge4e4b428",
3
3
  "name": "@vindral/web-sdk",
4
4
  "main": "./legacy.umd.js",
5
5
  "module": "./legacy.es.js",
package/player.d.ts CHANGED
@@ -691,6 +691,7 @@ declare class ApiClient {
691
691
  private toChannels;
692
692
  private toChannel;
693
693
  }
694
+ type TransportSelectionReason = "unsupported" | "disabled" | "unavailable" | "fallback";
694
695
  interface AdaptivityStatistics {
695
696
  /**
696
697
  * True if adaptive bitrate (ABR) is enabled.
@@ -1465,6 +1466,14 @@ interface ConnectionStatistics {
1465
1466
  */
1466
1467
  connectionSuccessRatio: number;
1467
1468
  connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
1469
+ /**
1470
+ * When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
1471
+ * - "unsupported": browser doesn't support WebTransport
1472
+ * - "disabled": webtransportEnabled option is false
1473
+ * - "unavailable": edge did not offer a WebTransport endpoint
1474
+ * - "fallback": WebTransport was attempted but failed or timed out
1475
+ */
1476
+ transportSelectionReason: TransportSelectionReason | undefined;
1468
1477
  }
1469
1478
  interface LanguageSwitchContext {
1470
1479
  /**
package/player.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./CL0_JU7W.js";
2
- import "./CYgjrKff.js";
3
- import { t } from "./DDbXsjIU.js";
1
+ import { t as e } from "./CYHlcwl-.js";
2
+ import "./DUPUOYnA.js";
3
+ import { t } from "./BxiF35JO.js";
4
4
  export { t as registerComponents, e as registerDebugComponents };
package/react.d.ts CHANGED
@@ -693,6 +693,7 @@ declare class ApiClient {
693
693
  private toChannels;
694
694
  private toChannel;
695
695
  }
696
+ type TransportSelectionReason = "unsupported" | "disabled" | "unavailable" | "fallback";
696
697
  interface AdaptivityStatistics {
697
698
  /**
698
699
  * True if adaptive bitrate (ABR) is enabled.
@@ -1467,6 +1468,14 @@ interface ConnectionStatistics {
1467
1468
  */
1468
1469
  connectionSuccessRatio: number;
1469
1470
  connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
1471
+ /**
1472
+ * When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
1473
+ * - "unsupported": browser doesn't support WebTransport
1474
+ * - "disabled": webtransportEnabled option is false
1475
+ * - "unavailable": edge did not offer a WebTransport endpoint
1476
+ * - "fallback": WebTransport was attempted but failed or timed out
1477
+ */
1478
+ transportSelectionReason: TransportSelectionReason | undefined;
1470
1479
  }
1471
1480
  interface LanguageSwitchContext {
1472
1481
  /**
@@ -1,5 +1,5 @@
1
- import "./CYgjrKff.js";
2
- import { t as e } from "./DDbXsjIU.js";
1
+ import "./DUPUOYnA.js";
2
+ import { t as e } from "./BxiF35JO.js";
3
3
  //#region src/vindral-player-component.ts
4
4
  e();
5
5
  //#endregion