@vindral/web-sdk 4.7.1 → 4.7.2-1-g49d73f7f

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/cast-sender.d.ts CHANGED
@@ -317,6 +317,17 @@ interface Options {
317
317
  logShippingEnabled?: boolean;
318
318
  statsShippingEnabled?: boolean;
319
319
  webtransportEnabled?: boolean;
320
+ /**
321
+ * Use WebTransport for MoQ on browsers where it is unstable. When false, these connect MoQ over
322
+ * WebSocket directly. Unstable browsers:
323
+ * - Safari and every iOS/iPadOS browser (all WebKit): far more buffering than over WebSocket.
324
+ * - Samsung Internet on Tizen Smart TVs: WebTransport connects fail and fall back to WebSocket.
325
+ *
326
+ * Has no effect when webtransportEnabled is false.
327
+ *
328
+ * Default is false.
329
+ */
330
+ unstableWebtransportEnabled?: boolean;
320
331
  /**
321
332
  * Enable wake lock for iOS devices.
322
333
  * The wake lock requires that the audio has been activated at least once for the instance, othwerwise it will not work.
package/core.d.ts CHANGED
@@ -422,6 +422,17 @@ export interface Options {
422
422
  logShippingEnabled?: boolean;
423
423
  statsShippingEnabled?: boolean;
424
424
  webtransportEnabled?: boolean;
425
+ /**
426
+ * Use WebTransport for MoQ on browsers where it is unstable. When false, these connect MoQ over
427
+ * WebSocket directly. Unstable browsers:
428
+ * - Safari and every iOS/iPadOS browser (all WebKit): far more buffering than over WebSocket.
429
+ * - Samsung Internet on Tizen Smart TVs: WebTransport connects fail and fall back to WebSocket.
430
+ *
431
+ * Has no effect when webtransportEnabled is false.
432
+ *
433
+ * Default is false.
434
+ */
435
+ unstableWebtransportEnabled?: boolean;
425
436
  /**
426
437
  * Enable wake lock for iOS devices.
427
438
  * The wake lock requires that the audio has been activated at least once for the instance, othwerwise it will not work.
@@ -819,7 +830,7 @@ declare class ApiClient {
819
830
  private toChannels;
820
831
  private toChannel;
821
832
  }
822
- type TransportSelectionReason = "unsupported" | "disabled" | "unavailable" | "fallback";
833
+ type TransportSelectionReason = "unsupported" | "disabled" | "disabled_unstable_browser" | "unavailable" | "fallback";
823
834
  interface AdaptivityStatistics {
824
835
  /**
825
836
  * True if adaptive bitrate (ABR) is enabled.
@@ -1752,6 +1763,7 @@ interface ConnectionStatistics {
1752
1763
  * When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
1753
1764
  * - "unsupported": browser doesn't support WebTransport
1754
1765
  * - "disabled": webtransportEnabled option is false
1766
+ * - "disabled_unstable_browser": browser with unstable WebTransport, and unstableWebtransportEnabled option is false
1755
1767
  * - "unavailable": edge did not offer a WebTransport endpoint
1756
1768
  * - "fallback": WebTransport was attempted but failed or timed out
1757
1769
  * Unset while reconnecting; once disconnected, the last connection's.
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 "./BZbYOX-0.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 "./ksXX-BNs.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 };