@stream-io/video-client 0.5.5 → 0.5.7

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
+ ### [0.5.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.6...@stream-io/video-client-0.5.7) (2024-01-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **react-native:** no video stream from ipad ([#1253](https://github.com/GetStream/stream-video-js/issues/1253)) ([3e325ba](https://github.com/GetStream/stream-video-js/commit/3e325ba6063d7452b25bbf88829e2d8155979e6f))
11
+
12
+ ### [0.5.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.5...@stream-io/video-client-0.5.6) (2024-01-19)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **client:** automatic call join for other participants when someone accepts ([#1247](https://github.com/GetStream/stream-video-js/issues/1247)) ([3559ff2](https://github.com/GetStream/stream-video-js/commit/3559ff209616ccfc4664b24e6a4f35c153be2090)), closes [#1245](https://github.com/GetStream/stream-video-js/issues/1245)
18
+
5
19
  ### [0.5.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.4...@stream-io/video-client-0.5.5) (2024-01-16)
6
20
 
7
21
 
@@ -7660,9 +7660,17 @@ class Publisher {
7660
7660
  : undefined;
7661
7661
  let preferredCodec = opts.preferredCodec;
7662
7662
  if (!preferredCodec && trackType === TrackType.VIDEO) {
7663
- const isRNAndroid = isReactNative() && getOSInfo()?.name.toLowerCase() === 'android';
7664
- if (isRNAndroid) {
7665
- preferredCodec = 'VP8';
7663
+ if (isReactNative()) {
7664
+ const osName = getOSInfo()?.name.toLowerCase();
7665
+ if (osName === 'ios' || osName === 'ipados') {
7666
+ // in ipads it was noticed that if vp8 codec is used
7667
+ // then the bytes sent is 0 in the outbound-rtp
7668
+ // so we are forcing h264 codec for ipads and also in ios devices
7669
+ preferredCodec = 'H264';
7670
+ }
7671
+ else if (osName === 'android') {
7672
+ preferredCodec = 'VP8';
7673
+ }
7666
7674
  }
7667
7675
  }
7668
7676
  const codecPreferences = this.getCodecPreferences(trackType, preferredCodec);
@@ -8795,7 +8803,8 @@ const watchCallAccepted = (call) => {
8795
8803
  return;
8796
8804
  }
8797
8805
  const { state } = call;
8798
- if (state.callingState === CallingState.RINGING) {
8806
+ if (event.call.created_by.id === call.currentUserId &&
8807
+ state.callingState === CallingState.RINGING) {
8799
8808
  await call.join();
8800
8809
  }
8801
8810
  };
@@ -14232,7 +14241,7 @@ class StreamClient {
14232
14241
  });
14233
14242
  };
14234
14243
  this.getUserAgent = () => {
14235
- const version = "0.5.5" ;
14244
+ const version = "0.5.7" ;
14236
14245
  return (this.userAgent ||
14237
14246
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14238
14247
  };