@stream-io/video-client 1.16.5 → 1.16.6

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.16.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.16.5...@stream-io/video-client-1.16.6) (2025-02-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * prefer the async apply constraints for flip ([#1679](https://github.com/GetStream/stream-video-js/issues/1679)) ([8c246cc](https://github.com/GetStream/stream-video-js/commit/8c246cc4e9f1ac766366cf24b82dd99aa868017d))
11
+
5
12
  ## [1.16.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.16.4...@stream-io/video-client-1.16.5) (2025-02-10)
6
13
 
7
14
 
@@ -7464,7 +7464,7 @@ const aggregate = (stats) => {
7464
7464
  return report;
7465
7465
  };
7466
7466
 
7467
- const version = "1.16.5";
7467
+ const version = "1.16.6";
7468
7468
  const [major, minor, patch] = version.split('.');
7469
7469
  let sdkInfo = {
7470
7470
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -9323,19 +9323,14 @@ class CameraManager extends InputMediaDeviceManager {
9323
9323
  if (this.isDirectionSupportedByDevice()) {
9324
9324
  if (isReactNative()) {
9325
9325
  const videoTrack = this.getTracks()[0];
9326
- if (!videoTrack)
9326
+ if (!videoTrack) {
9327
+ this.logger('warn', 'No video track found to do direction selection');
9327
9328
  return;
9328
- // @ts-expect-error _switchCamera() is only present in react-native-webrtc 124 and below
9329
- if (typeof videoTrack._switchCamera === 'function') {
9330
- // @ts-expect-error for older versions of react-native-webrtc support
9331
- videoTrack._switchCamera();
9332
- }
9333
- else {
9334
- const constraints = {
9335
- facingMode: direction === 'front' ? 'user' : 'environment',
9336
- };
9337
- await videoTrack.applyConstraints(constraints);
9338
9329
  }
9330
+ const constraints = {
9331
+ facingMode: direction === 'front' ? 'user' : 'environment',
9332
+ };
9333
+ await videoTrack.applyConstraints(constraints);
9339
9334
  this.state.setDirection(direction);
9340
9335
  this.state.setDevice(undefined);
9341
9336
  }
@@ -13072,7 +13067,7 @@ class StreamClient {
13072
13067
  return await this.wsConnection.connect(this.defaultWSTimeout);
13073
13068
  };
13074
13069
  this.getUserAgent = () => {
13075
- const version = "1.16.5";
13070
+ const version = "1.16.6";
13076
13071
  return (this.userAgent ||
13077
13072
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
13078
13073
  };