@stream-io/video-client 1.41.1 → 1.41.2
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 +4 -0
- package/dist/index.browser.es.js +10 -11
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +10 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -11
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/devices/SpeakerManager.ts +11 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.41.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.41.1...@stream-io/video-client-1.41.2) (2026-01-28)
|
|
6
|
+
|
|
7
|
+
- deduplicate RN compatibility assertions ([#2101](https://github.com/GetStream/stream-video-js/issues/2101)) ([5b9e6bc](https://github.com/GetStream/stream-video-js/commit/5b9e6bc227c55b067eea6345315bca015c8a7ee4))
|
|
8
|
+
|
|
5
9
|
## [1.41.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.41.0...@stream-io/video-client-1.41.1) (2026-01-26)
|
|
6
10
|
|
|
7
11
|
### Bug Fixes
|
package/dist/index.browser.es.js
CHANGED
|
@@ -6188,7 +6188,7 @@ const getSdkVersion = (sdk) => {
|
|
|
6188
6188
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
6189
6189
|
};
|
|
6190
6190
|
|
|
6191
|
-
const version = "1.41.
|
|
6191
|
+
const version = "1.41.2";
|
|
6192
6192
|
const [major, minor, patch] = version.split('.');
|
|
6193
6193
|
let sdkInfo = {
|
|
6194
6194
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -12092,9 +12092,7 @@ class SpeakerManager {
|
|
|
12092
12092
|
* @returns an Observable that will be updated if a device is connected or disconnected
|
|
12093
12093
|
*/
|
|
12094
12094
|
listDevices() {
|
|
12095
|
-
|
|
12096
|
-
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
12097
|
-
}
|
|
12095
|
+
assertUnsupportedInReactNative();
|
|
12098
12096
|
return getAudioOutputDevices(this.call.tracer);
|
|
12099
12097
|
}
|
|
12100
12098
|
/**
|
|
@@ -12105,9 +12103,7 @@ class SpeakerManager {
|
|
|
12105
12103
|
* @param deviceId empty string means the system default
|
|
12106
12104
|
*/
|
|
12107
12105
|
select(deviceId) {
|
|
12108
|
-
|
|
12109
|
-
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
12110
|
-
}
|
|
12106
|
+
assertUnsupportedInReactNative();
|
|
12111
12107
|
this.state.setDevice(deviceId);
|
|
12112
12108
|
}
|
|
12113
12109
|
/**
|
|
@@ -12117,9 +12113,7 @@ class SpeakerManager {
|
|
|
12117
12113
|
* Note: This method is not supported in React Native
|
|
12118
12114
|
*/
|
|
12119
12115
|
setVolume(volume) {
|
|
12120
|
-
|
|
12121
|
-
throw new Error('This feature is not supported in React Native. Please visit https://getstream.io/video/docs/reactnative/core/camera-and-microphone/#speaker-management for more details');
|
|
12122
|
-
}
|
|
12116
|
+
assertUnsupportedInReactNative();
|
|
12123
12117
|
if (volume && (volume < 0 || volume > 1)) {
|
|
12124
12118
|
throw new Error('Volume must be between 0 and 1');
|
|
12125
12119
|
}
|
|
@@ -12146,6 +12140,11 @@ class SpeakerManager {
|
|
|
12146
12140
|
});
|
|
12147
12141
|
}
|
|
12148
12142
|
}
|
|
12143
|
+
const assertUnsupportedInReactNative = () => {
|
|
12144
|
+
if (isReactNative()) {
|
|
12145
|
+
throw new Error('Unsupported in React Native. See: https://getstream.io/video/docs/react-native/guides/camera-and-microphone/#speaker-management');
|
|
12146
|
+
}
|
|
12147
|
+
};
|
|
12149
12148
|
|
|
12150
12149
|
/**
|
|
12151
12150
|
* An object representation of a `Call`.
|
|
@@ -15321,7 +15320,7 @@ class StreamClient {
|
|
|
15321
15320
|
this.getUserAgent = () => {
|
|
15322
15321
|
if (!this.cachedUserAgent) {
|
|
15323
15322
|
const { clientAppIdentifier = {} } = this.options;
|
|
15324
|
-
const { sdkName = 'js', sdkVersion = "1.41.
|
|
15323
|
+
const { sdkName = 'js', sdkVersion = "1.41.2", ...extras } = clientAppIdentifier;
|
|
15325
15324
|
this.cachedUserAgent = [
|
|
15326
15325
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
15327
15326
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|