@stream-io/video-react-native-sdk 1.24.3 → 1.24.5
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 +21 -0
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +3 -7
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +4 -8
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +2 -6
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.24.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.24.4...@stream-io/video-react-native-sdk-1.24.5) (2025-11-17)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
- `@stream-io/video-client` updated to version `1.37.1`
|
|
10
|
+
- `@stream-io/video-react-bindings` updated to version `1.11.2`
|
|
11
|
+
|
|
12
|
+
- remove outdated comment ([2323e27](https://github.com/GetStream/stream-video-js/commit/2323e27b7e50f82e8ef2a3d0d12f1012025b3e50))
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- dynascale manager doesnt pick up updated dimensions all the time ([#2001](https://github.com/GetStream/stream-video-js/issues/2001)) ([d91e008](https://github.com/GetStream/stream-video-js/commit/d91e008f27fa2a4324f22555fbe0a59afe702bbb))
|
|
17
|
+
|
|
18
|
+
## [1.24.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.24.3...@stream-io/video-react-native-sdk-1.24.4) (2025-11-14)
|
|
19
|
+
|
|
20
|
+
### Dependency Updates
|
|
21
|
+
|
|
22
|
+
- `@stream-io/video-filters-react-native` updated to version `0.9.0`
|
|
23
|
+
- `@stream-io/video-client` updated to version `1.37.0`
|
|
24
|
+
- `@stream-io/video-react-bindings` updated to version `1.11.1`
|
|
25
|
+
|
|
5
26
|
## [1.24.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.24.2...@stream-io/video-react-native-sdk-1.24.3) (2025-11-12)
|
|
6
27
|
|
|
7
28
|
### Dependency Updates
|
package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js
CHANGED
|
@@ -44,15 +44,11 @@ const TrackSubscriber = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
44
44
|
});
|
|
45
45
|
call.dynascaleManager.applyTrackSubscriptions(debounceType);
|
|
46
46
|
};
|
|
47
|
-
const isPublishingTrack$ = call.state.participants$.pipe((0, _rxjs.map)(ps => ps.find(p => p.sessionId === participantSessionId)), (0, _rxjs.takeWhile)(p => !!p), (0, _rxjs.
|
|
47
|
+
const isPublishingTrack$ = call.state.participants$.pipe((0, _rxjs.map)(ps => ps.find(p => p.sessionId === participantSessionId)), (0, _rxjs.takeWhile)(p => !!p), (0, _rxjs.distinctUntilKeyChanged)('publishedTracks'), (0, _rxjs.map)(p => trackType === 'videoTrack' ? (0, _videoClient.hasVideo)(p) : (0, _videoClient.hasScreenShare)(p)), (0, _rxjs.distinctUntilChanged)());
|
|
48
48
|
const isJoinedState$ = call.state.callingState$.pipe((0, _rxjs.map)(callingState => callingState === _videoClient.CallingState.JOINED));
|
|
49
|
-
const subscription = (0, _rxjs.combineLatest)([dimensions$, isPublishingTrack$, isJoinedState$
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
51
|
-
]).subscribe(([dimension, isPublishing, isJoined]) => {
|
|
52
|
-
// isPublishing is not used here, but we need to keep it for the subscription
|
|
53
|
-
// to send the dimensions again when the participant starts publishing the track again
|
|
49
|
+
const subscription = (0, _rxjs.combineLatest)([dimensions$, isPublishingTrack$, isJoinedState$]).subscribe(([dimension, isPublishing, isJoined]) => {
|
|
54
50
|
if (isJoined) {
|
|
55
|
-
if (!isVisible) {
|
|
51
|
+
if (!isVisible || !isPublishing) {
|
|
56
52
|
requestTrackWithDimensions(_videoClient.DebounceType.MEDIUM, undefined);
|
|
57
53
|
} else if (dimension) {
|
|
58
54
|
requestTrackWithDimensions(_videoClient.DebounceType.IMMEDIATE, dimension);
|
package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_videoClient","_rxjs","TrackSubscriber","forwardRef","props","ref","call","participantSessionId","trackType","isVisible","dimensions$","useMemo","BehaviorSubject","undefined","useEffect","requestTrackWithDimensions","debounceType","dimension","width","height","state","updateParticipantTracks","dynascaleManager","applyTrackSubscriptions","isPublishingTrack$","participants$","pipe","map","ps","find","p","sessionId","takeWhile","
|
|
1
|
+
{"version":3,"names":["_react","require","_videoClient","_rxjs","TrackSubscriber","forwardRef","props","ref","call","participantSessionId","trackType","isVisible","dimensions$","useMemo","BehaviorSubject","undefined","useEffect","requestTrackWithDimensions","debounceType","dimension","width","height","state","updateParticipantTracks","dynascaleManager","applyTrackSubscriptions","isPublishingTrack$","participants$","pipe","map","ps","find","p","sessionId","takeWhile","distinctUntilKeyChanged","hasVideo","hasScreenShare","distinctUntilChanged","isJoinedState$","callingState$","callingState","CallingState","JOINED","subscription","combineLatest","subscribe","isPublishing","isJoined","DebounceType","MEDIUM","IMMEDIATE","unsubscribe","useImperativeHandle","onLayoutUpdate","event","Math","trunc","nativeEvent","layout","next","displayName","_default","exports","default"],"sourceRoot":"../../../../../../src","sources":["components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,KAAA,GAAAF,OAAA;AAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,eAAe,gBAAG,IAAAC,iBAAU,EAChC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,MAAM;IAAEC,IAAI;IAAEC,oBAAoB;IAAEC,SAAS;IAAEC;EAAU,CAAC,GAAGL,KAAK;EAClE,MAAMM,WAAW,GAAG,IAAAC,cAAO,EAAC,MAAM;IAChC,OAAO,IAAIC,qBAAe,CACxBC,SACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,0BAA0B,GAAGA,CACjCC,YAA0B,EAC1BC,SAA+C,KAC5C;MACH,IAAIA,SAAS,KAAKA,SAAS,CAACC,KAAK,KAAK,CAAC,IAAID,SAAS,CAACE,MAAM,KAAK,CAAC,CAAC,EAAE;QAClE;QACA;QACA;QACA;QACAF,SAAS,GAAGJ,SAAS;MACvB;MACAP,IAAI,CAACc,KAAK,CAACC,uBAAuB,CAACb,SAAS,EAAE;QAC5C,CAACD,oBAAoB,GAAG;UAAEU;QAAU;MACtC,CAAC,CAAC;MACFX,IAAI,CAACgB,gBAAgB,CAACC,uBAAuB,CAACP,YAAY,CAAC;IAC7D,CAAC;IACD,MAAMQ,kBAAkB,GAAGlB,IAAI,CAACc,KAAK,CAACK,aAAa,CAACC,IAAI,CACtD,IAAAC,SAAG,EAAEC,EAAE,IAAKA,EAAE,CAACC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACC,SAAS,KAAKxB,oBAAoB,CAAC,CAAC,EACjE,IAAAyB,eAAS,EAAEF,CAAC,IAAK,CAAC,CAACA,CAAC,CAAC,EACrB,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AAK,CAACF,KAAK,CAACG,WAAW,CAACC,MAAM,CAACtC,MAAM;MACpD,CAAC;MACDT,WAAW,CAACgD,IAAI,CAACzC,SAAS,CAAC;IAC7B;EACF,CAAC,CAAC,EACF,CAACP,WAAW,CACd,CAAC;EAED,OAAO,IAAI;AACb,CACF,CAAC;AAEDR,eAAe,CAACyD,WAAW,GAAG,iBAAiB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEjC5D,eAAe","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
2
|
-
import { CallingState, hasScreenShare, hasVideo
|
|
2
|
+
import { CallingState, DebounceType, hasScreenShare, hasVideo } from '@stream-io/video-client';
|
|
3
3
|
import { BehaviorSubject, combineLatest, distinctUntilChanged, distinctUntilKeyChanged, map, takeWhile } from 'rxjs';
|
|
4
4
|
/**
|
|
5
5
|
* This component is used to subscribe to the video + audio track of the participant in the following cases:
|
|
@@ -38,15 +38,11 @@ const TrackSubscriber = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
38
38
|
});
|
|
39
39
|
call.dynascaleManager.applyTrackSubscriptions(debounceType);
|
|
40
40
|
};
|
|
41
|
-
const isPublishingTrack$ = call.state.participants$.pipe(map(ps => ps.find(p => p.sessionId === participantSessionId)), takeWhile(p => !!p),
|
|
41
|
+
const isPublishingTrack$ = call.state.participants$.pipe(map(ps => ps.find(p => p.sessionId === participantSessionId)), takeWhile(p => !!p), distinctUntilKeyChanged('publishedTracks'), map(p => trackType === 'videoTrack' ? hasVideo(p) : hasScreenShare(p)), distinctUntilChanged());
|
|
42
42
|
const isJoinedState$ = call.state.callingState$.pipe(map(callingState => callingState === CallingState.JOINED));
|
|
43
|
-
const subscription = combineLatest([dimensions$, isPublishingTrack$, isJoinedState$
|
|
44
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45
|
-
]).subscribe(([dimension, isPublishing, isJoined]) => {
|
|
46
|
-
// isPublishing is not used here, but we need to keep it for the subscription
|
|
47
|
-
// to send the dimensions again when the participant starts publishing the track again
|
|
43
|
+
const subscription = combineLatest([dimensions$, isPublishingTrack$, isJoinedState$]).subscribe(([dimension, isPublishing, isJoined]) => {
|
|
48
44
|
if (isJoined) {
|
|
49
|
-
if (!isVisible) {
|
|
45
|
+
if (!isVisible || !isPublishing) {
|
|
50
46
|
requestTrackWithDimensions(DebounceType.MEDIUM, undefined);
|
|
51
47
|
} else if (dimension) {
|
|
52
48
|
requestTrackWithDimensions(DebounceType.IMMEDIATE, dimension);
|
package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","useImperativeHandle","useEffect","useMemo","CallingState","
|
|
1
|
+
{"version":3,"names":["forwardRef","useImperativeHandle","useEffect","useMemo","CallingState","DebounceType","hasScreenShare","hasVideo","BehaviorSubject","combineLatest","distinctUntilChanged","distinctUntilKeyChanged","map","takeWhile","TrackSubscriber","props","ref","call","participantSessionId","trackType","isVisible","dimensions$","undefined","requestTrackWithDimensions","debounceType","dimension","width","height","state","updateParticipantTracks","dynascaleManager","applyTrackSubscriptions","isPublishingTrack$","participants$","pipe","ps","find","p","sessionId","isJoinedState$","callingState$","callingState","JOINED","subscription","subscribe","isPublishing","isJoined","MEDIUM","IMMEDIATE","unsubscribe","onLayoutUpdate","event","Math","trunc","nativeEvent","layout","next","displayName"],"sourceRoot":"../../../../../../src","sources":["components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,mBAAmB,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAE3E,SAEEC,YAAY,EACZC,YAAY,EACZC,cAAc,EACdC,QAAQ,QAGH,yBAAyB;AAChC,SACEC,eAAe,EACfC,aAAa,EACbC,oBAAoB,EACpBC,uBAAu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AC2C,WAAW,GAAG,iBAAiB;AAE/C,eAAe3C,eAAe","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.24.
|
|
1
|
+
export const version = '1.24.5';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrackSubscriber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"TrackSubscriber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EACL,IAAI,EAMJ,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AASjC,MAAM,MAAM,qBAAqB,GAAG;IAClC,cAAc,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,cAAc,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;EAUE;AACF,QAAA,MAAM,eAAe,wHA0EpB,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.24.
|
|
1
|
+
export declare const version = "1.24.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-native-sdk",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.5",
|
|
4
4
|
"description": "Stream Video SDK for React Native",
|
|
5
5
|
"author": "https://getstream.io",
|
|
6
6
|
"homepage": "https://getstream.io/video/docs/react-native/",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"!**/.*"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@stream-io/video-client": "1.
|
|
49
|
-
"@stream-io/video-react-bindings": "1.11.
|
|
48
|
+
"@stream-io/video-client": "1.37.1",
|
|
49
|
+
"@stream-io/video-react-bindings": "1.11.2",
|
|
50
50
|
"intl-pluralrules": "2.0.1",
|
|
51
51
|
"lodash.merge": "^4.6.2",
|
|
52
52
|
"react-native-url-polyfill": "^3.0.0",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@react-native/babel-preset": "^0.81.4",
|
|
128
128
|
"@stream-io/noise-cancellation-react-native": "^0.4.1",
|
|
129
129
|
"@stream-io/react-native-webrtc": "137.0.0",
|
|
130
|
-
"@stream-io/video-filters-react-native": "^0.
|
|
130
|
+
"@stream-io/video-filters-react-native": "^0.9.0",
|
|
131
131
|
"@testing-library/jest-native": "^5.4.3",
|
|
132
132
|
"@testing-library/react-native": "13.3.3",
|
|
133
133
|
"@tsconfig/node18": "^18.2.4",
|
|
@@ -3,11 +3,11 @@ import { LayoutChangeEvent } from 'react-native';
|
|
|
3
3
|
import {
|
|
4
4
|
Call,
|
|
5
5
|
CallingState,
|
|
6
|
+
DebounceType,
|
|
6
7
|
hasScreenShare,
|
|
7
8
|
hasVideo,
|
|
8
9
|
SfuModels,
|
|
9
10
|
type VideoTrackType,
|
|
10
|
-
DebounceType,
|
|
11
11
|
} from '@stream-io/video-client';
|
|
12
12
|
import {
|
|
13
13
|
BehaviorSubject,
|
|
@@ -68,7 +68,6 @@ const TrackSubscriber = forwardRef<TrackSubscriberHandle, TrackSubscriberProps>(
|
|
|
68
68
|
const isPublishingTrack$ = call.state.participants$.pipe(
|
|
69
69
|
map((ps) => ps.find((p) => p.sessionId === participantSessionId)),
|
|
70
70
|
takeWhile((p) => !!p),
|
|
71
|
-
distinctUntilChanged(),
|
|
72
71
|
distinctUntilKeyChanged('publishedTracks'),
|
|
73
72
|
map((p) =>
|
|
74
73
|
trackType === 'videoTrack' ? hasVideo(p) : hasScreenShare(p),
|
|
@@ -83,12 +82,9 @@ const TrackSubscriber = forwardRef<TrackSubscriberHandle, TrackSubscriberProps>(
|
|
|
83
82
|
dimensions$,
|
|
84
83
|
isPublishingTrack$,
|
|
85
84
|
isJoinedState$,
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
87
85
|
]).subscribe(([dimension, isPublishing, isJoined]) => {
|
|
88
|
-
// isPublishing is not used here, but we need to keep it for the subscription
|
|
89
|
-
// to send the dimensions again when the participant starts publishing the track again
|
|
90
86
|
if (isJoined) {
|
|
91
|
-
if (!isVisible) {
|
|
87
|
+
if (!isVisible || !isPublishing) {
|
|
92
88
|
requestTrackWithDimensions(DebounceType.MEDIUM, undefined);
|
|
93
89
|
} else if (dimension) {
|
|
94
90
|
requestTrackWithDimensions(DebounceType.IMMEDIATE, dimension);
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.24.
|
|
1
|
+
export const version = '1.24.5';
|