@stream-io/video-react-native-sdk 1.0.0-rc2.0 → 1.0.1
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 -83
- package/dist/commonjs/components/Call/CallContent/CallContent.js +10 -5
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +109 -0
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -0
- package/dist/commonjs/components/Call/CallContent/index.js +11 -0
- package/dist/commonjs/components/Call/CallContent/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +4 -3
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +4 -3
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js +3 -3
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/commonjs/hooks/useIsInPiPMode.js +4 -4
- package/dist/commonjs/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/commonjs/providers/StreamCall.js +5 -2
- package/dist/commonjs/providers/StreamCall.js.map +1 -1
- package/dist/commonjs/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +10 -0
- package/dist/commonjs/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +10 -5
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +101 -0
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -0
- package/dist/module/components/Call/CallContent/index.js +1 -0
- package/dist/module/components/Call/CallContent/index.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +4 -3
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +4 -3
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/hooks/useAutoEnterPiPEffect.js +3 -3
- package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/module/hooks/useIsInPiPMode.js +4 -4
- package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/module/providers/StreamCall.js +5 -2
- package/dist/module/providers/StreamCall.js.map +1 -1
- package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +4 -0
- package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -0
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +6 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts +7 -0
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallContent/index.d.ts +1 -0
- package/dist/typescript/components/Call/CallContent/index.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +2 -2
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +2 -2
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts +1 -1
- package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useIsInPiPMode.d.ts +1 -1
- package/dist/typescript/hooks/useIsInPiPMode.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall.d.ts.map +1 -1
- package/dist/typescript/utils/internal/shouldDisableIOSLocalVideoOnBackground.d.ts +4 -0
- package/dist/typescript/utils/internal/shouldDisableIOSLocalVideoOnBackground.d.ts.map +1 -0
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/ios/PictureInPicture/SampleBufferVideoCallView.swift +52 -0
- package/ios/PictureInPicture/StreamAVPictureInPictureVideoCallViewController.swift +83 -0
- package/ios/PictureInPicture/StreamBufferTransformer.swift +96 -0
- package/ios/PictureInPicture/StreamPictureInPictureController.swift +185 -0
- package/ios/PictureInPicture/StreamPictureInPictureTrackStateAdapter.swift +68 -0
- package/ios/PictureInPicture/StreamPictureInPictureVideoRenderer.swift +250 -0
- package/ios/PictureInPicture/StreamPixelBufferPool.swift +118 -0
- package/ios/PictureInPicture/StreamPixelBufferRepository.swift +98 -0
- package/ios/PictureInPicture/StreamRTCYUVBuffer.swift +249 -0
- package/ios/PictureInPicture/StreamYUVToARGBConversion.swift +128 -0
- package/ios/PictureInPicture/WindowSizePolicy/StreamPictureInPictureAdaptiveWindowSizePolicy.swift +25 -0
- package/ios/PictureInPicture/WindowSizePolicy/StreamPictureInPictureFixedWindowSizePolicy.swift +29 -0
- package/ios/PictureInPicture/WindowSizePolicy/StreamPictureInPictureWindowSizePolicy.swift +14 -0
- package/ios/PictureInPicture/YpCbCrPixelRange+Default.swift +32 -0
- package/ios/RTCViewPip.swift +69 -0
- package/ios/RTCViewPipManager.mm +16 -0
- package/ios/RTCViewPipManager.swift +34 -0
- package/ios/StreamVideoReactNative-Bridging-Header.h +11 -0
- package/package.json +4 -4
- package/src/components/Call/CallContent/CallContent.tsx +58 -40
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +138 -0
- package/src/components/Call/CallContent/index.ts +1 -0
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +7 -3
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +7 -3
- package/src/hooks/useAutoEnterPiPEffect.tsx +7 -3
- package/src/hooks/useIsInPiPMode.tsx +6 -4
- package/src/providers/StreamCall.tsx +5 -2
- package/src/utils/internal/shouldDisableIOSLocalVideoOnBackground.ts +3 -0
- package/src/version.ts +1 -1
- package/stream-video-react-native.podspec +27 -4
- package/ios/StreamVideoReactNative.xcodeproj/project.pbxproj +0 -274
- package/ios/StreamVideoReactNative.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/StreamVideoReactNative.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_useIosCallkeepWithCallingStateEffect","_utils","_useAndroidKeepCallAliveEffect","_reactNative","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StreamCall","children","createElement","StreamCallProvider","AppStateListener","AndroidKeepCallAlive","IosInformCallkeepCallEnd","ClearPushWSSubscriptions","exports","useCall","appState","useRef","AppState","currentState","useEffect","subscription","addEventListener","nextAppState","current","match","camera","state","status","Platform","OS","disable","then","enable","resume","NativeModules","StreamVideoReactNative","isInPiPMode","isInPiP","remove","useAndroidKeepCallAliveEffect","useIosCallkeepWithCallingStateEffect","clearPushWSEventSubscriptions","canAddPushWSSubscriptionsRef"],"sourceRoot":"../../../src","sources":["providers/StreamCall.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,qCAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAIA,IAAAK,8BAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;
|
|
1
|
+
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_useIosCallkeepWithCallingStateEffect","_utils","_useAndroidKeepCallAliveEffect","_reactNative","_shouldDisableIOSLocalVideoOnBackground","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StreamCall","children","createElement","StreamCallProvider","AppStateListener","AndroidKeepCallAlive","IosInformCallkeepCallEnd","ClearPushWSSubscriptions","exports","useCall","appState","useRef","AppState","currentState","useEffect","subscription","addEventListener","nextAppState","current","match","camera","state","status","Platform","OS","disable","then","enable","resume","NativeModules","StreamVideoReactNative","isInPiPMode","isInPiP","shouldDisableIOSLocalVideoOnBackgroundRef","remove","useAndroidKeepCallAliveEffect","useIosCallkeepWithCallingStateEffect","clearPushWSEventSubscriptions","canAddPushWSSubscriptionsRef"],"sourceRoot":"../../../src","sources":["providers/StreamCall.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,qCAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAIA,IAAAK,8BAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,uCAAA,GAAAP,OAAA;AAAqH,SAAAQ,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,SAAAP,wBAAAO,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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,QAAQ,CAACQ,OAAO,GAAGD,YAAY;MACjC;IACF,CAAC,CAAC;IAEF,OAAO,MAAM;MACXF,YAAY,CAACmB,MAAM,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACrC,IAAI,CAAC,CAAC;EAEV,OAAO,IAAI;AACb,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMQ,oBAAoB,GAAGA,CAAA,KAAM;EACjC,IAAA8B,4DAA6B,EAAC,CAAC;EAC/B,OAAO,IAAI;AACb,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAM7B,wBAAwB,GAAGA,CAAA,KAAM;EACrC,IAAA8B,0EAAoC,EAAC,CAAC;EACtC,OAAO,IAAI;AACb,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAM7B,wBAAwB,GAAGA,CAAA,KAAM;EACrC,IAAAO,gBAAS,EAAC,MAAM;IACd,IAAAuB,oCAA6B,EAAC,CAAC;IAC/BC,mCAA4B,CAACpB,OAAO,GAAG,KAAK;IAC5C,OAAO,MAAM;MACXoB,mCAA4B,CAACpB,OAAO,GAAG,IAAI;IAC7C,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.shouldDisableIOSLocalVideoOnBackgroundRef = void 0;
|
|
7
|
+
const shouldDisableIOSLocalVideoOnBackgroundRef = exports.shouldDisableIOSLocalVideoOnBackgroundRef = {
|
|
8
|
+
current: true
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=shouldDisableIOSLocalVideoOnBackground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["shouldDisableIOSLocalVideoOnBackgroundRef","exports","current"],"sourceRoot":"../../../../src","sources":["utils/internal/shouldDisableIOSLocalVideoOnBackground.ts"],"mappings":";;;;;;AAAO,MAAMA,yCAAyC,GAAAC,OAAA,CAAAD,yCAAA,GAAG;EACvDE,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,
|
|
1
|
+
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,OAAO","ignoreList":[]}
|
|
@@ -12,6 +12,7 @@ import { FloatingParticipantView as DefaultFloatingParticipantView } from '../..
|
|
|
12
12
|
import { useTheme } from '../../../contexts';
|
|
13
13
|
import { useIsInPiPMode, useAutoEnterPiPEffect } from '../../../hooks';
|
|
14
14
|
import { ScreenShareOverlay as DefaultScreenShareOverlay } from '../../utility/ScreenShareOverlay';
|
|
15
|
+
import RTCViewPipIOS from './RTCViewPipIOS';
|
|
15
16
|
export const CallContent = ({
|
|
16
17
|
onBackPressed,
|
|
17
18
|
onParticipantInfoPress,
|
|
@@ -30,7 +31,9 @@ export const CallContent = ({
|
|
|
30
31
|
VideoRenderer,
|
|
31
32
|
layout = 'grid',
|
|
32
33
|
landscape = false,
|
|
33
|
-
supportedReactions
|
|
34
|
+
supportedReactions,
|
|
35
|
+
iOSPiPIncludeLocalParticipantVideo,
|
|
36
|
+
disablePictureInPicture
|
|
34
37
|
}) => {
|
|
35
38
|
const [showRemoteParticipantInFloatingView, setShowRemoteParticipantInFloatingView] = useState(false);
|
|
36
39
|
const {
|
|
@@ -44,13 +47,13 @@ export const CallContent = ({
|
|
|
44
47
|
useRemoteParticipants,
|
|
45
48
|
useLocalParticipant
|
|
46
49
|
} = useCallStateHooks();
|
|
47
|
-
useAutoEnterPiPEffect();
|
|
50
|
+
useAutoEnterPiPEffect(disablePictureInPicture);
|
|
48
51
|
const callSettings = useCallSettings();
|
|
49
52
|
const isVideoEnabledInCall = callSettings?.video.enabled;
|
|
50
53
|
const _remoteParticipants = useRemoteParticipants();
|
|
51
54
|
const remoteParticipants = useDebouncedValue(_remoteParticipants, 300); // we debounce the remote participants to avoid unnecessary rerenders that happen when participant tracks are all subscribed simultaneously
|
|
52
55
|
const localParticipant = useLocalParticipant();
|
|
53
|
-
const isInPiPMode = useIsInPiPMode();
|
|
56
|
+
const isInPiPMode = useIsInPiPMode(disablePictureInPicture);
|
|
54
57
|
const hasScreenShare = useHasOngoingScreenShare();
|
|
55
58
|
const showSpotlightLayout = hasScreenShare || layout === 'spotlight';
|
|
56
59
|
const showFloatingView = !showSpotlightLayout && !isInPiPMode && remoteParticipants.length > 0 && remoteParticipants.length < 3;
|
|
@@ -97,7 +100,9 @@ export const CallContent = ({
|
|
|
97
100
|
const landscapeStyles = {
|
|
98
101
|
flexDirection: landscape ? 'row' : 'column'
|
|
99
102
|
};
|
|
100
|
-
return /*#__PURE__*/React.createElement(
|
|
103
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disablePictureInPicture && /*#__PURE__*/React.createElement(RTCViewPipIOS, {
|
|
104
|
+
includeLocalParticipantVideo: iOSPiPIncludeLocalParticipantVideo
|
|
105
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
101
106
|
style: [styles.container, landscapeStyles, callContent.container]
|
|
102
107
|
}, /*#__PURE__*/React.createElement(View, {
|
|
103
108
|
style: [styles.container, callContent.callParticipantsContainer]
|
|
@@ -118,7 +123,7 @@ export const CallContent = ({
|
|
|
118
123
|
}, participantViewProps))), showSpotlightLayout ? /*#__PURE__*/React.createElement(CallParticipantsSpotlight, callParticipantsSpotlightProps) : /*#__PURE__*/React.createElement(CallParticipantsGrid, callParticipantsGridProps)), !isInPiPMode && CallControls && /*#__PURE__*/React.createElement(CallControls, {
|
|
119
124
|
onHangupCallHandler: onHangupCallHandler,
|
|
120
125
|
landscape: landscape
|
|
121
|
-
}));
|
|
126
|
+
})));
|
|
122
127
|
};
|
|
123
128
|
const styles = StyleSheet.create({
|
|
124
129
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","StyleSheet","View","InCallManager","CallTopView","DefaultCallTopView","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCallStateHooks","Z_INDEX","useDebouncedValue","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","useIsInPiPMode","useAutoEnterPiPEffect","ScreenShareOverlay","DefaultScreenShareOverlay","CallContent","onBackPressed","onParticipantInfoPress","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","ParticipantsInfoBadge","VideoRenderer","layout","landscape","supportedReactions","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","theme","callContent","useCallSettings","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","callSettings","isVideoEnabledInCall","video","enabled","_remoteParticipants","remoteParticipants","localParticipant","isInPiPMode","hasScreenShare","showSpotlightLayout","showFloatingView","length","isRemoteParticipantInFloatingView","start","media","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landscapeStyles","flexDirection","createElement","style","styles","container","callParticipantsContainer","view","topContainer","pointerEvents","_extends","participant","onPressHandler","create","flex","absoluteFillObject","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/CallContent.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,OAAOC,aAAa,MAAM,6BAA6B;AAEvD,SACEC,WAAW,IAAIC,kBAAkB,QAE5B,gBAAgB;AACvB,SACEC,oBAAoB,EAEpBC,yBAAyB,QAEpB,eAAe;AACtB,SAEEC,YAAY,IAAIC,mBAAmB,QAE9B,iBAAiB;AACxB,SAASC,iBAAiB,QAAQ,iCAAiC;AAGnE,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,SACEC,uBAAuB,IAAIC,8BAA8B,QAGpD,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,mBAAmB;AAK5C,SAASC,cAAc,EAAEC,qBAAqB,QAAQ,gBAAgB;AACtE,SACEC,kBAAkB,IAAIC,yBAAyB,QAE1C,kCAAkC;
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","StyleSheet","View","InCallManager","CallTopView","DefaultCallTopView","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCallStateHooks","Z_INDEX","useDebouncedValue","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","useIsInPiPMode","useAutoEnterPiPEffect","ScreenShareOverlay","DefaultScreenShareOverlay","RTCViewPipIOS","CallContent","onBackPressed","onParticipantInfoPress","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","ParticipantsInfoBadge","VideoRenderer","layout","landscape","supportedReactions","iOSPiPIncludeLocalParticipantVideo","disablePictureInPicture","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","theme","callContent","useCallSettings","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","callSettings","isVideoEnabledInCall","video","enabled","_remoteParticipants","remoteParticipants","localParticipant","isInPiPMode","hasScreenShare","showSpotlightLayout","showFloatingView","length","isRemoteParticipantInFloatingView","start","media","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landscapeStyles","flexDirection","createElement","Fragment","includeLocalParticipantVideo","style","styles","container","callParticipantsContainer","view","topContainer","pointerEvents","_extends","participant","onPressHandler","create","flex","absoluteFillObject","zIndex","IN_F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1BN,KAAA,CAAAwE,aAAA,CAAClE,WAAW;IACVkB,aAAa,EAAEA,aAAc;IAC7BC,sBAAsB,EAAEA,sBAAuB;IAC/CQ,qBAAqB,EAAEA;EAAsB,CAC9C,CACF,EACAyB,gBAAgB,IAAI3C,uBAAuB,iBAC1Cf,KAAA,CAAAwE,aAAA,CAACzD,uBAAuB,EAAAmE,QAAA;IACtBC,WAAW,EACTvB,iCAAiC,GAC7BP,kBAAkB,CAAC,CAAC,CAAC,GACrBC,gBACL;IACD8B,cAAc,EAAEpB,mCAAoC;IACpD3B,kBAAkB,EAAEA;EAAmB,GACnC6B,oBAAoB,CACzB,CAEC,CAAC,EACNT,mBAAmB,gBAClBzD,KAAA,CAAAwE,aAAA,CAAC/D,yBAAyB,EAAK4D,8BAAiC,CAAC,gBAEjErE,KAAA,CAAAwE,aAAA,CAAChE,oBAAoB,EAAK2D,yBAA4B,CAEpD,CAAC,EAEN,CAACZ,WAAW,IAAI7C,YAAY,iBAC3BV,KAAA,CAAAwE,aAAA,CAAC9D,YAAY;IACXgB,mBAAmB,EAAEA,mBAAoB;IACzCU,SAAS,EAAEA;EAAU,CACtB,CAEC,CACN,CAAC;AAEP,CAAC;AAED,MAAMwC,MAAM,GAAGzE,UAAU,CAACkF,MAAM,CAAC;EAC/BR,SAAS,EAAE;IAAES,IAAI,EAAE;EAAE,CAAC;EACtBP,IAAI,EAAE;IACJ,GAAG5E,UAAU,CAACoF,kBAAkB;IAChCC,MAAM,EAAE3E,OAAO,CAAC4E;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { CallingState, hasScreenShare, speakerLayoutSortPreset } from '@stream-io/video-client';
|
|
2
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { findNodeHandle, Platform, requireNativeComponent, UIManager } from 'react-native';
|
|
5
|
+
import { useDebouncedValue } from '../../../utils/hooks/useDebouncedValue';
|
|
6
|
+
import { shouldDisableIOSLocalVideoOnBackgroundRef } from '../../../utils/internal/shouldDisableIOSLocalVideoOnBackground';
|
|
7
|
+
const COMPONENT_NAME = 'RTCViewPip';
|
|
8
|
+
// workaround to support hot reloading
|
|
9
|
+
// https://medium.com/tribalscale/beyond-the-framework-using-react-native-with-swift-and-kotlin-cfccf4bb9a03
|
|
10
|
+
let RTCViewPipNative;
|
|
11
|
+
if (__DEV__) {
|
|
12
|
+
/* @ts-ignore */
|
|
13
|
+
const cachedView = global.RTCViewPipNative;
|
|
14
|
+
if (!cachedView) {
|
|
15
|
+
RTCViewPipNative = requireNativeComponent(COMPONENT_NAME);
|
|
16
|
+
/* @ts-ignore */
|
|
17
|
+
global.RTCViewPipNative = RTCViewPipNative;
|
|
18
|
+
} else {
|
|
19
|
+
RTCViewPipNative = cachedView;
|
|
20
|
+
}
|
|
21
|
+
} else {
|
|
22
|
+
RTCViewPipNative = requireNativeComponent(COMPONENT_NAME);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Wrapper for the native view
|
|
26
|
+
* meant to stay private and not exposed */
|
|
27
|
+
const RTCViewPip = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
28
|
+
if (Platform.OS !== 'ios') return null;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
return /*#__PURE__*/React.createElement(RTCViewPipNative, {
|
|
31
|
+
streamURL: props.streamURL,
|
|
32
|
+
ref: ref
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
const RTCViewPipIOS = ({
|
|
36
|
+
includeLocalParticipantVideo
|
|
37
|
+
}) => {
|
|
38
|
+
const call = useCall();
|
|
39
|
+
const {
|
|
40
|
+
useParticipants
|
|
41
|
+
} = useCallStateHooks();
|
|
42
|
+
const _allParticipants = useParticipants({
|
|
43
|
+
sortBy: speakerLayoutSortPreset
|
|
44
|
+
});
|
|
45
|
+
const allParticipants = useDebouncedValue(_allParticipants, 300); // we debounce the participants to avoid unnecessary rerenders that happen when participant tracks are all subscribed simultaneously
|
|
46
|
+
|
|
47
|
+
const [participantInSpotlight] = allParticipants.filter(participant => includeLocalParticipantVideo ? true : !participant.isLocalParticipant);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
shouldDisableIOSLocalVideoOnBackgroundRef.current = !includeLocalParticipantVideo;
|
|
50
|
+
}, [includeLocalParticipantVideo]);
|
|
51
|
+
const [videoStreamToRender, setVideoStreamToRender] = React.useState();
|
|
52
|
+
const nativeRef = React.useRef(null);
|
|
53
|
+
React.useEffect(() => {
|
|
54
|
+
if (!participantInSpotlight) {
|
|
55
|
+
setVideoStreamToRender(undefined);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const {
|
|
59
|
+
videoStream,
|
|
60
|
+
screenShareStream
|
|
61
|
+
} = participantInSpotlight;
|
|
62
|
+
const isScreenSharing = hasScreenShare(participantInSpotlight);
|
|
63
|
+
const _videoStreamToRender = isScreenSharing ? screenShareStream : videoStream;
|
|
64
|
+
setVideoStreamToRender(_videoStreamToRender);
|
|
65
|
+
}, [participantInSpotlight]);
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
let callClosedInvokedOnce = false;
|
|
68
|
+
const onCallClosed = () => {
|
|
69
|
+
if (callClosedInvokedOnce) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
callClosedInvokedOnce = true;
|
|
73
|
+
const node = findNodeHandle(nativeRef.current);
|
|
74
|
+
if (node !== null) {
|
|
75
|
+
UIManager.dispatchViewManagerCommand(node,
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
UIManager.getViewManagerConfig(COMPONENT_NAME).Commands.onCallClosed, []);
|
|
78
|
+
}
|
|
79
|
+
shouldDisableIOSLocalVideoOnBackgroundRef.current = true;
|
|
80
|
+
};
|
|
81
|
+
const unsubFunc = call?.on('call.ended', () => {
|
|
82
|
+
onCallClosed();
|
|
83
|
+
});
|
|
84
|
+
const subscription = call?.state.callingState$.subscribe(state => {
|
|
85
|
+
if (state === CallingState.LEFT || state === CallingState.IDLE) {
|
|
86
|
+
onCallClosed();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
return () => {
|
|
90
|
+
onCallClosed();
|
|
91
|
+
unsubFunc?.();
|
|
92
|
+
subscription?.unsubscribe();
|
|
93
|
+
};
|
|
94
|
+
}, [call]);
|
|
95
|
+
return /*#__PURE__*/React.createElement(RTCViewPip, {
|
|
96
|
+
streamURL: videoStreamToRender?.toURL(),
|
|
97
|
+
ref: nativeRef
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
export default RTCViewPipIOS;
|
|
101
|
+
//# sourceMappingURL=RTCViewPipIOS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CallingState","hasScreenShare","speakerLayoutSortPreset","useCall","useCallStateHooks","React","useEffect","findNodeHandle","Platform","requireNativeComponent","UIManager","useDebouncedValue","shouldDisableIOSLocalVideoOnBackgroundRef","COMPONENT_NAME","RTCViewPipNative","__DEV__","cachedView","global","RTCViewPip","forwardRef","props","ref","OS","createElement","streamURL","RTCViewPipIOS","includeLocalParticipantVideo","call","useParticipants","_allParticipants","sortBy","allParticipants","participantInSpotlight","filter","participant","isLocalParticipant","current","videoStreamToRender","setVideoStreamToRender","useState","nativeRef","useRef","undefined","videoStream","screenShareStream","isScreenSharing","_videoStreamToRender","callClosedInvokedOnce","onCallClosed","node","dispatchViewManagerCommand","getViewManagerConfig","Commands","unsubFunc","on","subscription","state","callingState$","subscribe","LEFT","IDLE","unsubscribe","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,QAAQ,OAAO;AACxC,SACEC,cAAc,EAEdC,QAAQ,EACRC,sBAAsB,EACtBC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EAAE,MAAM;MAC7CN,YAAY,CAAC,CAAC;IAChB,CAAC,CAAC;IACF,MAAMO,YAAY,GAAG5B,IAAI,EAAE6B,KAAK,CAACC,aAAa,CAACC,SAAS,CAAEF,KAAK,IAAK;MAClE,IAAIA,KAAK,KAAKxD,YAAY,CAAC2D,IAAI,IAAIH,KAAK,KAAKxD,YAAY,CAAC4D,IAAI,EAAE;QAC9DZ,YAAY,CAAC,CAAC;MAChB;IACF,CAAC,CAAC;IACF,OAAO,MAAM;MACXA,YAAY,CAAC,CAAC;MACdK,SAAS,GAAG,CAAC;MACbE,YAAY,EAAEM,WAAW,CAAC,CAAC;IAC7B,CAAC;EACH,CAAC,EAAE,CAAClC,IAAI,CAAC,CAAC;EAEV,oBACEtB,KAAA,CAAAkB,aAAA,CAACL,UAAU;IAACM,SAAS,EAAEa,mBAAmB,EAAEyB,KAAK,CAAC,CAAE;IAACzC,GAAG,EAAEmB;EAAU,CAAE,CAAC;AAE3E,CAAC;AAED,eAAef,aAAa","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/index.ts"],"mappings":"AAAA,cAAc,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/index.ts"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,iBAAiB","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ import { useDebouncedValue } from '../../../utils/hooks/useDebouncedValue';
|
|
|
6
6
|
import { CallParticipantsList as DefaultCallParticipantsList } from '../CallParticipantsList/CallParticipantsList';
|
|
7
7
|
import { ComponentTestIds } from '../../../constants/TestIds';
|
|
8
8
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
9
|
-
import { useIsInPiPMode } from '../../../hooks';
|
|
9
|
+
import { useIsInPiPMode } from '../../../hooks/useIsInPiPMode';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Props for the CallParticipantsGrid component.
|
|
@@ -25,7 +25,8 @@ export const CallParticipantsGrid = ({
|
|
|
25
25
|
VideoRenderer,
|
|
26
26
|
showLocalParticipant = false,
|
|
27
27
|
supportedReactions,
|
|
28
|
-
landscape
|
|
28
|
+
landscape,
|
|
29
|
+
disablePictureInPicture
|
|
29
30
|
}) => {
|
|
30
31
|
const {
|
|
31
32
|
theme: {
|
|
@@ -47,7 +48,7 @@ export const CallParticipantsGrid = ({
|
|
|
47
48
|
const landscapeStyles = {
|
|
48
49
|
flexDirection: landscape ? 'row' : 'column'
|
|
49
50
|
};
|
|
50
|
-
const isInPiPMode = useIsInPiPMode();
|
|
51
|
+
const isInPiPMode = useIsInPiPMode(disablePictureInPicture);
|
|
51
52
|
const showFloatingView = !isInPiPMode && remoteParticipants.length > 0 && remoteParticipants.length < 3;
|
|
52
53
|
let participants = showFloatingView ? showLocalParticipant && localParticipant ? [localParticipant] : remoteParticipants : allParticipants;
|
|
53
54
|
if (isInPiPMode) {
|
|
@@ -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","_remoteParticipants","localParticipant","_allParticipants","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","dark_gray","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
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","disablePictureInPicture","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","_remoteParticipants","localParticipant","_allParticipants","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","dark_gray","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;;AAG9D;AACA;AACA;;AAkBA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCL,oBAAoB,GAAGC,2BAA2B;EAClDK,gBAAgB;EAChBC,kCAAkC;EAClCC,mBAAmB;EACnBC,wBAAwB;EACxBC,eAAe;EACfC,aAAa;EACbC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ACxBE;EACF,CAAC;EAED,oBACEhB,KAAA,CAAAuC,aAAA,CAACrC,IAAI;IACHsC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBV,eAAe,EACf;MAAEW,eAAe,EAAErB,MAAM,CAACsB;IAAU,CAAC,EACrCrB,oBAAoB,CAACmB,SAAS,CAC9B;IACFG,MAAM,EAAEtC,gBAAgB,CAACuC;EAAuB,GAE/CzC,oBAAoB,iBACnBL,KAAA,CAAAuC,aAAA,CAAClC,oBAAoB,EAAA0C,QAAA;IACnBV,YAAY,EAAEA,YAAa;IAC3BnB,kBAAkB,EAAEA,kBAAmB;IACvCC,SAAS,EAAEA;EAAU,GACjBmB,oBAAoB,CACzB,CAEC,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGxC,UAAU,CAAC+C,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ import { ComponentTestIds } from '../../../constants/TestIds';
|
|
|
8
8
|
import { CallParticipantsList as DefaultCallParticipantsList } from '../CallParticipantsList/CallParticipantsList';
|
|
9
9
|
import { ParticipantView as DefaultParticipantView } from '../../Participant';
|
|
10
10
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
11
|
-
import { useIsInPiPMode } from '../../../hooks';
|
|
11
|
+
import { useIsInPiPMode } from '../../../hooks/useIsInPiPMode';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Props for the CallParticipantsSpotlight component.
|
|
@@ -28,7 +28,8 @@ export const CallParticipantsSpotlight = ({
|
|
|
28
28
|
ScreenShareOverlay,
|
|
29
29
|
VideoRenderer,
|
|
30
30
|
supportedReactions,
|
|
31
|
-
landscape
|
|
31
|
+
landscape,
|
|
32
|
+
disablePictureInPicture
|
|
32
33
|
}) => {
|
|
33
34
|
const {
|
|
34
35
|
theme: {
|
|
@@ -46,7 +47,7 @@ export const CallParticipantsSpotlight = ({
|
|
|
46
47
|
const [participantInSpotlight, ...otherParticipants] = allParticipants;
|
|
47
48
|
const isScreenShareOnSpotlight = participantInSpotlight && hasScreenShare(participantInSpotlight);
|
|
48
49
|
const isUserAloneInCall = _allParticipants?.length === 1;
|
|
49
|
-
const isInPiP = useIsInPiPMode();
|
|
50
|
+
const isInPiP = useIsInPiPMode(disablePictureInPicture);
|
|
50
51
|
const participantViewProps = {
|
|
51
52
|
ParticipantLabel,
|
|
52
53
|
ParticipantNetworkQualityIndicator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","hasScreenShare","speakerLayoutSortPreset","useCallStateHooks","StyleSheet","View","useDebouncedValue","ComponentTestIds","CallParticipantsList","DefaultCallParticipantsList","ParticipantView","DefaultParticipantView","useTheme","useIsInPiPMode","CallParticipantsSpotlight","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ScreenShareOverlay","VideoRenderer","supportedReactions","landscape","theme","colors","callParticipantsSpotlight","useParticipants","_allParticipants","sortBy","allParticipants","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","length","isInPiP","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","createElement","testID","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","isLocalParticipant","_extends","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,cAAc,EACdC,uBAAuB,QAClB,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SACEC,eAAe,IAAIC,sBAAsB,QAEpC,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,gCAAgC;AAEzD,SAASC,cAAc,QAAQ
|
|
1
|
+
{"version":3,"names":["React","hasScreenShare","speakerLayoutSortPreset","useCallStateHooks","StyleSheet","View","useDebouncedValue","ComponentTestIds","CallParticipantsList","DefaultCallParticipantsList","ParticipantView","DefaultParticipantView","useTheme","useIsInPiPMode","CallParticipantsSpotlight","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ScreenShareOverlay","VideoRenderer","supportedReactions","landscape","disablePictureInPicture","theme","colors","callParticipantsSpotlight","useParticipants","_allParticipants","sortBy","allParticipants","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","length","isInPiP","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","createElement","testID","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","isLocalParticipant","_extends","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,cAAc,EACdC,uBAAuB,QAClB,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SACEC,eAAe,IAAIC,sBAAsB,QAEpC,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,gCA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CAACvC,SAAS,GAAG,CAAC,GAAG,CAAE;IACpCA,SAAS,EAAEA;EAAU,GACjBgB,yBAAyB,CAC9B,CAEC,CAEJ,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAG3C,UAAU,CAAC0D,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,IAAI,EAAE;EACR,CAAC;EACDT,4BAA4B,EAAE;IAC5BS,IAAI,EAAE;EACR,CAAC;EACDR,kBAAkB,EAAE;IAClBQ,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,EAAE;IAChBvB,gBAAgB,EAAE;EACpB,CAAC;EACDgB,6BAA6B,EAAE;IAC7BK,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { NativeModules, Platform } from 'react-native';
|
|
3
|
-
export function useAutoEnterPiPEffect() {
|
|
3
|
+
export function useAutoEnterPiPEffect(disablePictureInPicture) {
|
|
4
4
|
useEffect(() => {
|
|
5
5
|
if (Platform.OS !== 'android') {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
8
|
-
NativeModules.StreamVideoReactNative.canAutoEnterPipMode(
|
|
8
|
+
NativeModules.StreamVideoReactNative.canAutoEnterPipMode(!disablePictureInPicture);
|
|
9
9
|
return () => {
|
|
10
10
|
NativeModules.StreamVideoReactNative.canAutoEnterPipMode(false);
|
|
11
11
|
};
|
|
12
|
-
}, []);
|
|
12
|
+
}, [disablePictureInPicture]);
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=useAutoEnterPiPEffect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","NativeModules","Platform","useAutoEnterPiPEffect","OS","StreamVideoReactNative","canAutoEnterPipMode"],"sourceRoot":"../../../src","sources":["hooks/useAutoEnterPiPEffect.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAO,SAASC,qBAAqBA,
|
|
1
|
+
{"version":3,"names":["useEffect","NativeModules","Platform","useAutoEnterPiPEffect","disablePictureInPicture","OS","StreamVideoReactNative","canAutoEnterPipMode"],"sourceRoot":"../../../src","sources":["hooks/useAutoEnterPiPEffect.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAO,SAASC,qBAAqBA,CACnCC,uBAA4C,EAC5C;EACAJ,SAAS,CAAC,MAAM;IACd,IAAIE,QAAQ,CAACG,EAAE,KAAK,SAAS,EAAE;MAC7B;IACF;IAEAJ,aAAa,CAACK,sBAAsB,CAACC,mBAAmB,CACtD,CAACH,uBACH,CAAC;IAED,OAAO,MAAM;MACXH,aAAa,CAACK,sBAAsB,CAACC,mBAAmB,CAAC,KAAK,CAAC;IACjE,CAAC;EACH,CAAC,EAAE,CAACH,uBAAuB,CAAC,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -2,8 +2,8 @@ import { useEffect, useState } from 'react';
|
|
|
2
2
|
import { AppState, NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
|
3
3
|
const PIP_CHANGE_EVENT = 'StreamVideoReactNative_PIP_CHANGE_EVENT';
|
|
4
4
|
const isAndroid8OrAbove = Platform.OS === 'android' && Platform.Version >= 26;
|
|
5
|
-
export function useIsInPiPMode() {
|
|
6
|
-
const [isInPiPMode, setIsInPiPMode] = useState(isAndroid8OrAbove && AppState.currentState === 'background');
|
|
5
|
+
export function useIsInPiPMode(disablePictureInPicture) {
|
|
6
|
+
const [isInPiPMode, setIsInPiPMode] = useState(disablePictureInPicture && isAndroid8OrAbove && AppState.currentState === 'background');
|
|
7
7
|
useEffect(() => {
|
|
8
8
|
if (!isAndroid8OrAbove) {
|
|
9
9
|
return;
|
|
@@ -16,7 +16,7 @@ export function useIsInPiPMode() {
|
|
|
16
16
|
};
|
|
17
17
|
const subscriptionAppState = AppState.addEventListener('change', nextAppState => {
|
|
18
18
|
if (nextAppState === 'background') {
|
|
19
|
-
setIsInPiPMode(
|
|
19
|
+
setIsInPiPMode(!disablePictureInPicture); // set with an assumption that its enabled so that UI disabling happens faster
|
|
20
20
|
// if PiP was not enabled anyway, then in the next code we ll set it to false and UI wont be shown anyway
|
|
21
21
|
}
|
|
22
22
|
setFromNativeMethod();
|
|
@@ -26,7 +26,7 @@ export function useIsInPiPMode() {
|
|
|
26
26
|
subscriptionPiPChange.remove();
|
|
27
27
|
subscriptionAppState.remove();
|
|
28
28
|
};
|
|
29
|
-
}, []);
|
|
29
|
+
}, [disablePictureInPicture]);
|
|
30
30
|
return isInPiPMode;
|
|
31
31
|
}
|
|
32
32
|
//# sourceMappingURL=useIsInPiPMode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","AppState","NativeEventEmitter","NativeModules","Platform","PIP_CHANGE_EVENT","isAndroid8OrAbove","OS","Version","useIsInPiPMode","isInPiPMode","setIsInPiPMode","currentState","eventEmitter","StreamVideoReactNative","subscriptionPiPChange","addListener","setFromNativeMethod","isInPiPNativeMethod","subscriptionAppState","addEventListener","nextAppState","remove"],"sourceRoot":"../../../src","sources":["hooks/useIsInPiPMode.tsx"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SACEC,QAAQ,EACRC,kBAAkB,EAClBC,aAAa,EACbC,QAAQ,QACH,cAAc;AAErB,MAAMC,gBAAgB,GAAG,yCAAyC;AAElE,MAAMC,iBAAiB,GAAGF,QAAQ,CAACG,EAAE,KAAK,SAAS,IAAIH,QAAQ,CAACI,OAAO,IAAI,EAAE;AAE7E,OAAO,SAASC,cAAcA,
|
|
1
|
+
{"version":3,"names":["useEffect","useState","AppState","NativeEventEmitter","NativeModules","Platform","PIP_CHANGE_EVENT","isAndroid8OrAbove","OS","Version","useIsInPiPMode","disablePictureInPicture","isInPiPMode","setIsInPiPMode","currentState","eventEmitter","StreamVideoReactNative","subscriptionPiPChange","addListener","setFromNativeMethod","isInPiPNativeMethod","subscriptionAppState","addEventListener","nextAppState","remove"],"sourceRoot":"../../../src","sources":["hooks/useIsInPiPMode.tsx"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SACEC,QAAQ,EACRC,kBAAkB,EAClBC,aAAa,EACbC,QAAQ,QACH,cAAc;AAErB,MAAMC,gBAAgB,GAAG,yCAAyC;AAElE,MAAMC,iBAAiB,GAAGF,QAAQ,CAACG,EAAE,KAAK,SAAS,IAAIH,QAAQ,CAACI,OAAO,IAAI,EAAE;AAE7E,OAAO,SAASC,cAAcA,CAACC,uBAA4C,EAAE;EAC3E,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGZ,QAAQ,CAC5CU,uBAAuB,IACrBJ,iBAAiB,IACjBL,QAAQ,CAACY,YAAY,KAAK,YAC9B,CAAC;EAEDd,SAAS,CAAC,MAAM;IACd,IAAI,CAACO,iBAAiB,EAAE;MACtB;IACF;IAEA,MAAMQ,YAAY,GAAG,IAAIZ,kBAAkB,CACzCC,aAAa,CAACY,sBAChB,CAAC;IAED,MAAMC,qBAAqB,GAAGF,YAAY,CAACG,WAAW,CACpDZ,gBAAgB,EAChBO,cACF,CAAC;IAED,MAAMM,mBAAmB,GAAG,MAAAA,CAAA,KAAY;MACtC,MAAMC,mBAA+C,GACnD,MAAMhB,aAAa,EAAEY,sBAAsB,EAAEJ,WAAW,CAAC,CAAC;MAC5DC,cAAc,CAAC,CAAC,CAACO,mBAAmB,CAAC;IACvC,CAAC;IAED,MAAMC,oBAAoB,GAAGnB,QAAQ,CAACoB,gBAAgB,CACpD,QAAQ,EACPC,YAAY,IAAK;MAChB,IAAIA,YAAY,KAAK,YAAY,EAAE;QACjCV,cAAc,CAAC,CAACF,uBAAuB,CAAC,CAAC,CAAC;QAC1C;MACF;MACAQ,mBAAmB,CAAC,CAAC;IACvB,CACF,CAAC;IAEDA,mBAAmB,CAAC,CAAC;IAErB,OAAO,MAAM;MACXF,qBAAqB,CAACO,MAAM,CAAC,CAAC;MAC9BH,oBAAoB,CAACG,MAAM,CAAC,CAAC;IAC/B,CAAC;EACH,CAAC,EAAE,CAACb,uBAAuB,CAAC,CAAC;EAE7B,OAAOC,WAAW;AACpB","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import { useIosCallkeepWithCallingStateEffect } from '../hooks/push/useIosCallke
|
|
|
4
4
|
import { canAddPushWSSubscriptionsRef, clearPushWSEventSubscriptions } from '../utils/push/utils';
|
|
5
5
|
import { useAndroidKeepCallAliveEffect } from '../hooks/useAndroidKeepCallAliveEffect';
|
|
6
6
|
import { AppState, NativeModules, Platform } from 'react-native';
|
|
7
|
+
import { shouldDisableIOSLocalVideoOnBackgroundRef } from '../utils/internal/shouldDisableIOSLocalVideoOnBackground';
|
|
7
8
|
/**
|
|
8
9
|
* StreamCall is a wrapper component that orchestrates the call life cycle logic and
|
|
9
10
|
* provides the call object to the children components.
|
|
@@ -51,7 +52,9 @@ const AppStateListener = () => {
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
} else {
|
|
54
|
-
|
|
55
|
+
if (shouldDisableIOSLocalVideoOnBackgroundRef.current) {
|
|
56
|
+
call?.camera?.disable();
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
appState.current = nextAppState;
|
|
57
60
|
}
|
|
@@ -64,7 +67,7 @@ const AppStateListener = () => {
|
|
|
64
67
|
};
|
|
65
68
|
|
|
66
69
|
/**
|
|
67
|
-
* This is a renderless component
|
|
70
|
+
* This is a renderless component to keep the call alive on Android device using useAndroidKeepCallAliveEffect.
|
|
68
71
|
* useAndroidKeepCallAliveEffect needs to called inside a child of StreamCallProvider.
|
|
69
72
|
*/
|
|
70
73
|
const AndroidKeepCallAlive = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StreamCallProvider","useCall","React","useEffect","useRef","useIosCallkeepWithCallingStateEffect","canAddPushWSSubscriptionsRef","clearPushWSEventSubscriptions","useAndroidKeepCallAliveEffect","AppState","NativeModules","Platform","StreamCall","call","children","createElement","AppStateListener","AndroidKeepCallAlive","IosInformCallkeepCallEnd","ClearPushWSSubscriptions","appState","currentState","subscription","addEventListener","nextAppState","current","match","camera","state","status","OS","disable","then","enable","resume","StreamVideoReactNative","isInPiPMode","isInPiP","remove"],"sourceRoot":"../../../src","sources":["providers/StreamCall.tsx"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,OAAO,QAAQ,iCAAiC;AAC7E,OAAOC,KAAK,IAAuBC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEnE,SAASC,oCAAoC,QAAQ,oDAAoD;AACzG,SACEC,4BAA4B,EAC5BC,6BAA6B,QACxB,qBAAqB;AAC5B,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["StreamCallProvider","useCall","React","useEffect","useRef","useIosCallkeepWithCallingStateEffect","canAddPushWSSubscriptionsRef","clearPushWSEventSubscriptions","useAndroidKeepCallAliveEffect","AppState","NativeModules","Platform","shouldDisableIOSLocalVideoOnBackgroundRef","StreamCall","call","children","createElement","AppStateListener","AndroidKeepCallAlive","IosInformCallkeepCallEnd","ClearPushWSSubscriptions","appState","currentState","subscription","addEventListener","nextAppState","current","match","camera","state","status","OS","disable","then","enable","resume","StreamVideoReactNative","isInPiPMode","isInPiP","remove"],"sourceRoot":"../../../src","sources":["providers/StreamCall.tsx"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,OAAO,QAAQ,iCAAiC;AAC7E,OAAOC,KAAK,IAAuBC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEnE,SAASC,oCAAoC,QAAQ,oDAAoD;AACzG,SACEC,4BAA4B,EAC5BC,6BAA6B,QACxB,qBAAqB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4B,CAACoB,OAAO,GAAG,IAAI;IAC7C,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["shouldDisableIOSLocalVideoOnBackgroundRef","current"],"sourceRoot":"../../../../src","sources":["utils/internal/shouldDisableIOSLocalVideoOnBackground.ts"],"mappings":"AAAA,OAAO,MAAMA,yCAAyC,GAAG;EACvDC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,OAAO","ignoreList":[]}
|
|
@@ -40,7 +40,12 @@ export type CallContentProps = Pick<HangUpCallButtonProps, 'onHangupCallHandler'
|
|
|
40
40
|
*/
|
|
41
41
|
supportedReactions?: StreamReactionType[];
|
|
42
42
|
landscape?: boolean;
|
|
43
|
+
iOSPiPIncludeLocalParticipantVideo?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If true, disables the Picture-in-Picture mode for iOS and Android
|
|
46
|
+
*/
|
|
47
|
+
disablePictureInPicture?: boolean;
|
|
43
48
|
};
|
|
44
|
-
export declare const CallContent: ({ onBackPressed, onParticipantInfoPress, onHangupCallHandler, CallParticipantsList, CallTopView, CallControls, FloatingParticipantView, ScreenShareOverlay, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ParticipantsInfoBadge, VideoRenderer, layout, landscape, supportedReactions, }: CallContentProps) => React.JSX.Element;
|
|
49
|
+
export declare const CallContent: ({ onBackPressed, onParticipantInfoPress, onHangupCallHandler, CallParticipantsList, CallTopView, CallControls, FloatingParticipantView, ScreenShareOverlay, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ParticipantsInfoBadge, VideoRenderer, layout, landscape, supportedReactions, iOSPiPIncludeLocalParticipantVideo, disablePictureInPicture, }: CallContentProps) => React.JSX.Element;
|
|
45
50
|
export {};
|
|
46
51
|
//# sourceMappingURL=CallContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/CallContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAEL,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,kCAAkC,EAClC,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"CallContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/CallContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAEL,4BAA4B,EAC5B,6BAA6B,EAC9B,M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;AAEJ,eAAO,MAAM,WAAW,kaAqBrB,gBAAgB,sBAwIlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTCViewPipIOS.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/RTCViewPipIOS.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAkDzC,KAAK,KAAK,GAAG;IACX,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,QAAA,MAAM,aAAa,qCAAsC,KAAK,sBA0E7D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { ParticipantViewComponentProps } from '../../Participant';
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the CallParticipantsGrid component.
|
|
7
7
|
*/
|
|
8
|
-
export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList'> & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
|
|
8
|
+
export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList' | 'disablePictureInPicture'> & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
|
|
9
9
|
/**
|
|
10
10
|
* Boolean to decide if local participant will be visible in the grid when there is 1:1 call.
|
|
11
11
|
*/
|
|
@@ -19,5 +19,5 @@ export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<Cal
|
|
|
19
19
|
/**
|
|
20
20
|
* Component used to display the list of participants in a grid mode.
|
|
21
21
|
*/
|
|
22
|
-
export declare const CallParticipantsGrid: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, showLocalParticipant, supportedReactions, landscape, }: CallParticipantsGridProps) => React.JSX.Element;
|
|
22
|
+
export declare const CallParticipantsGrid: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, showLocalParticipant, supportedReactions, landscape, disablePictureInPicture, }: CallParticipantsGridProps) => React.JSX.Element;
|
|
23
23
|
//# sourceMappingURL=CallParticipantsGrid.d.ts.map
|
|
@@ -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;AAIlE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,GACnE,IAAI,
|
|
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;AAIlE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,GACnE,IAAI,CACF,gBAAgB,EAChB,oBAAoB,GAAG,sBAAsB,GAAG,yBAAyB,CAC1E,GACD,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,iPAY9B,yBAAyB,sBAmE3B,CAAC"}
|