@stream-io/video-client 1.10.2 → 1.10.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.10.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.10.2...@stream-io/video-client-1.10.3) (2024-11-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * camera flip did not work in react-native ([#1554](https://github.com/GetStream/stream-video-js/issues/1554)) ([423890c](https://github.com/GetStream/stream-video-js/commit/423890cb2d1925366d8a63c29f93c4c92c8104ad)), closes [#1521](https://github.com/GetStream/stream-video-js/issues/1521)
11
+
5
12
  ## [1.10.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.10.1...@stream-io/video-client-1.10.2) (2024-11-01)
6
13
 
7
14
 
@@ -3108,7 +3108,7 @@ const retryable = async (rpc, signal) => {
3108
3108
  return result;
3109
3109
  };
3110
3110
 
3111
- const version = "1.10.2";
3111
+ const version = "1.10.3";
3112
3112
  const [major, minor, patch] = version.split('.');
3113
3113
  let sdkInfo = {
3114
3114
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -8775,13 +8775,16 @@ class CameraManager extends InputMediaDeviceManager {
8775
8775
  height: 720,
8776
8776
  };
8777
8777
  }
8778
+ isDirectionSupportedByDevice() {
8779
+ return isReactNative() || isMobile();
8780
+ }
8778
8781
  /**
8779
8782
  * Select the camera direction.
8780
8783
  *
8781
8784
  * @param direction the direction of the camera to select.
8782
8785
  */
8783
8786
  async selectDirection(direction) {
8784
- if (isMobile()) {
8787
+ if (this.isDirectionSupportedByDevice()) {
8785
8788
  this.state.setDirection(direction);
8786
8789
  // Providing both device id and direction doesn't work, so we deselect the device
8787
8790
  this.state.setDevice(undefined);
@@ -8846,7 +8849,9 @@ class CameraManager extends InputMediaDeviceManager {
8846
8849
  constraints.height = this.targetResolution.height;
8847
8850
  // We can't set both device id and facing mode
8848
8851
  // Device id has higher priority
8849
- if (!constraints.deviceId && this.state.direction && isMobile()) {
8852
+ if (!constraints.deviceId &&
8853
+ this.state.direction &&
8854
+ this.isDirectionSupportedByDevice()) {
8850
8855
  constraints.facingMode =
8851
8856
  this.state.direction === 'front' ? 'user' : 'environment';
8852
8857
  }
@@ -12696,7 +12701,7 @@ class StreamClient {
12696
12701
  });
12697
12702
  };
12698
12703
  this.getUserAgent = () => {
12699
- const version = "1.10.2";
12704
+ const version = "1.10.3";
12700
12705
  return (this.userAgent ||
12701
12706
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12702
12707
  };