@stream-io/video-client 0.5.6 → 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,13 @@
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
+
5
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)
6
13
 
7
14
 
@@ -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);
@@ -14233,7 +14241,7 @@ class StreamClient {
14233
14241
  });
14234
14242
  };
14235
14243
  this.getUserAgent = () => {
14236
- const version = "0.5.6" ;
14244
+ const version = "0.5.7" ;
14237
14245
  return (this.userAgent ||
14238
14246
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14239
14247
  };