@stream-io/video-client 1.15.2 → 1.15.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.15.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.15.2...@stream-io/video-client-1.15.3) (2025-01-21)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * restore calling state if SFU connection fails during join ([#1652](https://github.com/GetStream/stream-video-js/issues/1652)) ([ff7f221](https://github.com/GetStream/stream-video-js/commit/ff7f221ad285ca1994fc3a780aa8183df2de3e99))
11
+
5
12
  ## [1.15.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.15.1...@stream-io/video-client-1.15.2) (2025-01-20)
6
13
 
7
14
 
@@ -7353,7 +7353,7 @@ const aggregate = (stats) => {
7353
7353
  return report;
7354
7354
  };
7355
7355
 
7356
- const version = "1.15.2";
7356
+ const version = "1.15.3";
7357
7357
  const [major, minor, patch] = version.split('.');
7358
7358
  let sdkInfo = {
7359
7359
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -10454,19 +10454,26 @@ class Call {
10454
10454
  const preferredSubscribeOptions = !isReconnecting
10455
10455
  ? this.getPreferredSubscribeOptions()
10456
10456
  : [];
10457
- const { callState, fastReconnectDeadlineSeconds, publishOptions } = await sfuClient.join({
10458
- subscriberSdp,
10459
- publisherSdp,
10460
- clientDetails,
10461
- fastReconnect: performingFastReconnect,
10462
- reconnectDetails,
10463
- preferredPublishOptions,
10464
- preferredSubscribeOptions,
10465
- });
10466
- this.currentPublishOptions = publishOptions;
10467
- this.fastReconnectDeadlineSeconds = fastReconnectDeadlineSeconds;
10468
- if (callState) {
10469
- this.state.updateFromSfuCallState(callState, sfuClient.sessionId, reconnectDetails);
10457
+ try {
10458
+ const { callState, fastReconnectDeadlineSeconds, publishOptions } = await sfuClient.join({
10459
+ subscriberSdp,
10460
+ publisherSdp,
10461
+ clientDetails,
10462
+ fastReconnect: performingFastReconnect,
10463
+ reconnectDetails,
10464
+ preferredPublishOptions,
10465
+ preferredSubscribeOptions,
10466
+ });
10467
+ this.currentPublishOptions = publishOptions;
10468
+ this.fastReconnectDeadlineSeconds = fastReconnectDeadlineSeconds;
10469
+ if (callState) {
10470
+ this.state.updateFromSfuCallState(callState, sfuClient.sessionId, reconnectDetails);
10471
+ }
10472
+ }
10473
+ catch (error) {
10474
+ // restore the previous call state if the join-flow fails
10475
+ this.state.setCallingState(callingState);
10476
+ throw error;
10470
10477
  }
10471
10478
  }
10472
10479
  if (!performingMigration) {
@@ -12845,7 +12852,7 @@ class StreamClient {
12845
12852
  return await this.wsConnection.connect(this.defaultWSTimeout);
12846
12853
  };
12847
12854
  this.getUserAgent = () => {
12848
- const version = "1.15.2";
12855
+ const version = "1.15.3";
12849
12856
  return (this.userAgent ||
12850
12857
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12851
12858
  };