@stream-io/video-react-native-sdk 1.9.16 → 1.9.18
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 +14 -0
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +17 -16
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +8 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +9 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +8 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +9 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +10 -2
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +9 -7
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.9.18](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.9.17...@stream-io/video-react-native-sdk-1.9.18) (2025-02-05)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `1.16.1`
|
|
10
|
+
* `@stream-io/video-react-bindings` updated to version `1.4.9`
|
|
11
|
+
## [1.9.17](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.9.16...@stream-io/video-react-native-sdk-1.9.17) (2025-02-03)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* handle null activities for pip on android ([dd9b59d](https://github.com/GetStream/stream-video-js/commit/dd9b59d526fd3fdc780b8a45792563bf12837618))
|
|
17
|
+
* prefer remote participants for PiP ([1c0f9a1](https://github.com/GetStream/stream-video-js/commit/1c0f9a1c278cf87b5584e13011d311af814a537b))
|
|
18
|
+
|
|
5
19
|
## [1.9.16](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.9.15...@stream-io/video-react-native-sdk-1.9.16) (2025-01-31)
|
|
6
20
|
|
|
7
21
|
### Dependency Updates
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
package com.streamvideo.reactnative
|
|
2
2
|
|
|
3
|
+
import android.app.Activity
|
|
3
4
|
import android.app.AppOpsManager
|
|
4
5
|
import android.app.PictureInPictureParams
|
|
5
6
|
import android.content.BroadcastReceiver
|
|
@@ -44,7 +45,7 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
44
45
|
if (isInPictureInPictureMode && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && hasPiPSupport()) {
|
|
45
46
|
(reactApplicationContext.currentActivity as? ReactActivity)?.let { activity ->
|
|
46
47
|
try {
|
|
47
|
-
val params = getPiPParams()
|
|
48
|
+
val params = getPiPParams(activity)
|
|
48
49
|
val aspect =
|
|
49
50
|
if (newConfig.orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) {
|
|
50
51
|
Rational(9, 16)
|
|
@@ -118,20 +119,21 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
118
119
|
fun canAutoEnterPipMode(value: Boolean) {
|
|
119
120
|
StreamVideoReactNative.canAutoEnterPictureInPictureMode = value
|
|
120
121
|
if (!hasPiPSupport() || Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
reactApplicationContext.currentActivity?.let { activity ->
|
|
123
|
+
try {
|
|
124
|
+
if (value) {
|
|
125
|
+
activity.setPictureInPictureParams(getPiPParams(activity).build())
|
|
126
|
+
// NOTE: for SDK_INT < Build.VERSION_CODES.S
|
|
127
|
+
// onUserLeaveHint from Activity is used, SDK cant directly use it
|
|
128
|
+
// onUserLeaveHint will call the PiP listener and we call enterPictureInPictureMode there
|
|
129
|
+
} else {
|
|
130
|
+
val params = PictureInPictureParams.Builder()
|
|
131
|
+
params.setAutoEnterEnabled(false)
|
|
132
|
+
activity.setPictureInPictureParams(params.build())
|
|
133
|
+
}
|
|
134
|
+
} catch (e: IllegalStateException) {
|
|
135
|
+
Log.d(NAME, "Skipping Picture-in-Picture mode. Its not enabled for activity")
|
|
132
136
|
}
|
|
133
|
-
} catch (e: IllegalStateException) {
|
|
134
|
-
Log.d(NAME, "Skipping Picture-in-Picture mode. Its not enabled for activity")
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
139
|
|
|
@@ -266,8 +268,7 @@ class StreamVideoReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
266
268
|
}
|
|
267
269
|
|
|
268
270
|
@RequiresApi(Build.VERSION_CODES.O)
|
|
269
|
-
private fun getPiPParams(): PictureInPictureParams.Builder {
|
|
270
|
-
val activity = reactApplicationContext!!.currentActivity!!
|
|
271
|
+
private fun getPiPParams(activity: Activity): PictureInPictureParams.Builder {
|
|
271
272
|
val currentOrientation = activity.resources.configuration.orientation
|
|
272
273
|
|
|
273
274
|
val aspect =
|
|
@@ -37,7 +37,14 @@ const RTCViewPipIOS = /*#__PURE__*/_react.default.memo(({
|
|
|
37
37
|
});
|
|
38
38
|
const allParticipants = (0, _useDebouncedValue.useDebouncedValue)(_allParticipants, 300); // we debounce the participants to avoid unnecessary rerenders that happen when participant tracks are all subscribed simultaneously
|
|
39
39
|
|
|
40
|
-
const [
|
|
40
|
+
const [dominantSpeaker, dominantSpeaker2] = allParticipants.filter(participant => includeLocalParticipantVideo ? true : !participant.isLocalParticipant);
|
|
41
|
+
|
|
42
|
+
// show the dominant remote speaker in PiP mode
|
|
43
|
+
// local speaker is shown only if remote doesn't exist
|
|
44
|
+
let participantInSpotlight = dominantSpeaker;
|
|
45
|
+
if (dominantSpeaker?.isLocalParticipant && dominantSpeaker2) {
|
|
46
|
+
participantInSpotlight = dominantSpeaker2;
|
|
47
|
+
}
|
|
41
48
|
(0, _react.useEffect)(() => {
|
|
42
49
|
_shouldDisableIOSLocalVideoOnBackground.shouldDisableIOSLocalVideoOnBackgroundRef.current = !includeLocalParticipantVideo;
|
|
43
50
|
}, [includeLocalParticipantVideo]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_interopRequireWildcard","_reactNative","_useDebouncedValue","_shouldDisableIOSLocalVideoOnBackground","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","COMPONENT_NAME","RTCViewPipNative","requireNativeComponent","RTCViewPip","React","memo","forwardRef","props","ref","Platform","OS","createElement","streamURL","RTCViewPipIOS","includeLocalParticipantVideo","useCall","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_interopRequireWildcard","_reactNative","_useDebouncedValue","_shouldDisableIOSLocalVideoOnBackground","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","COMPONENT_NAME","RTCViewPipNative","requireNativeComponent","RTCViewPip","React","memo","forwardRef","props","ref","Platform","OS","createElement","streamURL","RTCViewPipIOS","includeLocalParticipantVideo","useCall","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","dominantSpeaker","dominantSpeaker2","filter","participant","isLocalParticipant","participantInSpotlight","useEffect","shouldDisableIOSLocalVideoOnBackgroundRef","current","nativeRef","useRef","callClosedInvokedOnce","onCallClosed","node","findNodeHandle","UIManager","dispatchViewManagerCommand","getViewManagerConfig","Commands","unsubFunc","on","subscription","state","callingState$","subscribe","CallingState","LEFT","IDLE","unsubscribe","useMemo","undefined","videoStream","screenShareStream","isScreenSharing","hasScreenShare","videoStreamToRender","toURL","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/RTCViewPipIOS.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,mBAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAOA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,uCAAA,GAAAN,OAAA;AAA2H,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA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CAAC,CAAC;IAChB,CAAC,CAAC;IACF,MAAMS,YAAY,GAAG/C,IAAI,EAAEgD,KAAK,CAACC,aAAa,CAACC,SAAS,CAAEF,KAAK,IAAK;MAClE,IAAIA,KAAK,KAAKG,yBAAY,CAACC,IAAI,IAAIJ,KAAK,KAAKG,yBAAY,CAACE,IAAI,EAAE;QAC9Df,YAAY,CAAC,CAAC;MAChB;IACF,CAAC,CAAC;IACF,OAAO,MAAM;MACXA,YAAY,CAAC,CAAC;MACdO,SAAS,GAAG,CAAC;MACbE,YAAY,EAAEO,WAAW,CAAC,CAAC;IAC7B,CAAC;EACH,CAAC,EAAE,CAACtD,IAAI,CAAC,CAAC;EAEV,MAAMe,SAAS,GAAG,IAAAwC,cAAO,EAAC,MAAM;IAC9B,IAAI,CAACxB,sBAAsB,EAAE;MAC3B,OAAOyB,SAAS;IAClB;IAEA,MAAM;MAAEC,WAAW;MAAEC;IAAkB,CAAC,GAAG3B,sBAAsB;IAEjE,MAAM4B,eAAe,GAAG,IAAAC,2BAAc,EAAC7B,sBAAsB,CAAC;IAE9D,MAAM8B,mBAAmB,GAAIF,eAAe,GACxCD,iBAAiB,GACjBD,WAAkD;IAEtD,OAAOI,mBAAmB,EAAEC,KAAK,CAAC,CAAC;EACrC,CAAC,EAAE,CAAC/B,sBAAsB,CAAC,CAAC;EAE5B,oBAAOrD,MAAA,CAAAW,OAAA,CAAAyB,aAAA,CAACR,UAAU;IAACS,SAAS,EAAEA,SAAU;IAACJ,GAAG,EAAEwB;EAAU,CAAE,CAAC;AAC7D,CAAC,CAAC;AAAC,IAAA4B,QAAA,GAAAC,OAAA,CAAA3E,OAAA,GAEY2B,aAAa","ignoreList":[]}
|
|
@@ -59,7 +59,15 @@ const CallParticipantsGrid = ({
|
|
|
59
59
|
const showFloatingView = !isInPiPMode && remoteParticipants.length > 0 && remoteParticipants.length < 3;
|
|
60
60
|
let participants = showFloatingView ? showLocalParticipant && localParticipant ? [localParticipant] : remoteParticipants : allParticipants;
|
|
61
61
|
if (isInPiPMode) {
|
|
62
|
-
|
|
62
|
+
if (dominantSpeaker && !dominantSpeaker.isLocalParticipant) {
|
|
63
|
+
participants = [dominantSpeaker];
|
|
64
|
+
} else if (remoteParticipants[0]) {
|
|
65
|
+
participants = [remoteParticipants[0]];
|
|
66
|
+
} else if (localParticipant) {
|
|
67
|
+
participants = [localParticipant];
|
|
68
|
+
} else {
|
|
69
|
+
participants = [];
|
|
70
|
+
}
|
|
63
71
|
}
|
|
64
72
|
const participantViewProps = {
|
|
65
73
|
ParticipantView,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_videoReactBindings","_useDebouncedValue","_CallParticipantsList","_TestIds","_ThemeContext","_useIsInPiPMode","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CallParticipantsGrid","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useTheme","useRemoteParticipants","useParticipants","useLocalParticipant","useDominantSpeaker","useCallStateHooks","_remoteParticipants","localParticipant","_allParticipants","dominantSpeaker","remoteParticipants","useDebouncedValue","allParticipants","landscapeStyles","flexDirection","isInPiPMode","useIsInPiPMode","showFloatingView","participants","participantViewProps","createElement","View","style","styles","container","backgroundColor","sheetPrimary","testID","ComponentTestIds","CALL_PARTICIPANTS_GRID","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAIA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAGA,IAAAO,eAAA,GAAAP,OAAA;AAA+D,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_videoReactBindings","_useDebouncedValue","_CallParticipantsList","_TestIds","_ThemeContext","_useIsInPiPMode","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CallParticipantsGrid","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useTheme","useRemoteParticipants","useParticipants","useLocalParticipant","useDominantSpeaker","useCallStateHooks","_remoteParticipants","localParticipant","_allParticipants","dominantSpeaker","remoteParticipants","useDebouncedValue","allParticipants","landscapeStyles","flexDirection","isInPiPMode","useIsInPiPMode","showFloatingView","participants","isLocalParticipant","participantViewProps","createElement","View","style","styles","container","backgroundColor","sheetPrimary","testID","ComponentTestIds","CALL_PARTICIPANTS_GRID","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../src","sources":["components/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;IAChBC,kCAAkC;IAClCC,mBAAmB;IACnBC,wBAAwB;IACxBE;EACF,CAAC;EAED,oBACEjC,MAAA,CAAAY,OAAA,CAAAiD,aAAA,CAAC1D,YAAA,CAAA2D,IAAI;IACHC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBZ,eAAe,EACf;MAAEa,eAAe,EAAE5B,MAAM,CAAC6B;IAAa,CAAC,EACxC5B,oBAAoB,CAAC0B,SAAS,CAC9B;IACFG,MAAM,EAAEC,yBAAgB,CAACC;EAAuB,GAE/C5C,oBAAoB,iBACnB1B,MAAA,CAAAY,OAAA,CAAAiD,aAAA,CAACnC,oBAAoB,EAAAb,QAAA;IACnB6C,YAAY,EAAEA,YAAa;IAC3BvB,kBAAkB,EAAEA,kBAAmB;IACvCC,SAAS,EAAEA;EAAU,GACjBwB,oBAAoB,CACzB,CAEC,CAAC;AAEX,CAAC;AAACW,OAAA,CAAA9C,oBAAA,GAAAA,oBAAA;AAEF,MAAMuC,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IAAES,IAAI,EAAE;EAAE;AACvB,CAAC,CAAC","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -29,7 +29,14 @@ const RTCViewPipIOS = /*#__PURE__*/React.memo(({
|
|
|
29
29
|
});
|
|
30
30
|
const allParticipants = useDebouncedValue(_allParticipants, 300); // we debounce the participants to avoid unnecessary rerenders that happen when participant tracks are all subscribed simultaneously
|
|
31
31
|
|
|
32
|
-
const [
|
|
32
|
+
const [dominantSpeaker, dominantSpeaker2] = allParticipants.filter(participant => includeLocalParticipantVideo ? true : !participant.isLocalParticipant);
|
|
33
|
+
|
|
34
|
+
// show the dominant remote speaker in PiP mode
|
|
35
|
+
// local speaker is shown only if remote doesn't exist
|
|
36
|
+
let participantInSpotlight = dominantSpeaker;
|
|
37
|
+
if (dominantSpeaker?.isLocalParticipant && dominantSpeaker2) {
|
|
38
|
+
participantInSpotlight = dominantSpeaker2;
|
|
39
|
+
}
|
|
33
40
|
useEffect(() => {
|
|
34
41
|
shouldDisableIOSLocalVideoOnBackgroundRef.current = !includeLocalParticipantVideo;
|
|
35
42
|
}, [includeLocalParticipantVideo]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","hasScreenShare","speakerLayoutSortPreset","useCall","useCallStateHooks","React","useEffect","useMemo","findNodeHandle","Platform","requireNativeComponent","UIManager","useDebouncedValue","shouldDisableIOSLocalVideoOnBackgroundRef","COMPONENT_NAME","RTCViewPipNative","RTCViewPip","memo","forwardRef","props","ref","OS","createElement","streamURL","RTCViewPipIOS","includeLocalParticipantVideo","call","useParticipants","_allParticipants","sortBy","allParticipants","
|
|
1
|
+
{"version":3,"names":["CallingState","hasScreenShare","speakerLayoutSortPreset","useCall","useCallStateHooks","React","useEffect","useMemo","findNodeHandle","Platform","requireNativeComponent","UIManager","useDebouncedValue","shouldDisableIOSLocalVideoOnBackgroundRef","COMPONENT_NAME","RTCViewPipNative","RTCViewPip","memo","forwardRef","props","ref","OS","createElement","streamURL","RTCViewPipIOS","includeLocalParticipantVideo","call","useParticipants","_allParticipants","sortBy","allParticipants","dominantSpeaker","dominantSpeaker2","filter","participant","isLocalParticipant","participantInSpotlight","current","nativeRef","useRef","callClosedInvokedOnce","onCallClosed","node","dispatchViewManagerCommand","getViewManagerConfig","Commands","unsubFunc","on","subscription","state","callingState$","subscribe","LEFT","IDLE","unsubscribe","undefined","videoStream","screenShareStream","isScreenSharing","videoStreamToRender","toURL"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/RTCViewPipIOS.tsx"],"mappings":"AAAA,SACEA,YAAY,EACZC,cAAc,EACdC,uBAAuB,QAClB,yBAAyB;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAE5E,OAAOC,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SACEC,cAAc,EAEdC,QAAQ,EACRC,sBAAsB,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AClB;IAEA,MAAM;MAAEC,WAAW;MAAEC;IAAkB,CAAC,GAAGrB,sBAAsB;IAEjE,MAAMsB,eAAe,GAAGzD,cAAc,CAACmC,sBAAsB,CAAC;IAE9D,MAAMuB,mBAAmB,GAAID,eAAe,GACxCD,iBAAiB,GACjBD,WAAkD;IAEtD,OAAOG,mBAAmB,EAAEC,KAAK,CAAC,CAAC;EACrC,CAAC,EAAE,CAACxB,sBAAsB,CAAC,CAAC;EAE5B,oBAAO/B,KAAA,CAAAiB,aAAA,CAACN,UAAU;IAACO,SAAS,EAAEA,SAAU;IAACH,GAAG,EAAEkB;EAAU,CAAE,CAAC;AAC7D,CAAC,CAAC;AAEF,eAAed,aAAa","ignoreList":[]}
|
|
@@ -53,7 +53,15 @@ export const CallParticipantsGrid = ({
|
|
|
53
53
|
const showFloatingView = !isInPiPMode && remoteParticipants.length > 0 && remoteParticipants.length < 3;
|
|
54
54
|
let participants = showFloatingView ? showLocalParticipant && localParticipant ? [localParticipant] : remoteParticipants : allParticipants;
|
|
55
55
|
if (isInPiPMode) {
|
|
56
|
-
|
|
56
|
+
if (dominantSpeaker && !dominantSpeaker.isLocalParticipant) {
|
|
57
|
+
participants = [dominantSpeaker];
|
|
58
|
+
} else if (remoteParticipants[0]) {
|
|
59
|
+
participants = [remoteParticipants[0]];
|
|
60
|
+
} else if (localParticipant) {
|
|
61
|
+
participants = [localParticipant];
|
|
62
|
+
} else {
|
|
63
|
+
participants = [];
|
|
64
|
+
}
|
|
57
65
|
}
|
|
58
66
|
const participantViewProps = {
|
|
59
67
|
ParticipantView,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","useDominantSpeaker","_remoteParticipants","localParticipant","_allParticipants","dominantSpeaker","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","sheetPrimary","testID","CALL_PARTICIPANTS_GRID","_extends","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,QAAQ,QAAQ,gCAAgC;AAGzD,SAASC,cAAc,QAAQ,+BAA+B;;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","useDominantSpeaker","_remoteParticipants","localParticipant","_allParticipants","dominantSpeaker","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","isLocalParticipant","participantViewProps","createElement","style","styles","container","backgroundColor","sheetPrimary","testID","CALL_PARTICIPANTS_GRID","_extends","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB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/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.9.
|
|
1
|
+
export const version = '1.9.18';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTCViewPipIOS.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/RTCViewPipIOS.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAmClD,KAAK,KAAK,GAAG;IACX,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,aAAa,+DAAiD,KAAK,
|
|
1
|
+
{"version":3,"file":"RTCViewPipIOS.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/RTCViewPipIOS.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAmClD,KAAK,KAAK,GAAG;IACX,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,aAAa,+DAAiD,KAAK,uBA6EvE,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallParticipantsGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAEL,kCAAkC,EACnC,MAAM,8CAA8C,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"CallParticipantsGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAEL,kCAAkC,EACnC,MAAM,8CAA8C,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGlE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,GACnE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,sBAAsB,CAAC,GACrE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAAG;IAC5D;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,wNAW9B,yBAAyB,sBA2E3B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.9.
|
|
1
|
+
export declare const version = "1.9.18";
|
|
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.9.
|
|
3
|
+
"version": "1.9.18",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "dist/commonjs/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"!**/.*"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@stream-io/video-client": "1.16.
|
|
50
|
-
"@stream-io/video-react-bindings": "1.4.
|
|
49
|
+
"@stream-io/video-client": "1.16.1",
|
|
50
|
+
"@stream-io/video-react-bindings": "1.4.9",
|
|
51
51
|
"intl-pluralrules": "2.0.1",
|
|
52
52
|
"lodash.merge": "^4.6.2",
|
|
53
53
|
"react-native-url-polyfill": "1.3.0",
|
|
@@ -52,10 +52,18 @@ const RTCViewPipIOS = React.memo(({ includeLocalParticipantVideo }: Props) => {
|
|
|
52
52
|
});
|
|
53
53
|
const allParticipants = useDebouncedValue(_allParticipants, 300); // we debounce the participants to avoid unnecessary rerenders that happen when participant tracks are all subscribed simultaneously
|
|
54
54
|
|
|
55
|
-
const [
|
|
56
|
-
|
|
55
|
+
const [dominantSpeaker, dominantSpeaker2] = allParticipants.filter(
|
|
56
|
+
(participant) =>
|
|
57
|
+
includeLocalParticipantVideo ? true : !participant.isLocalParticipant
|
|
57
58
|
);
|
|
58
59
|
|
|
60
|
+
// show the dominant remote speaker in PiP mode
|
|
61
|
+
// local speaker is shown only if remote doesn't exist
|
|
62
|
+
let participantInSpotlight = dominantSpeaker;
|
|
63
|
+
if (dominantSpeaker?.isLocalParticipant && dominantSpeaker2) {
|
|
64
|
+
participantInSpotlight = dominantSpeaker2;
|
|
65
|
+
}
|
|
66
|
+
|
|
59
67
|
useEffect(() => {
|
|
60
68
|
shouldDisableIOSLocalVideoOnBackgroundRef.current =
|
|
61
69
|
!includeLocalParticipantVideo;
|
|
@@ -11,7 +11,6 @@ import { useTheme } from '../../../contexts/ThemeContext';
|
|
|
11
11
|
import { CallContentProps } from '../CallContent';
|
|
12
12
|
import { ParticipantViewComponentProps } from '../../Participant';
|
|
13
13
|
import { useIsInPiPMode } from '../../../hooks/useIsInPiPMode';
|
|
14
|
-
import { StreamVideoParticipant } from '@stream-io/video-client';
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* Props for the CallParticipantsGrid component.
|
|
@@ -79,12 +78,15 @@ export const CallParticipantsGrid = ({
|
|
|
79
78
|
: allParticipants;
|
|
80
79
|
|
|
81
80
|
if (isInPiPMode) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
if (dominantSpeaker && !dominantSpeaker.isLocalParticipant) {
|
|
82
|
+
participants = [dominantSpeaker];
|
|
83
|
+
} else if (remoteParticipants[0]) {
|
|
84
|
+
participants = [remoteParticipants[0]];
|
|
85
|
+
} else if (localParticipant) {
|
|
86
|
+
participants = [localParticipant];
|
|
87
|
+
} else {
|
|
88
|
+
participants = [];
|
|
89
|
+
}
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
const participantViewProps: CallParticipantsListComponentProps = {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.9.
|
|
1
|
+
export const version = '1.9.18';
|