@stream-io/video-react-sdk 1.19.5 → 1.19.7
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 +17 -0
- package/dist/index.cjs.js +12 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -9
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/src/components/BackgroundFilters/BackgroundFilters.tsx +1 -1
- package/src/hooks/usePersistedDevicePreferences.ts +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.19.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.19.6...@stream-io/video-react-sdk-1.19.7) (2025-08-13)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
- `@stream-io/video-client` updated to version `1.27.4`
|
|
10
|
+
- `@stream-io/video-react-bindings` updated to version `1.7.13`
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- apply the crossorigin attribute before applying src ([#1886](https://github.com/GetStream/stream-video-js/issues/1886)) ([32f82a2](https://github.com/GetStream/stream-video-js/commit/32f82a24cb494e97c1ca2dee1b45a5da80a590d7))
|
|
15
|
+
|
|
16
|
+
## [1.19.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.19.5...@stream-io/video-react-sdk-1.19.6) (2025-08-11)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **uPDP:** respect call type camera configuration ([#1883](https://github.com/GetStream/stream-video-js/issues/1883)) ([435a32e](https://github.com/GetStream/stream-video-js/commit/435a32eccae911708e333d55e8dd32a9e4444a69))
|
|
21
|
+
|
|
5
22
|
## [1.19.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.19.4...@stream-io/video-react-sdk-1.19.5) (2025-08-07)
|
|
6
23
|
|
|
7
24
|
### Dependency Updates
|
package/dist/index.cjs.js
CHANGED
|
@@ -87,11 +87,14 @@ const usePersistedDevicePreferences = (key = '@stream-io/device-preferences') =>
|
|
|
87
87
|
const cameraState = useCameraState();
|
|
88
88
|
const speakerState = useSpeakerState();
|
|
89
89
|
const [applyingState, setApplyingState] = react.useState('idle');
|
|
90
|
+
// when the camera is disabled on call type level, we should discard
|
|
91
|
+
// any stored camera preferences.
|
|
92
|
+
const cameraDevices = settings?.video?.enabled ? cameraState.devices : false;
|
|
90
93
|
react.useEffect(function apply() {
|
|
91
94
|
if (callingState === videoClient.CallingState.LEFT ||
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
microphoneState.devices.length === 0 ||
|
|
96
|
+
(Array.isArray(cameraDevices) && cameraDevices.length === 0) ||
|
|
97
|
+
speakerState.devices.length === 0 ||
|
|
95
98
|
!settings ||
|
|
96
99
|
applyingState !== 'idle') {
|
|
97
100
|
return;
|
|
@@ -108,7 +111,7 @@ const usePersistedDevicePreferences = (key = '@stream-io/device-preferences') =>
|
|
|
108
111
|
const preference = preferences[deviceKey];
|
|
109
112
|
const manager = state[deviceKey];
|
|
110
113
|
const applyPromise = preference
|
|
111
|
-
? applyLocalDevicePreference(manager, [preference].flat(), state.devices, enabledInCallType)
|
|
114
|
+
? applyLocalDevicePreference(manager, [preference].flat(), deviceKey === 'camera' ? cameraDevices || [] : state.devices, enabledInCallType)
|
|
112
115
|
: applyMutedState(manager, defaultMuted, enabledInCallType);
|
|
113
116
|
await applyPromise.catch((err) => {
|
|
114
117
|
console.warn(`Failed to apply ${deviceKey} device preferences`, err);
|
|
@@ -119,7 +122,7 @@ const usePersistedDevicePreferences = (key = '@stream-io/device-preferences') =>
|
|
|
119
122
|
applyingState,
|
|
120
123
|
callingState,
|
|
121
124
|
cameraState,
|
|
122
|
-
|
|
125
|
+
cameraDevices,
|
|
123
126
|
key,
|
|
124
127
|
microphoneState,
|
|
125
128
|
microphoneState.devices,
|
|
@@ -134,7 +137,7 @@ const usePersistedDevicePreferences = (key = '@stream-io/device-preferences') =>
|
|
|
134
137
|
for (const [deviceKey, devices, selectedDevice, isMute] of [
|
|
135
138
|
[
|
|
136
139
|
'camera',
|
|
137
|
-
|
|
140
|
+
cameraDevices || [],
|
|
138
141
|
cameraState.selectedDevice,
|
|
139
142
|
cameraState.isMute,
|
|
140
143
|
],
|
|
@@ -165,7 +168,7 @@ const usePersistedDevicePreferences = (key = '@stream-io/device-preferences') =>
|
|
|
165
168
|
}, [
|
|
166
169
|
applyingState,
|
|
167
170
|
callingState,
|
|
168
|
-
|
|
171
|
+
cameraDevices,
|
|
169
172
|
cameraState.isMute,
|
|
170
173
|
cameraState.selectedDevice,
|
|
171
174
|
key,
|
|
@@ -989,7 +992,7 @@ const useRenderer = (tfLite, call) => {
|
|
|
989
992
|
tfLite,
|
|
990
993
|
]);
|
|
991
994
|
const children = (jsxRuntime.jsxs("div", { className: "str-video__background-filters", children: [jsxRuntime.jsx("video", { className: clsx('str-video__background-filters__video', videoSize.height > videoSize.width &&
|
|
992
|
-
'str-video__background-filters__video--tall'), ref: videoRef, playsInline: true, muted: true, controls: false, ...videoSize }), backgroundImage && (jsxRuntime.jsx("img", { className: "str-video__background-filters__background-image", alt: "Background", ref: bgImageRef,
|
|
995
|
+
'str-video__background-filters__video--tall'), ref: videoRef, playsInline: true, muted: true, controls: false, ...videoSize }), backgroundImage && (jsxRuntime.jsx("img", { className: "str-video__background-filters__background-image", alt: "Background", ref: bgImageRef, crossOrigin: "anonymous", src: backgroundImage, ...videoSize })), jsxRuntime.jsx("canvas", { className: "str-video__background-filters__target-canvas", ...videoSize, ref: canvasRef })] }));
|
|
993
996
|
return {
|
|
994
997
|
start,
|
|
995
998
|
children,
|
|
@@ -2957,7 +2960,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
|
|
|
2957
2960
|
return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
|
|
2958
2961
|
};
|
|
2959
2962
|
|
|
2960
|
-
const [major, minor, patch] = ("1.19.
|
|
2963
|
+
const [major, minor, patch] = ("1.19.7").split('.');
|
|
2961
2964
|
videoClient.setSdkInfo({
|
|
2962
2965
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2963
2966
|
major,
|