@stream-io/video-client 1.33.1 → 1.34.0
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 +13 -0
- package/dist/index.browser.es.js +12 -6
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +12 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -6
- package/dist/index.es.js.map +1 -1
- package/package.json +20 -21
- package/src/Call.ts +1 -0
- package/src/devices/SpeakerManager.ts +9 -6
- package/src/devices/__tests__/SpeakerManager.test.ts +8 -5
- package/src/rtc/__tests__/layers.test.ts +99 -74
- package/src/store/__tests__/CallState.test.ts +7 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.34.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.33.1...@stream-io/video-client-1.34.0) (2025-10-14)
|
|
6
|
+
|
|
7
|
+
- use fromPartial instead of suppressing ts-errors ([#1949](https://github.com/GetStream/stream-video-js/issues/1949)) ([95e5654](https://github.com/GetStream/stream-video-js/commit/95e5654e2bac5dc7c5126079795fca9951652290))
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **deps:** React 19.1, React Native 0.81, NextJS 15.5, Expo 54 ([#1940](https://github.com/GetStream/stream-video-js/issues/1940)) ([30f8ce2](https://github.com/GetStream/stream-video-js/commit/30f8ce2b335189e1f77160236839bc6c6a02f634))
|
|
12
|
+
- move audio route manager inside SDK ([#1840](https://github.com/GetStream/stream-video-js/issues/1840)) ([847dd30](https://github.com/GetStream/stream-video-js/commit/847dd30d6240a0780fe3d58d681554bc392f6f51)), closes [#1829](https://github.com/GetStream/stream-video-js/issues/1829)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- flush rtc stats when reconnecting ([#1946](https://github.com/GetStream/stream-video-js/issues/1946)) ([fb1f6fc](https://github.com/GetStream/stream-video-js/commit/fb1f6fcb2837154a4fe746a6efe4f9a4830bca20))
|
|
17
|
+
|
|
5
18
|
## [1.33.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.33.0...@stream-io/video-client-1.33.1) (2025-10-02)
|
|
6
19
|
|
|
7
20
|
### Bug Fixes
|
package/dist/index.browser.es.js
CHANGED
|
@@ -5853,7 +5853,7 @@ const getSdkVersion = (sdk) => {
|
|
|
5853
5853
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
5854
5854
|
};
|
|
5855
5855
|
|
|
5856
|
-
const version = "1.
|
|
5856
|
+
const version = "1.34.0";
|
|
5857
5857
|
const [major, minor, patch] = version.split('.');
|
|
5858
5858
|
let sdkInfo = {
|
|
5859
5859
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -11643,13 +11643,18 @@ class SpeakerManager {
|
|
|
11643
11643
|
* @param volume a number between 0 and 1. Set it to `undefined` to use the default volume.
|
|
11644
11644
|
*/
|
|
11645
11645
|
setParticipantVolume(sessionId, volume) {
|
|
11646
|
-
if (isReactNative()) {
|
|
11647
|
-
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');
|
|
11648
|
-
}
|
|
11649
11646
|
if (volume && (volume < 0 || volume > 1)) {
|
|
11650
11647
|
throw new Error('Volume must be between 0 and 1, or undefined');
|
|
11651
11648
|
}
|
|
11652
|
-
this.call.state.updateParticipant(sessionId,
|
|
11649
|
+
this.call.state.updateParticipant(sessionId, (p) => {
|
|
11650
|
+
if (isReactNative() && p.audioStream) {
|
|
11651
|
+
for (const track of p.audioStream.getAudioTracks()) {
|
|
11652
|
+
// @ts-expect-error track._setVolume is present in react-native-webrtc
|
|
11653
|
+
track?._setVolume(volume);
|
|
11654
|
+
}
|
|
11655
|
+
}
|
|
11656
|
+
return { audioVolume: volume };
|
|
11657
|
+
});
|
|
11653
11658
|
}
|
|
11654
11659
|
}
|
|
11655
11660
|
|
|
@@ -12463,6 +12468,7 @@ class Call {
|
|
|
12463
12468
|
});
|
|
12464
12469
|
}
|
|
12465
12470
|
this.tracer.setEnabled(enableTracing);
|
|
12471
|
+
this.sfuStatsReporter?.flush();
|
|
12466
12472
|
this.sfuStatsReporter?.stop();
|
|
12467
12473
|
if (statsOptions?.reporting_interval_ms > 0) {
|
|
12468
12474
|
this.sfuStatsReporter = new SfuStatsReporter(sfuClient, {
|
|
@@ -14798,7 +14804,7 @@ class StreamClient {
|
|
|
14798
14804
|
this.getUserAgent = () => {
|
|
14799
14805
|
if (!this.cachedUserAgent) {
|
|
14800
14806
|
const { clientAppIdentifier = {} } = this.options;
|
|
14801
|
-
const { sdkName = 'js', sdkVersion = "1.
|
|
14807
|
+
const { sdkName = 'js', sdkVersion = "1.34.0", ...extras } = clientAppIdentifier;
|
|
14802
14808
|
this.cachedUserAgent = [
|
|
14803
14809
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
14804
14810
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|