@stream-io/video-client 1.1.0 → 1.2.1

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,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [1.2.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.2.0...@stream-io/video-client-1.2.1) (2024-06-04)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * join doesn't work on chrome 86 ([#1386](https://github.com/GetStream/stream-video-js/issues/1386)) ([7b462da](https://github.com/GetStream/stream-video-js/commit/7b462da8131e086f224c0590221d549a38ba419c))
11
+
12
+ ## [1.2.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.1.0...@stream-io/video-client-1.2.0) (2024-06-03)
13
+
14
+
15
+ ### Features
16
+
17
+ * **client:** support reject reason ([#1369](https://github.com/GetStream/stream-video-js/issues/1369)) ([decfc10](https://github.com/GetStream/stream-video-js/commit/decfc105c68867977c8a9a6484475b805583b446))
18
+
5
19
  ## [1.1.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.10...@stream-io/video-client-1.1.0) (2024-06-03)
6
20
 
7
21
 
@@ -6411,7 +6411,7 @@ const getGenericSdp = async (direction) => {
6411
6411
  const offer = await tempPc.createOffer();
6412
6412
  let sdp = offer.sdp ?? '';
6413
6413
  tempPc.getTransceivers().forEach((t) => {
6414
- t.stop();
6414
+ t.stop?.();
6415
6415
  });
6416
6416
  tempPc.close();
6417
6417
  return sdp;
@@ -12447,9 +12447,11 @@ class Call {
12447
12447
  * This method should be used only for "ringing" call flows.
12448
12448
  * {@link Call.leave} invokes this method automatically for you when you leave or reject this call.
12449
12449
  * Unless you are implementing a custom "ringing" flow, you should not use this method.
12450
+ *
12451
+ * @param reason the reason for rejecting the call.
12450
12452
  */
12451
- this.reject = async () => {
12452
- return this.streamClient.post(`${this.streamClientBasePath}/reject`);
12453
+ this.reject = async (reason) => {
12454
+ return this.streamClient.post(`${this.streamClientBasePath}/reject`, { reason: reason });
12453
12455
  };
12454
12456
  /**
12455
12457
  * Will start to watch for call related WebSocket events and initiate a call session with the server.
@@ -15287,7 +15289,7 @@ class StreamClient {
15287
15289
  });
15288
15290
  };
15289
15291
  this.getUserAgent = () => {
15290
- const version = "1.1.0" ;
15292
+ const version = "1.2.1" ;
15291
15293
  return (this.userAgent ||
15292
15294
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
15293
15295
  };