@stream-io/video-react-sdk 1.13.1 → 1.14.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 +22 -0
- package/README.md +2 -1
- package/dist/index.cjs.js +12 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/src/hooks/usePersistedDevicePreferences.ts +17 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.14.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.13.2...@stream-io/video-react-sdk-1.14.0) (2025-04-04)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `1.19.0`
|
|
10
|
+
* `@stream-io/video-react-bindings` updated to version `1.5.12`
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* collect more granular RTC stats and RPC tracing ([#1735](https://github.com/GetStream/stream-video-js/issues/1735)) ([e356d6b](https://github.com/GetStream/stream-video-js/commit/e356d6b9fe361c186a5b92de55fabf0598ea4885))
|
|
15
|
+
|
|
16
|
+
## [1.13.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.13.1...@stream-io/video-react-sdk-1.13.2) (2025-04-02)
|
|
17
|
+
|
|
18
|
+
### Dependency Updates
|
|
19
|
+
|
|
20
|
+
* `@stream-io/video-client` updated to version `1.18.9`
|
|
21
|
+
* `@stream-io/video-react-bindings` updated to version `1.5.11`
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* correctly apply muted state from persisted settings ([#1745](https://github.com/GetStream/stream-video-js/issues/1745)) ([a718de6](https://github.com/GetStream/stream-video-js/commit/a718de618acbc505c975da9c8d4ecaac722245af)), closes [#1736](https://github.com/GetStream/stream-video-js/issues/1736) [#1741](https://github.com/GetStream/stream-video-js/issues/1741)
|
|
26
|
+
|
|
5
27
|
## [1.13.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.13.0...@stream-io/video-react-sdk-1.13.1) (2025-04-01)
|
|
6
28
|
|
|
7
29
|
|
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ Here are some of the features we support:
|
|
|
82
82
|
- [x] Audio filters
|
|
83
83
|
- [x] Noise Cancellation
|
|
84
84
|
|
|
85
|
-
###
|
|
85
|
+
### Milestones
|
|
86
86
|
|
|
87
87
|
- [ ] Break-out rooms
|
|
88
88
|
- [ ] Waiting rooms
|
|
@@ -91,6 +91,7 @@ Here are some of the features we support:
|
|
|
91
91
|
- [ ] Logging 2.0
|
|
92
92
|
- [x] Hardware-accelerated video encoding on supported platforms
|
|
93
93
|
- [x] Dynascale 2.0 (codec switching)
|
|
94
|
+
- [x] Improved stat collection
|
|
94
95
|
- [ ] E2E testing platform
|
|
95
96
|
- [ ] Dynascale: turn off incoming video when the browser is in the background
|
|
96
97
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -100,9 +100,9 @@ const usePersistedDevicePreference = (key, deviceKey, state) => {
|
|
|
100
100
|
const preference = preferences[deviceKey];
|
|
101
101
|
setApplyingState('applying');
|
|
102
102
|
if (preference && !manager.state.selectedDevice) {
|
|
103
|
-
|
|
103
|
+
applyLocalDevicePreference(manager, [preference].flat(), state.devices)
|
|
104
104
|
.catch((err) => {
|
|
105
|
-
console.warn(`Failed to
|
|
105
|
+
console.warn(`Failed to apply ${deviceKey} device preferences`, err);
|
|
106
106
|
})
|
|
107
107
|
.finally(() => setApplyingState('applied'));
|
|
108
108
|
}
|
|
@@ -173,19 +173,24 @@ const patchLocalDevicePreference = (key, deviceKey, state) => {
|
|
|
173
173
|
].slice(0, 3),
|
|
174
174
|
}));
|
|
175
175
|
};
|
|
176
|
-
const
|
|
176
|
+
const applyLocalDevicePreference = async (manager, preference, devices) => {
|
|
177
|
+
let muted;
|
|
177
178
|
for (const p of preference) {
|
|
179
|
+
muted ?? (muted = p.muted);
|
|
178
180
|
if (p.selectedDeviceId === defaultDevice) {
|
|
179
|
-
|
|
181
|
+
break;
|
|
180
182
|
}
|
|
181
183
|
const device = devices.find((d) => d.deviceId === p.selectedDeviceId) ??
|
|
182
184
|
devices.find((d) => d.label === p.selectedDeviceLabel);
|
|
183
185
|
if (device) {
|
|
184
186
|
await manager.select(device.deviceId);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
muted = p.muted;
|
|
188
|
+
break;
|
|
187
189
|
}
|
|
188
190
|
}
|
|
191
|
+
if (typeof muted === 'boolean') {
|
|
192
|
+
await manager[muted ? 'disable' : 'enable']?.();
|
|
193
|
+
}
|
|
189
194
|
};
|
|
190
195
|
const getSelectedDevicePreference = (devices, selectedDevice) => ({
|
|
191
196
|
selectedDeviceId: selectedDevice || defaultDevice,
|
|
@@ -2669,7 +2674,7 @@ const LivestreamPlayer = (props) => {
|
|
|
2669
2674
|
return (jsxRuntime.jsx(StreamCall, { call: call, children: jsxRuntime.jsx(LivestreamLayout, { ...layoutProps }) }));
|
|
2670
2675
|
};
|
|
2671
2676
|
|
|
2672
|
-
const [major, minor, patch] = ("1.
|
|
2677
|
+
const [major, minor, patch] = ("1.14.0").split('.');
|
|
2673
2678
|
videoClient.setSdkInfo({
|
|
2674
2679
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2675
2680
|
major,
|