@vindral/web-sdk 4.3.0 → 4.3.1-10-gc37d39c0

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.3.0",
2
+ "version": "4.3.1-10-gc37d39c0",
3
3
  "name": "@vindral/web-sdk",
4
4
  "main": "./legacy.umd.js",
5
5
  "module": "./legacy.es.js",
package/player.d.ts CHANGED
@@ -430,7 +430,6 @@ interface ClientOverrides {
430
430
  maxBufferTime?: number;
431
431
  burstEnabled?: boolean;
432
432
  sizeBasedResolutionCapEnabled?: boolean;
433
- separateVideoSocketEnabled?: boolean;
434
433
  webcodecsHardwareAcceleration?: WebCodecsHardwareAccelerationPreference;
435
434
  offscreenCanvasEnabled?: boolean;
436
435
  videoCodecs?: string[];
@@ -959,10 +958,18 @@ type Statistics = ModuleStatistics & ReturnType<UserAgentInformation["getUserAge
959
958
  */
960
959
  channelGroupId?: string;
961
960
  /**
962
- * Time in milliseconds from instantiation to playback of video and audio being started.
961
+ * Time in milliseconds from the first `connect()` call to playback of video and audio being started.
963
962
  * Note that an actual frame render often happens much quicker, but that is not counted as TTFF.
963
+ * `timeToConnected` shares the same anchor, so `timeToFirstFrame - timeToConnected` is the
964
+ * post-transport portion (player bootstrap, media flow, decode, buffer fill, render).
964
965
  */
965
966
  timeToFirstFrame?: number;
967
+ /**
968
+ * Time in milliseconds from the first `connect()` call to the first successful transport/session connection.
969
+ * Includes failed connection attempts and edge failover before the connection is established.
970
+ * Does not wait for player bootstrap or media to start.
971
+ */
972
+ timeToConnected?: number;
966
973
  streamToMediaElementEnabled?: boolean;
967
974
  /** @deprecated */
968
975
  iosMediaElementEnabled?: boolean;
@@ -1465,6 +1472,12 @@ interface ConnectionStatistics {
1465
1472
  * A value of 1.0 means every connection attempt succeeded.
1466
1473
  */
1467
1474
  connectionSuccessRatio: number;
1475
+ /**
1476
+ * Time in milliseconds from the first connect() call to the first successful transport/session connection.
1477
+ * Includes failed attempts and edge failover before the connection is established.
1478
+ * Does not wait for player bootstrap or media to start.
1479
+ */
1480
+ timeToConnected?: number;
1468
1481
  connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
1469
1482
  /**
1470
1483
  * When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
@@ -2064,7 +2077,6 @@ declare class VindralMessage extends HTMLElement {
2064
2077
  static observedAttributes: string[];
2065
2078
  constructor();
2066
2079
  connectedCallback(): void;
2067
- disconnectedCallback(): void;
2068
2080
  attributeChangedCallback(name: string, old: string, value: string): void;
2069
2081
  }
2070
2082
  declare class VindralPlayOverlay extends HTMLElement {
package/player.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as e } from "./BFPgdE3l.js";
2
- import "./BzLobjSs.js";
3
- import { t } from "./DXt_qL9M.js";
2
+ import "./B9ii5m9N.js";
3
+ import { t } from "./DK2TEagw.js";
4
4
  export { t as registerComponents, e as registerDebugComponents };
package/react.d.ts CHANGED
@@ -432,7 +432,6 @@ interface ClientOverrides {
432
432
  maxBufferTime?: number;
433
433
  burstEnabled?: boolean;
434
434
  sizeBasedResolutionCapEnabled?: boolean;
435
- separateVideoSocketEnabled?: boolean;
436
435
  webcodecsHardwareAcceleration?: WebCodecsHardwareAccelerationPreference;
437
436
  offscreenCanvasEnabled?: boolean;
438
437
  videoCodecs?: string[];
@@ -961,10 +960,18 @@ type Statistics = ModuleStatistics & ReturnType<UserAgentInformation["getUserAge
961
960
  */
962
961
  channelGroupId?: string;
963
962
  /**
964
- * Time in milliseconds from instantiation to playback of video and audio being started.
963
+ * Time in milliseconds from the first `connect()` call to playback of video and audio being started.
965
964
  * Note that an actual frame render often happens much quicker, but that is not counted as TTFF.
965
+ * `timeToConnected` shares the same anchor, so `timeToFirstFrame - timeToConnected` is the
966
+ * post-transport portion (player bootstrap, media flow, decode, buffer fill, render).
966
967
  */
967
968
  timeToFirstFrame?: number;
969
+ /**
970
+ * Time in milliseconds from the first `connect()` call to the first successful transport/session connection.
971
+ * Includes failed connection attempts and edge failover before the connection is established.
972
+ * Does not wait for player bootstrap or media to start.
973
+ */
974
+ timeToConnected?: number;
968
975
  streamToMediaElementEnabled?: boolean;
969
976
  /** @deprecated */
970
977
  iosMediaElementEnabled?: boolean;
@@ -1467,6 +1474,12 @@ interface ConnectionStatistics {
1467
1474
  * A value of 1.0 means every connection attempt succeeded.
1468
1475
  */
1469
1476
  connectionSuccessRatio: number;
1477
+ /**
1478
+ * Time in milliseconds from the first connect() call to the first successful transport/session connection.
1479
+ * Includes failed attempts and edge failover before the connection is established.
1480
+ * Does not wait for player bootstrap or media to start.
1481
+ */
1482
+ timeToConnected?: number;
1470
1483
  connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
1471
1484
  /**
1472
1485
  * When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
@@ -2081,7 +2094,6 @@ declare class VindralMessage extends HTMLElement {
2081
2094
  static observedAttributes: string[];
2082
2095
  constructor();
2083
2096
  connectedCallback(): void;
2084
- disconnectedCallback(): void;
2085
2097
  attributeChangedCallback(name: string, old: string, value: string): void;
2086
2098
  }
2087
2099
  type PlayOverlayAttributes = (typeof VindralPlayOverlay.observedAttributes)[number];
@@ -1,5 +1,5 @@
1
- import "./BzLobjSs.js";
2
- import { t as e } from "./DXt_qL9M.js";
1
+ import "./B9ii5m9N.js";
2
+ import { t as e } from "./DK2TEagw.js";
3
3
  //#region src/vindral-player-component.ts
4
4
  e();
5
5
  //#endregion