@stream-io/video-react-sdk 1.39.2 → 1.39.3
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 +15 -0
- package/dist/embedded.cjs.js +2 -25
- package/dist/embedded.cjs.js.map +1 -1
- package/dist/embedded.es.js +3 -26
- package/dist/embedded.es.js.map +1 -1
- package/dist/index.cjs.js +3 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -27
- package/dist/index.es.js.map +1 -1
- package/dist/src/core/components/CallLayout/hooks.d.ts +0 -1
- package/package.json +5 -5
- package/src/core/components/CallLayout/SpeakerLayout.tsx +5 -2
- package/src/core/components/CallLayout/hooks.ts +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.39.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.39.2...@stream-io/video-react-sdk-1.39.3) (2026-07-17)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
- `@stream-io/audio-filters-web` updated to version `0.10.1`
|
|
10
|
+
- `@stream-io/typescript-config` updated to version `0.1.0`
|
|
11
|
+
- `@stream-io/video-client` updated to version `1.55.2`
|
|
12
|
+
- `@stream-io/video-filters-web` updated to version `0.8.3`
|
|
13
|
+
- **video-filters-web:** export BaseVideoProcessor ([#2337](https://github.com/GetStream/stream-video-js/issues/2337)) ([c51b2d6](https://github.com/GetStream/stream-video-js/commit/c51b2d605bc828e3561a909bd929241308dcf4dd))
|
|
14
|
+
- `@stream-io/video-react-bindings` updated to version `1.18.3`
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- use speakerLayoutSortPreset in RN spotlight view ([#2332](https://github.com/GetStream/stream-video-js/issues/2332)) ([910a5de](https://github.com/GetStream/stream-video-js/commit/910a5de6160cc34de99ea1615ef40bb034c57078))
|
|
19
|
+
|
|
5
20
|
## [1.39.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.39.1...@stream-io/video-react-sdk-1.39.2) (2026-07-09)
|
|
6
21
|
|
|
7
22
|
### Dependency Updates
|
package/dist/embedded.cjs.js
CHANGED
|
@@ -1210,7 +1210,7 @@ const SpeakerTest = (props) => {
|
|
|
1210
1210
|
const audioElementRef = react.useRef(null);
|
|
1211
1211
|
const [isPlaying, setIsPlaying] = react.useState(false);
|
|
1212
1212
|
const { t } = videoReactBindings.useI18n();
|
|
1213
|
-
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.39.
|
|
1213
|
+
const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.39.3"}/assets/piano.mp3`, } = props;
|
|
1214
1214
|
// Update audio output device when selection changes
|
|
1215
1215
|
react.useEffect(() => {
|
|
1216
1216
|
const audio = audioElementRef.current;
|
|
@@ -2295,22 +2295,6 @@ const usePaginatedLayoutSortPreset = (call) => {
|
|
|
2295
2295
|
};
|
|
2296
2296
|
}, [call]);
|
|
2297
2297
|
};
|
|
2298
|
-
const useSpeakerLayoutSortPreset = (call, isOneOnOneCall) => {
|
|
2299
|
-
react.useEffect(() => {
|
|
2300
|
-
if (!call)
|
|
2301
|
-
return;
|
|
2302
|
-
// always show the remote participant in the spotlight
|
|
2303
|
-
if (isOneOnOneCall) {
|
|
2304
|
-
call.setSortParticipantsBy(videoClient.combineComparators(videoClient.screenSharing, loggedIn));
|
|
2305
|
-
}
|
|
2306
|
-
else {
|
|
2307
|
-
call.setSortParticipantsBy(videoClient.speakerLayoutSortPreset);
|
|
2308
|
-
}
|
|
2309
|
-
return () => {
|
|
2310
|
-
resetSortPreset(call);
|
|
2311
|
-
};
|
|
2312
|
-
}, [call, isOneOnOneCall]);
|
|
2313
|
-
};
|
|
2314
2298
|
const useRawRemoteParticipants = () => {
|
|
2315
2299
|
const { useRawParticipants } = videoReactBindings.useCallStateHooks();
|
|
2316
2300
|
const rawParticipants = useRawParticipants();
|
|
@@ -2321,13 +2305,6 @@ const resetSortPreset = (call) => {
|
|
|
2321
2305
|
const callConfig = videoClient.CallTypes.get(call.type);
|
|
2322
2306
|
call.setSortParticipantsBy(callConfig.options.sortParticipantsBy || videoClient.defaultSortPreset);
|
|
2323
2307
|
};
|
|
2324
|
-
const loggedIn = (a, b) => {
|
|
2325
|
-
if (a.isLocalParticipant)
|
|
2326
|
-
return 1;
|
|
2327
|
-
if (b.isLocalParticipant)
|
|
2328
|
-
return -1;
|
|
2329
|
-
return 0;
|
|
2330
|
-
};
|
|
2331
2308
|
|
|
2332
2309
|
const LivestreamLayout = (props) => {
|
|
2333
2310
|
const { useParticipants, useHasOngoingScreenShare } = videoReactBindings.useCallStateHooks();
|
|
@@ -2552,7 +2529,7 @@ const SpeakerLayout = ({ ParticipantViewUIBar = DefaultParticipantViewUIBar, Par
|
|
|
2552
2529
|
return () => cleanup?.();
|
|
2553
2530
|
}, [participantsBarWrapperElement, call]);
|
|
2554
2531
|
const isOneOnOneCall = allParticipants.length === 2;
|
|
2555
|
-
useSpeakerLayoutSortPreset(call, isOneOnOneCall);
|
|
2532
|
+
videoReactBindings.useSpeakerLayoutSortPreset(call, isOneOnOneCall);
|
|
2556
2533
|
useDragToScroll(participantsBarWrapperElement, {
|
|
2557
2534
|
enabled: enableDragToScroll,
|
|
2558
2535
|
});
|