@stream-io/video-client 1.30.0 → 1.30.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 +7 -0
- package/dist/index.browser.es.js +10 -7
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +10 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/devices/CameraManager.ts +11 -7
- package/src/devices/__tests__/CameraManager.test.ts +19 -0
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.30.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.30.0...@stream-io/video-client-1.30.1) (2025-09-16)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- don't apply default camera state if video is off ([#1917](https://github.com/GetStream/stream-video-js/issues/1917)) ([9cf1d75](https://github.com/GetStream/stream-video-js/commit/9cf1d752d824a0527fbb187df21d8a020590d4bb))
|
|
10
|
+
- **rn:** set direction state for flip after constraints are applied ([1f03c59](https://github.com/GetStream/stream-video-js/commit/1f03c59b9b3fecc0ff1f7cb6b0eccb083b4a3475))
|
|
11
|
+
|
|
5
12
|
## [1.30.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.29.0...@stream-io/video-client-1.30.0) (2025-09-11)
|
|
6
13
|
|
|
7
14
|
- Skip tests for StreamVideoClient coordinator API ([aabe1d0](https://github.com/GetStream/stream-video-js/commit/aabe1d0ad3e3a95698b422991729e46289ab0277))
|
package/dist/index.browser.es.js
CHANGED
|
@@ -5757,7 +5757,7 @@ const getSdkVersion = (sdk) => {
|
|
|
5757
5757
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
5758
5758
|
};
|
|
5759
5759
|
|
|
5760
|
-
const version = "1.30.
|
|
5760
|
+
const version = "1.30.1";
|
|
5761
5761
|
const [major, minor, patch] = version.split('.');
|
|
5762
5762
|
let sdkInfo = {
|
|
5763
5763
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -10651,16 +10651,17 @@ class CameraManager extends InputMediaDeviceManager {
|
|
|
10651
10651
|
this.logger('warn', 'Setting direction is not supported on this device');
|
|
10652
10652
|
return;
|
|
10653
10653
|
}
|
|
10654
|
-
// providing both device id and direction doesn't work, so we deselect the device
|
|
10655
|
-
this.state.setDirection(direction);
|
|
10656
|
-
this.state.setDevice(undefined);
|
|
10657
10654
|
if (isReactNative()) {
|
|
10658
10655
|
const videoTrack = this.getTracks()[0];
|
|
10659
10656
|
await videoTrack?.applyConstraints({
|
|
10660
10657
|
facingMode: direction === 'front' ? 'user' : 'environment',
|
|
10661
10658
|
});
|
|
10659
|
+
this.state.setDirection(direction);
|
|
10662
10660
|
return;
|
|
10663
10661
|
}
|
|
10662
|
+
// providing both device id and direction doesn't work, so we deselect the device
|
|
10663
|
+
this.state.setDirection(direction);
|
|
10664
|
+
this.state.setDevice(undefined);
|
|
10664
10665
|
this.getTracks().forEach((track) => track.stop());
|
|
10665
10666
|
try {
|
|
10666
10667
|
await this.unmuteStream();
|
|
@@ -10725,7 +10726,7 @@ class CameraManager extends InputMediaDeviceManager {
|
|
|
10725
10726
|
return;
|
|
10726
10727
|
// Wait for any in progress camera operation
|
|
10727
10728
|
await this.statusChangeSettled();
|
|
10728
|
-
const { target_resolution, camera_facing, camera_default_on } = settings;
|
|
10729
|
+
const { target_resolution, camera_facing, camera_default_on, enabled } = settings;
|
|
10729
10730
|
// normalize target resolution to landscape format.
|
|
10730
10731
|
// on mobile devices, the device itself adjusts the resolution to portrait or landscape
|
|
10731
10732
|
// depending on the orientation of the device. using portrait resolution
|
|
@@ -10745,7 +10746,9 @@ class CameraManager extends InputMediaDeviceManager {
|
|
|
10745
10746
|
// The camera is already enabled (e.g. lobby screen). Publish the stream
|
|
10746
10747
|
await this.publishStream(mediaStream);
|
|
10747
10748
|
}
|
|
10748
|
-
else if (this.state.status === undefined &&
|
|
10749
|
+
else if (this.state.status === undefined &&
|
|
10750
|
+
camera_default_on &&
|
|
10751
|
+
enabled) {
|
|
10749
10752
|
// Start camera if backend config specifies, and there is no local setting
|
|
10750
10753
|
await this.enable();
|
|
10751
10754
|
}
|
|
@@ -14661,7 +14664,7 @@ class StreamClient {
|
|
|
14661
14664
|
this.getUserAgent = () => {
|
|
14662
14665
|
if (!this.cachedUserAgent) {
|
|
14663
14666
|
const { clientAppIdentifier = {} } = this.options;
|
|
14664
|
-
const { sdkName = 'js', sdkVersion = "1.30.
|
|
14667
|
+
const { sdkName = 'js', sdkVersion = "1.30.1", ...extras } = clientAppIdentifier;
|
|
14665
14668
|
this.cachedUserAgent = [
|
|
14666
14669
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
14667
14670
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|