@stream-io/video-react-native-sdk 2.0.0-beta.0 → 2.0.0-beta.2
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 +95 -0
- package/README.md +15 -0
- package/android/build.gradle +7 -1
- package/android/src/main/java/com/streamvideo/reactnative/audio/AudioDeviceManager.kt +110 -58
- package/android/src/main/java/com/streamvideo/reactnative/audio/CommunicationModeKeepAlive.kt +247 -0
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +16 -5
- package/dist/commonjs/components/Call/CallContent/CallContent.js +1 -1
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +78 -7
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -0
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +3 -2
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +4 -3
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +10 -10
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js +3 -3
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js +3 -3
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +3 -2
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +7 -14
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +3 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js +4 -3
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +3 -3
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +9 -4
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +4 -3
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +27 -4
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +4 -3
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/i18n/Streami18n.js +77 -0
- package/dist/commonjs/i18n/Streami18n.js.map +1 -0
- package/dist/commonjs/i18n/TranslationContext.js +52 -0
- package/dist/commonjs/i18n/TranslationContext.js.map +1 -0
- package/dist/commonjs/i18n/index.js +85 -0
- package/dist/commonjs/i18n/index.js.map +1 -0
- package/dist/commonjs/i18n/keys.js +2 -0
- package/dist/commonjs/i18n/keys.js.map +1 -0
- package/dist/commonjs/i18n/runtimeDefaults.js +24 -0
- package/dist/commonjs/i18n/runtimeDefaults.js.map +1 -0
- package/dist/commonjs/i18n/types.js +6 -0
- package/dist/commonjs/i18n/types.js.map +1 -0
- package/dist/commonjs/i18n/useStreami18n.js +61 -0
- package/dist/commonjs/i18n/useStreami18n.js.map +1 -0
- package/dist/commonjs/index.js +18 -5
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/modules/encryption/EncryptionManager.js +305 -0
- package/dist/commonjs/modules/encryption/EncryptionManager.js.map +1 -0
- package/dist/commonjs/modules/encryption/eventMapping.js +143 -0
- package/dist/commonjs/modules/encryption/eventMapping.js.map +1 -0
- package/dist/commonjs/modules/encryption/index.js +13 -0
- package/dist/commonjs/modules/encryption/index.js.map +1 -0
- package/dist/commonjs/modules/encryption/parity.js +6 -0
- package/dist/commonjs/modules/encryption/parity.js.map +1 -0
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +6 -2
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +28 -12
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +46 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/callingx.js +29 -4
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/commonjs/utils/internal/iosPipTrack.js +41 -0
- package/dist/commonjs/utils/internal/iosPipTrack.js.map +1 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +6 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/internal/ringingCallLifecycle.js +142 -0
- package/dist/commonjs/utils/internal/ringingCallLifecycle.js.map +1 -0
- package/dist/commonjs/utils/push/internal/utils.js +4 -0
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +80 -9
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -0
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -2
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +4 -3
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +10 -10
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js +2 -2
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js +2 -2
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +3 -2
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +7 -14
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +3 -2
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js +4 -3
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +9 -4
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +4 -3
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +28 -5
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +4 -3
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/i18n/Streami18n.js +73 -0
- package/dist/module/i18n/Streami18n.js.map +1 -0
- package/dist/module/i18n/TranslationContext.js +48 -0
- package/dist/module/i18n/TranslationContext.js.map +1 -0
- package/dist/module/i18n/index.js +20 -0
- package/dist/module/i18n/index.js.map +1 -0
- package/dist/module/i18n/keys.js +2 -0
- package/dist/module/i18n/keys.js.map +1 -0
- package/dist/module/i18n/runtimeDefaults.js +20 -0
- package/dist/module/i18n/runtimeDefaults.js.map +1 -0
- package/dist/module/i18n/types.js +4 -0
- package/dist/module/i18n/types.js.map +1 -0
- package/dist/module/i18n/useStreami18n.js +56 -0
- package/dist/module/i18n/useStreami18n.js.map +1 -0
- package/dist/module/index.js +6 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/modules/encryption/EncryptionManager.js +301 -0
- package/dist/module/modules/encryption/EncryptionManager.js.map +1 -0
- package/dist/module/modules/encryption/eventMapping.js +135 -0
- package/dist/module/modules/encryption/eventMapping.js.map +1 -0
- package/dist/module/modules/encryption/index.js +4 -0
- package/dist/module/modules/encryption/index.js.map +1 -0
- package/dist/module/modules/encryption/parity.js +4 -0
- package/dist/module/modules/encryption/parity.js.map +1 -0
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +6 -2
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +29 -14
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +46 -0
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/callingx/callingx.js +29 -4
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/module/utils/internal/iosPipTrack.js +35 -0
- package/dist/module/utils/internal/iosPipTrack.js.map +1 -0
- package/dist/module/utils/internal/registerSDKGlobals.js +6 -0
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/internal/ringingCallLifecycle.js +134 -0
- package/dist/module/utils/internal/ringingCallLifecycle.js.map +1 -0
- package/dist/module/utils/push/internal/utils.js +4 -0
- package/dist/module/utils/push/internal/utils.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/CallContent/RTCViewPipNative.d.ts +12 -0
- package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamEnded.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts +11 -0
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -1
- package/dist/typescript/i18n/Streami18n.d.ts +61 -0
- package/dist/typescript/i18n/Streami18n.d.ts.map +1 -0
- package/dist/typescript/i18n/TranslationContext.d.ts +31 -0
- package/dist/typescript/i18n/TranslationContext.d.ts.map +1 -0
- package/dist/typescript/i18n/index.d.ts +17 -0
- package/dist/typescript/i18n/index.d.ts.map +1 -0
- package/dist/typescript/i18n/keys.d.ts +38 -0
- package/dist/typescript/i18n/keys.d.ts.map +1 -0
- package/dist/typescript/i18n/runtimeDefaults.d.ts +18 -0
- package/dist/typescript/i18n/runtimeDefaults.d.ts.map +1 -0
- package/dist/typescript/i18n/types.d.ts +46 -0
- package/dist/typescript/i18n/types.d.ts.map +1 -0
- package/dist/typescript/i18n/useStreami18n.d.ts +20 -0
- package/dist/typescript/i18n/useStreami18n.d.ts.map +1 -0
- package/dist/typescript/index.d.ts +2 -1
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/modules/encryption/EncryptionManager.d.ts +190 -0
- package/dist/typescript/modules/encryption/EncryptionManager.d.ts.map +1 -0
- package/dist/typescript/modules/encryption/eventMapping.d.ts +38 -0
- package/dist/typescript/modules/encryption/eventMapping.d.ts.map +1 -0
- package/dist/typescript/modules/encryption/index.d.ts +2 -0
- package/dist/typescript/modules/encryption/index.d.ts.map +1 -0
- package/dist/typescript/modules/encryption/parity.d.ts +55 -0
- package/dist/typescript/modules/encryption/parity.d.ts.map +1 -0
- package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
- package/dist/typescript/providers/StreamVideo.d.ts +17 -4
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +33 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +67 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
- package/dist/typescript/utils/internal/iosPipTrack.d.ts +9 -0
- package/dist/typescript/utils/internal/iosPipTrack.d.ts.map +1 -0
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/internal/ringingCallLifecycle.d.ts +27 -0
- package/dist/typescript/utils/internal/ringingCallLifecycle.d.ts.map +1 -0
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/ios/RTCViewPip.swift +33 -8
- package/ios/RTCViewPipManager.mm +1 -0
- package/package.json +17 -13
- package/src/components/Call/CallContent/CallContent.tsx +1 -1
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +92 -10
- package/src/components/Call/CallContent/RTCViewPipNative.tsx +13 -0
- package/src/components/Call/Lobby/JoinCallButton.tsx +5 -2
- package/src/components/Call/Lobby/Lobby.tsx +6 -3
- package/src/components/Call/Lobby/LobbyFooter.tsx +15 -10
- package/src/components/Call/RingingCallContent/CallLeftIndicator.tsx +2 -2
- package/src/components/Call/RingingCallContent/CallPreparingIndicator.tsx +2 -2
- package/src/components/Call/RingingCallContent/IncomingCall.tsx +2 -2
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +7 -14
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -8
- package/src/components/Livestream/LivestreamPlayer/LivestreamEnded.tsx +11 -3
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +2 -2
- package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +23 -10
- package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +15 -6
- package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +58 -5
- package/src/components/utility/ScreenShareOverlay.tsx +7 -3
- package/src/i18n/Streami18n.ts +71 -0
- package/src/i18n/TranslationContext.tsx +55 -0
- package/src/i18n/index.ts +22 -0
- package/src/i18n/keys.ts +42 -0
- package/src/i18n/runtimeDefaults.ts +17 -0
- package/src/i18n/types.ts +78 -0
- package/src/i18n/useStreami18n.ts +66 -0
- package/src/index.ts +6 -1
- package/src/modules/call-manager/native-module.d.ts +14 -0
- package/src/modules/encryption/EncryptionManager.ts +360 -0
- package/src/modules/encryption/eventMapping.ts +151 -0
- package/src/modules/encryption/index.ts +1 -0
- package/src/modules/encryption/parity.ts +83 -0
- package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +8 -4
- package/src/providers/StreamVideo.tsx +39 -28
- package/src/utils/StreamVideoRN/index.ts +51 -1
- package/src/utils/StreamVideoRN/types.ts +68 -0
- package/src/utils/internal/callingx/callingx.ts +37 -2
- package/src/utils/internal/iosPipTrack.ts +39 -0
- package/src/utils/internal/registerSDKGlobals.ts +2 -0
- package/src/utils/internal/ringingCallLifecycle.ts +148 -0
- package/src/utils/push/internal/utils.ts +4 -0
- package/src/version.ts +1 -1
- package/dist/commonjs/translations/en.json +0 -32
- package/dist/commonjs/translations/index.js +0 -12
- package/dist/commonjs/translations/index.js.map +0 -1
- package/dist/module/translations/en.json +0 -32
- package/dist/module/translations/index.js +0 -7
- package/dist/module/translations/index.js.map +0 -1
- package/dist/typescript/translations/index.d.ts +0 -35
- package/dist/typescript/translations/index.d.ts.map +0 -1
- package/src/translations/en.json +0 -32
- package/src/translations/index.ts +0 -3
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StreamVideoRN = void 0;
|
|
7
|
+
var _ringingCallLifecycle = require("../internal/ringingCallLifecycle");
|
|
7
8
|
var _pushLogoutCallback = _interopRequireDefault(require("../internal/pushLogoutCallback"));
|
|
8
9
|
var _setupIosVoipPushEvents = require("../push/setupIosVoipPushEvents");
|
|
9
10
|
var _setupAndroidPushEvents = require("../push/setupAndroidPushEvents");
|
|
@@ -111,6 +112,28 @@ class StreamVideoRN {
|
|
|
111
112
|
(0, _setupIosVoipPushEvents.setupIosVoipPushEvents)(pushConfig);
|
|
112
113
|
(0, _setupAndroidPushEvents.setupAndroidPushEvents)(pushConfig);
|
|
113
114
|
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Register hooks that run around a ringing call's join, for every ringing path:
|
|
118
|
+
* accepted from the CallKit/Telecom UI, accepted inside the app, and outgoing.
|
|
119
|
+
*
|
|
120
|
+
* Call this at your application's entry point, alongside
|
|
121
|
+
* {@link StreamVideoRN.setPushConfig} and **outside** the React tree. A call
|
|
122
|
+
* accepted from a push notification can be created and joined before any
|
|
123
|
+
* component mounts, so hooks registered from inside React would be missed on
|
|
124
|
+
* exactly the path that most needs them.
|
|
125
|
+
*
|
|
126
|
+
* Calling it again replaces the previously registered hooks.
|
|
127
|
+
*
|
|
128
|
+
* @example // in index.js
|
|
129
|
+
* StreamVideoRN.setRingingCallLifecycleHooks({
|
|
130
|
+
* onBeforeCallJoin: (call) => attachE2EEIfConfigured(call),
|
|
131
|
+
* onAfterCallLeave: (call) => disposeE2EEManager(call),
|
|
132
|
+
* });
|
|
133
|
+
*/
|
|
134
|
+
static setRingingCallLifecycleHooks = hooks => {
|
|
135
|
+
(0, _ringingCallLifecycle.setRingingCallLifecycleHooks)(hooks);
|
|
136
|
+
};
|
|
114
137
|
static getConfig() {
|
|
115
138
|
return this.config;
|
|
116
139
|
}
|
|
@@ -131,6 +154,29 @@ class StreamVideoRN {
|
|
|
131
154
|
_pushLogoutCallback.default.current = [];
|
|
132
155
|
}
|
|
133
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Android only. Opt out of the Android 11+ communication-mode keep-alive.
|
|
159
|
+
*
|
|
160
|
+
* By default the SDK plays a silent voice-communication track for the duration of a
|
|
161
|
+
* communicator-role call, so Android does not reset `MODE_IN_COMMUNICATION` ~6s after it is
|
|
162
|
+
* set (which breaks audio routing and echo cancellation).
|
|
163
|
+
* See {@link https://issuetracker.google.com/issues/209493718}
|
|
164
|
+
*
|
|
165
|
+
* Call this at app start, alongside {@link setPushConfig} — the native audio manager
|
|
166
|
+
* rejects the change once it has been activated for a call. No-op on iOS and on
|
|
167
|
+
* Android below API 30.
|
|
168
|
+
*/
|
|
169
|
+
static setDisableCommunicationModeWorkaround(disabled) {
|
|
170
|
+
if (_reactNative.Platform.OS !== 'android') {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
try {
|
|
174
|
+
_reactNative.NativeModules.StreamInCallManager?.setDisableCommunicationModeWorkaround(disabled);
|
|
175
|
+
} catch (error) {
|
|
176
|
+
_videoClient.videoLoggerSystem.getLogger('StreamVideoRN').warn('setDisableCommunicationModeWorkaround failed', error);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
134
180
|
/**
|
|
135
181
|
* Play native busy tone for call rejection
|
|
136
182
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_ringingCallLifecycle","require","_pushLogoutCallback","_interopRequireDefault","_setupIosVoipPushEvents","_setupAndroidPushEvents","_setupCallingExpEvents","_callingx","_reactNative","_videoClient","e","__esModule","default","deepMerge","target","source","result","key","undefined","Array","isArray","DEFAULT_STREAM_VIDEO_CONFIG","foregroundService","android","channel","id","name","notificationTexts","title","body","taskToRun","Promise","StreamVideoRN","config","updateConfig","setPushConfig","pushConfig","push","callingx","getCallingxLib","videoLoggerSystem","getLogger","info","JSON","stringify","options","extractCallingExpOptions","setup","Error","setupCallingExpEvents","setupIosVoipPushEvents","setupAndroidPushEvents","setRingingCallLifecycleHooks","hooks","storeRingingCallLifecycleHooks","getConfig","onPushLogout","callbacks","pushLogoutCallbacks","current","resolve","all","map","callback","then","clearPushLogoutCallbacks","setDisableCommunicationModeWorkaround","disabled","Platform","OS","NativeModules","StreamInCallManager","error","warn","playBusyTone","StreamVideoReactNative","stopBusyTone","androidHasAudioOutputHardware","hasAudioOutputHardware","androidHasMicrophoneHardware","hasMicrophoneHardware","androidHasCameraHardware","hasCameraHardware","exports"],"sourceRoot":"../../../../src","sources":["utils/StreamVideoRN/index.ts"],"mappings":";;;;;;AACA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP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ACC,EAAE,KAAK,SAAS,EAC3B,MAAM,IAAIrB,KAAK,CACb,qEACF,CAAC;IACH,OAAOsB,0BAAa,CAACK,sBAAsB,CAACG,sBAAsB,CAAC,CAAC;EACtE;;EAEA;AACF;AACA;AACA;EACE,aAAaC,4BAA4BA,CAAA,EAAqB;IAC5D,IAAIX,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAC3B,MAAM,IAAIrB,KAAK,CACb,oEACF,CAAC;IACH,OAAOsB,0BAAa,CAACK,sBAAsB,CAACK,qBAAqB,CAAC,CAAC;EACrE;;EAEA;AACF;AACA;AACA;EACE,aAAaC,wBAAwBA,CAAA,EAAqB;IACxD,IAAIb,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAC3B,MAAM,IAAIrB,KAAK,CACb,gEACF,CAAC;IACH,OAAOsB,0BAAa,CAACK,sBAAsB,CAACO,iBAAiB,CAAC,CAAC;EACjE;AACF;AAACC,OAAA,CAAAnD,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -48,11 +48,14 @@ function getCallDisplayName(callMembers, participants, currentUserId) {
|
|
|
48
48
|
*/
|
|
49
49
|
function getCallingxCallArgs(call) {
|
|
50
50
|
const callDisplayName = call.state.custom?.display_name || getCallDisplayName(call.state.members, call.state.participants, call.currentUserId);
|
|
51
|
+
const createdByHandle = call.state.createdBy?.id ?? callDisplayName;
|
|
51
52
|
return [call.cid,
|
|
52
53
|
// unique id for call
|
|
53
|
-
call.
|
|
54
|
-
//
|
|
55
|
-
|
|
54
|
+
// handle for the native call UI. On iOS it is shown in CallKit Recents and used for
|
|
55
|
+
// call-back, so we send the caller's user id (matches the Swift SDK). On Android the
|
|
56
|
+
// self-managed Telecom address is never displayed and callingx wraps it as
|
|
57
|
+
// `<packageName>:<handle>`, so we send the call id (matches the Android SDK).
|
|
58
|
+
_reactNative.Platform.OS === 'android' ? call.id : createdByHandle, callDisplayName,
|
|
56
59
|
// display name for display in call screen
|
|
57
60
|
call.state.settings?.video?.enabled ?? false // is video call?
|
|
58
61
|
];
|
|
@@ -82,7 +85,7 @@ async function registerOutgoingCall(call) {
|
|
|
82
85
|
* 2. Displays the incoming call in the callingx library
|
|
83
86
|
* 3. Optionally for non-ringing calls also when ongoing calls are enabled.
|
|
84
87
|
*/
|
|
85
|
-
async function joinCallingxCall(call, activeCalls) {
|
|
88
|
+
async function joinCallingxCall(call, activeCalls, isCancelled) {
|
|
86
89
|
if (!CallingxModule || !CallingxModule.isSetup || call.isOwnTracksLoopbackAllowed) {
|
|
87
90
|
return;
|
|
88
91
|
}
|
|
@@ -103,16 +106,38 @@ async function joinCallingxCall(call, activeCalls) {
|
|
|
103
106
|
logger.error(`failed to leave active call ${activeCall.cid}`, e);
|
|
104
107
|
});
|
|
105
108
|
}
|
|
109
|
+
// Leaving the other calls above can take arbitrarily long, and this join may
|
|
110
|
+
// have been cancelled meanwhile. Registering now would create a native call
|
|
111
|
+
// nobody owns. The caller decides, not the call's state: a `Call` reused for
|
|
112
|
+
// a fresh ring is still `LEFT` here, because `setup()` runs after this.
|
|
113
|
+
if (isCancelled?.()) {
|
|
114
|
+
logger.debug(`joinCallingxCall: skipping registration for ${call.cid}: join cancelled while waiting for other calls`);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
106
117
|
logger.debug(`joinCallingxCall: Joining call ${call.cid} isIncoming: ${isIncomingCall} isOutgoing: ${isOutcomingCall}`);
|
|
107
118
|
const callArgs = getCallingxCallArgs(call);
|
|
108
119
|
if (isIncomingCall) {
|
|
109
120
|
await CallingxModule.displayIncomingCall(...callArgs);
|
|
121
|
+
// never answer a call that was hung up while the OS was displaying it -
|
|
122
|
+
// the cleanup below ends the registration instead
|
|
123
|
+
if (isCancelled?.()) return;
|
|
110
124
|
await CallingxModule.answerIncomingCall(call.cid);
|
|
111
125
|
} else {
|
|
112
126
|
await CallingxModule.startCall(...callArgs);
|
|
113
127
|
}
|
|
114
128
|
} catch (error) {
|
|
115
129
|
logger.error(`startCallingxCall: Error starting call in callingx: ${call.cid} isIncoming: ${isIncomingCall} isOutgoing: ${isOutcomingCall}`, error);
|
|
130
|
+
} finally {
|
|
131
|
+
// The registration above can outlive the join that asked for it: `leave()`
|
|
132
|
+
// may land while native is still bringing the call up, and by the time the
|
|
133
|
+
// caller aborts, the call exists natively with nobody to end it. Ringing
|
|
134
|
+
// calls have a lifecycle owner that would clean up; ordinary ones do not.
|
|
135
|
+
// Nothing was registered when the check above already skipped it, and
|
|
136
|
+
// `endCallingxCall` no-ops for an untracked cid, so this is safe either way.
|
|
137
|
+
if (isCancelled?.()) {
|
|
138
|
+
logger.debug(`joinCallingxCall: ending ${call.cid}: join was cancelled while registering`);
|
|
139
|
+
await endCallingxCall(call, 'canceled');
|
|
140
|
+
}
|
|
116
141
|
}
|
|
117
142
|
}
|
|
118
143
|
async function endCallingxCall(call, reason) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_callingx","_videoClient","CallingxModule","getCallingxLibIfAvailable","getCallDisplayName","callMembers","participants","currentUserId","names","length","flatMap","member","user","id","name","participant","userId","find","sort","join","getCallingxCallArgs","call","callDisplayName","state","custom","display_name","members","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_callingx","_videoClient","CallingxModule","getCallingxLibIfAvailable","getCallDisplayName","callMembers","participants","currentUserId","names","length","flatMap","member","user","id","name","participant","userId","find","sort","join","getCallingxCallArgs","call","callDisplayName","state","custom","display_name","members","createdByHandle","createdBy","cid","Platform","OS","settings","video","enabled","registerOutgoingCall","isSetup","isOwnTracksLoopbackAllowed","isOutcomingCall","ringing","isCreatedByMe","logger","videoLoggerSystem","getLogger","debug","startCall","error","joinCallingxCall","activeCalls","isCancelled","isIncomingCall","isOngoingCall","c","isOngoingCallsEnabled","activeCallsToLeave","filter","callingState","CallingState","LEFT","activeCall","leave","reason","catch","e","callArgs","displayIncomingCall","answerIncomingCall","endCallingxCall","isCallTracked","endCallWithReason","wireAudioEngineSubscription","unwireAudioEngineSubscription"],"sourceRoot":"../../../../../src","sources":["utils/internal/callingx/callingx.ts"],"mappings":";;;;;;;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GAAAF,OAAA;AAZA;AACA;AACA;AACA;;AAWA,MAAMG,cAAc,GAAG,IAAAC,mCAAyB,EAAC,CAAC;;AAElD;AACA;AACA;AACO,SAASC,kBAAkBA,CAChCC,WAAyC,EACzCC,YAAkD,EAClDC,aAAiC,EACzB;EACR,IAAI,CAACF,WAAW,IAAI,CAACC,YAAY,IAAI,CAACC,aAAa,EAAE;IACnD,OAAO,MAAM;EACf;EAEA,IAAIC,KAAe,GAAG,EAAE;EAExB,IAAIH,WAAW,CAACI,MAAM,GAAG,CAAC,EAAE;IAC1B;IACAD,KAAK,GAAGH,WAAW,CAACK,OAAO,CAAEC,MAAM,IACjCA,MAAM,CAACC,IAAI,CAACC,EAAE,KAAKN,aAAa,IAAII,MAAM,CAACC,IAAI,CAACE,IAAI,GAChD,CAACH,MAAM,CAACC,IAAI,CAACE,IAAI,CAAC,GAClB,EACN,CAAC;EACH,CAAC,MAAM,IAAIR,YAAY,CAACG,MAAM,GAAG,CAAC,EAAE;IAClC;IACAD,KAAK,GAAGF,YAAY,CAACI,OAAO,CAAEK,WAAW,IACvCA,WAAW,CAACC,MAAM,KAAKT,aAAa,IAAIQ,WAAW,CAACD,IAAI,GACpD,CAACC,WAAW,CAACD,IAAI,CAAC,GAClB,EACN,CAAC;EACH;;EAEA;EACA,IAAIN,KAAK,CAACC,MAAM,KAAK,CAAC,EAAE;IACtBD,KAAK,GAAG,CACNF,YAAY,CAACW,IAAI,CAAEF,WAAW,IAAKA,WAAW,CAACC,MAAM,KAAKT,aAAa,CAAC,EACpEO,IAAI,IAAI,MAAM,CACnB;EACH;EAEA,OAAON,KAAK,CAACU,IAAI,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;AAChC;;AAEA;AACA;AACA;AACA;AACA,SAAS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
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setIosPipTrack = exports.getIosPipTrack$ = void 0;
|
|
7
|
+
var _videoClient = require("@stream-io/video-client");
|
|
8
|
+
var _rxjs = require("rxjs");
|
|
9
|
+
/**
|
|
10
|
+
* The track currently rendered by the native iOS Picture in Picture window,
|
|
11
|
+
* per Call instance. While set, the window's bounds are the demand of that
|
|
12
|
+
* track and the inline views of the same track stop requesting their layout.
|
|
13
|
+
*/
|
|
14
|
+
const tracks = new WeakMap();
|
|
15
|
+
const getIosPipTrack$ = call => {
|
|
16
|
+
let track$ = tracks.get(call);
|
|
17
|
+
if (!track$) {
|
|
18
|
+
track$ = new _rxjs.BehaviorSubject(undefined);
|
|
19
|
+
tracks.set(call, track$);
|
|
20
|
+
}
|
|
21
|
+
return track$;
|
|
22
|
+
};
|
|
23
|
+
exports.getIosPipTrack$ = getIosPipTrack$;
|
|
24
|
+
const setIosPipTrack = (call, track) => {
|
|
25
|
+
const track$ = getIosPipTrack$(call);
|
|
26
|
+
const previous = track$.getValue();
|
|
27
|
+
if (previous) {
|
|
28
|
+
// Clear before opening the gate: mounted inline views replay their layout
|
|
29
|
+
// synchronously on the gate change and overwrite this. If none is mounted,
|
|
30
|
+
// the cleared demand stands.
|
|
31
|
+
call.state.updateParticipantTracks(previous.trackType, {
|
|
32
|
+
[previous.sessionId]: {
|
|
33
|
+
dimension: undefined
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
call.trackSubscriptionManager.apply(_videoClient.DebounceType.MEDIUM);
|
|
37
|
+
}
|
|
38
|
+
track$.next(track);
|
|
39
|
+
};
|
|
40
|
+
exports.setIosPipTrack = setIosPipTrack;
|
|
41
|
+
//# sourceMappingURL=iosPipTrack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_rxjs","tracks","WeakMap","getIosPipTrack$","call","track$","get","BehaviorSubject","undefined","set","exports","setIosPipTrack","track","previous","getValue","state","updateParticipantTracks","trackType","sessionId","dimension","trackSubscriptionManager","apply","DebounceType","MEDIUM","next"],"sourceRoot":"../../../../src","sources":["utils/internal/iosPipTrack.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAIA;AACA;AACA;AACA;AACA;AACA,MAAME,MAAM,GAAG,IAAIC,OAAO,CAA8C,CAAC;AAElE,MAAMC,eAAe,GAAIC,IAAU,IAAK;EAC7C,IAAIC,MAAM,GAAGJ,MAAM,CAACK,GAAG,CAACF,IAAI,CAAC;EAC7B,IAAI,CAACC,MAAM,EAAE;IACXA,MAAM,GAAG,IAAIE,qBAAe,CAAuBC,SAAS,CAAC;IAC7DP,MAAM,CAACQ,GAAG,CAACL,IAAI,EAAEC,MAAM,CAAC;EAC1B;EACA,OAAOA,MAAM;AACf,CAAC;AAACK,OAAA,CAAAP,eAAA,GAAAA,eAAA;AAEK,MAAMQ,cAAc,GAAGA,CAACP,IAAU,EAAEQ,KAA2B,KAAK;EACzE,MAAMP,MAAM,GAAGF,eAAe,CAACC,IAAI,CAAC;EACpC,MAAMS,QAAQ,GAAGR,MAAM,CAACS,QAAQ,CAAC,CAAC;EAClC,IAAID,QAAQ,EAAE;IACZ;IACA;IACA;IACAT,IAAI,CAACW,KAAK,CAACC,uBAAuB,CAACH,QAAQ,CAACI,SAAS,EAAE;MACrD,CAACJ,QAAQ,CAACK,SAAS,GAAG;QAAEC,SAAS,EAAEX;MAAU;IAC/C,CAAC,CAAC;IACFJ,IAAI,CAACgB,wBAAwB,CAACC,KAAK,CAACC,yBAAY,CAACC,MAAM,CAAC;EAC1D;EACAlB,MAAM,CAACmB,IAAI,CAACZ,KAAK,CAAC;AACpB,CAAC;AAACF,OAAA,CAAAC,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@ var _reactNativeWebrtc = require("@stream-io/react-native-webrtc");
|
|
|
10
10
|
var _callingx = require("../push/libs/callingx");
|
|
11
11
|
var _callingx2 = require("./callingx/callingx");
|
|
12
12
|
var _registerMediaEngine = require("./registerMediaEngine");
|
|
13
|
+
var _ringingCallLifecycle = require("./ringingCallLifecycle");
|
|
13
14
|
var _callManager = require("../../modules/call-manager");
|
|
14
15
|
const StreamInCallManagerNativeModule = _reactNative.NativeModules.StreamInCallManager;
|
|
15
16
|
const StreamVideoReactNativeModule = _reactNative.NativeModules.StreamVideoReactNative;
|
|
@@ -78,6 +79,11 @@ const streamRNVideoSDKGlobals = {
|
|
|
78
79
|
wireAudioEngineSubscription: _callingx2.wireAudioEngineSubscription,
|
|
79
80
|
unwireAudioEngineSubscription: _callingx2.unwireAudioEngineSubscription
|
|
80
81
|
},
|
|
82
|
+
ringingCallLifecycle: {
|
|
83
|
+
beforeJoin: _ringingCallLifecycle.beforeJoin,
|
|
84
|
+
onJoinFailed: _ringingCallLifecycle.onJoinFailed,
|
|
85
|
+
onLeave: _ringingCallLifecycle.onLeave
|
|
86
|
+
},
|
|
81
87
|
callManager: {
|
|
82
88
|
setup: ({
|
|
83
89
|
defaultDevice,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_reactNative","_reactNativeWebrtc","_callingx","_callingx2","_registerMediaEngine","_callManager","StreamInCallManagerNativeModule","NativeModules","StreamInCallManager","StreamVideoReactNativeModule","StreamVideoReactNative","CallingxModule","getCallingxLibIfAvailable","safeNativeCall","label","fn","error","videoLoggerSystem","getLogger","warn","shouldBypassForCallKit","isRingingTypeCall","Platform","OS","bypass","isSetup","isOngoingCallsEnabled","isAndroidTelecomManaged","cid","isTelecomBacked","isCallTracked","streamRNVideoSDKGlobals","callingX","joinCall","joinCallingxCall","endCall","endCallingxCall","registerOutgoingCall","wireAudioEngineSubscription","unwireAudioEngineSubscription","callManager","setup","defaultDevice","isTelecomManaged","isCallKitManaged","setTelecomManagedMode","setDefaultAudioDeviceEndpointType","start","config","publicCallManager","getStoredConfig","deviceOverride","audioRole","deviceEndpointType","undefined","setAudioRole","stereoOutput","setEnableStereoAudioOutput","stop","shouldStopCallManager","setRecordingAlwaysPreparedMode","setMutedRecordingPrepared","enabled","setMuteMode","AudioEngineMuteMode","VoiceProcessing","permissions","check","permission","nativeAndroidPermission","PermissionsAndroid","PERMISSIONS","CAMERA","RECORD_AUDIO","Boolean","checkPermission","nativeEvents","speechActivity","subscribe","cb","subscription","audioDeviceModuleEvents","addSpeechActivityListener","data","isSoundDetected","event","remove","registerSDKGlobals","globalThis","streamRNVideoSDK","registerCallMediaEngine"],"sourceRoot":"../../../../src","sources":["utils/internal/registerSDKGlobals.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AAIA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAOA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_reactNative","_reactNativeWebrtc","_callingx","_callingx2","_registerMediaEngine","_ringingCallLifecycle","_callManager","StreamInCallManagerNativeModule","NativeModules","StreamInCallManager","StreamVideoReactNativeModule","StreamVideoReactNative","CallingxModule","getCallingxLibIfAvailable","safeNativeCall","label","fn","error","videoLoggerSystem","getLogger","warn","shouldBypassForCallKit","isRingingTypeCall","Platform","OS","bypass","isSetup","isOngoingCallsEnabled","isAndroidTelecomManaged","cid","isTelecomBacked","isCallTracked","streamRNVideoSDKGlobals","callingX","joinCall","joinCallingxCall","endCall","endCallingxCall","registerOutgoingCall","wireAudioEngineSubscription","unwireAudioEngineSubscription","ringingCallLifecycle","beforeJoin","onJoinFailed","onLeave","callManager","setup","defaultDevice","isTelecomManaged","isCallKitManaged","setTelecomManagedMode","setDefaultAudioDeviceEndpointType","start","config","publicCallManager","getStoredConfig","deviceOverride","audioRole","deviceEndpointType","undefined","setAudioRole","stereoOutput","setEnableStereoAudioOutput","stop","shouldStopCallManager","setRecordingAlwaysPreparedMode","setMutedRecordingPrepared","enabled","setMuteMode","AudioEngineMuteMode","VoiceProcessing","permissions","check","permission","nativeAndroidPermission","PermissionsAndroid","PERMISSIONS","CAMERA","RECORD_AUDIO","Boolean","checkPermission","nativeEvents","speechActivity","subscribe","cb","subscription","audioDeviceModuleEvents","addSpeechActivityListener","data","isSoundDetected","event","remove","registerSDKGlobals","globalThis","streamRNVideoSDK","registerCallMediaEngine"],"sourceRoot":"../../../../src","sources":["utils/internal/registerSDKGlobals.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AAIA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAOA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAEA,MAAMQ,+BAA+B,GAAGC,0BAAa,CAACC,mBAAmB;AACzE,MAAMC,4BAA4B,GAAGF,0BAAa,CAACG,sBAElD;AAED,MAAMC,cAAc,GAAG,IAAAC,mCAAyB,EAAC,CAAC;;AAElD;AACA;AACA;AACA;AACA,MAAMC,cAAc,GAAGA,CAACC,KAAa,EAAEC,EAAc,KAAW;EAC9D,IAAI;IACFA,EAAE,CAAC,CAAC;EACN,CAAC,CAAC,OAAOC,KAAK,EAAE;IACdC,8BAAiB,CAACC,SAAS,CAAC,aAAa,CAAC,CAACC,IAAI,CAAC,GAAGL,KAAK,SAAS,EAAEE,KAAK,CAAC;EAC3E;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMI,sBAAsB,GAAGA,CAAC;EAC9BC;AAGF,CAAC,KAAc;EACb,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;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jD,OAAOH,+BAAkB,CAACH,KAAK,CAACE,uBAAuB,CAAC;MAC1D;;MAEA;MACA,OAAOK,OAAO,CACZ,MAAMrE,4BAA4B,CAACsE,eAAe,GAAGP,UAAU,CACjE,CAAC;IACH;EACF,CAAC;EACDQ,YAAY,EAAE;IACZC,cAAc,EAAE;MACdC,SAASA,CAACC,EAAE,EAAE;QACZ,MAAMC,YAAY,GAAGC,0CAAuB,CAACC,yBAAyB,CACnEC,IAAI,IAAK;UACRJ,EAAE,CAAC;YAAEK,eAAe,EAAED,IAAI,CAACE,KAAK,KAAK;UAAU,CAAC,CAAC;QACnD,CACF,CAAC;QACD,OAAO,MAAML,YAAY,CAACM,MAAM,CAAC,CAAC;MACpC;IACF;EACF;AACF,CAAC;;AAED;AACA;AACA;AACO,SAASC,kBAAkBA,CAAA,EAAG;EACnC,IAAI,CAACC,UAAU,CAACC,gBAAgB,EAAE;IAChCD,UAAU,CAACC,gBAAgB,GAAG9D,uBAAuB;EACvD;EAEA,IAAA+D,4CAAuB,EAAC,CAAC;AAC3B","ignoreList":[]}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setRingingCallLifecycleHooks = exports.onLeave = exports.onJoinFailed = exports.beforeJoin = void 0;
|
|
7
|
+
var _videoClient = require("@stream-io/video-client");
|
|
8
|
+
const logger = _videoClient.videoLoggerSystem.getLogger('ringingCallLifecycle');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* How long `onBeforeCallJoin` may take before the join gives up on it.
|
|
12
|
+
*
|
|
13
|
+
* The hook runs inside the CallKit accept, which iOS gives a hard deadline of
|
|
14
|
+
* roughly 30s before killing the app. Failing well short of that leaves room to
|
|
15
|
+
* report the failure and end the native call cleanly, and a hook that legitimately
|
|
16
|
+
* needs longer than this does not belong on the accept path at all.
|
|
17
|
+
*/
|
|
18
|
+
const ON_BEFORE_CALL_JOIN_TIMEOUT_MS = 5_000;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The registered hooks.
|
|
22
|
+
*
|
|
23
|
+
* Held here rather than on `StreamVideoRN.config` so the push internals and the
|
|
24
|
+
* globals bridge can both reach them without importing the `StreamVideoRN`
|
|
25
|
+
* class, which would close an import cycle through the push setup modules.
|
|
26
|
+
*/
|
|
27
|
+
let hooks;
|
|
28
|
+
const setRingingCallLifecycleHooks = next => {
|
|
29
|
+
hooks = next;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* How to release what a call's setup hook installed.
|
|
34
|
+
*
|
|
35
|
+
* Kept per call rather than in a single current-call slot: an abandoned call's
|
|
36
|
+
* hook can still finish after the next call has joined, and it has to release
|
|
37
|
+
* its own manager rather than whatever is current. An entry exists only for a
|
|
38
|
+
* call whose setup hook actually ran.
|
|
39
|
+
*/
|
|
40
|
+
exports.setRingingCallLifecycleHooks = setRingingCallLifecycleHooks;
|
|
41
|
+
const cleanups = new WeakMap();
|
|
42
|
+
|
|
43
|
+
/** Invokes the release hook, swallowing whatever it throws. */
|
|
44
|
+
const fireRelease = call => {
|
|
45
|
+
const hook = hooks?.onAfterCallLeave;
|
|
46
|
+
if (!hook) return;
|
|
47
|
+
try {
|
|
48
|
+
Promise.resolve(hook(call)).catch(e => {
|
|
49
|
+
logger.warn(`onAfterCallLeave failed for callCid: ${call.cid}`, e);
|
|
50
|
+
});
|
|
51
|
+
} catch (e) {
|
|
52
|
+
logger.warn(`onAfterCallLeave threw for callCid: ${call.cid}`, e);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** Releases what the setup hook installed, at most once. */
|
|
57
|
+
const requestRelease = call => {
|
|
58
|
+
const cleanup = cleanups.get(call);
|
|
59
|
+
if (!cleanup) return;
|
|
60
|
+
// Dropped before it runs: that is what makes a failed join followed by a
|
|
61
|
+
// leave release exactly once.
|
|
62
|
+
cleanups.delete(call);
|
|
63
|
+
cleanup();
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Runs the app's pre-join setup, bounded by the deadline.
|
|
68
|
+
*
|
|
69
|
+
* Rejecting fails the join closed - joining without whatever this installs would
|
|
70
|
+
* publish unencrypted media on a call the user believes is private.
|
|
71
|
+
*/
|
|
72
|
+
const beforeJoin = call => {
|
|
73
|
+
const hook = hooks?.onBeforeCallJoin;
|
|
74
|
+
if (!hook) return Promise.resolve();
|
|
75
|
+
|
|
76
|
+
// Invoked synchronously - a caller expects its hook to start now - but a
|
|
77
|
+
// synchronous throw becomes a rejection so it cannot escape the bookkeeping.
|
|
78
|
+
let started;
|
|
79
|
+
try {
|
|
80
|
+
started = Promise.resolve(hook(call));
|
|
81
|
+
} catch (error) {
|
|
82
|
+
started = Promise.reject(error);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Cleanup tracks the hook's own promise, never the bounded wait below. The
|
|
86
|
+
// deadline ends this join's wait but cannot cancel the app's work, so a
|
|
87
|
+
// manager the hook creates late still has an owner waiting to release it.
|
|
88
|
+
const settled = started.catch(() => {});
|
|
89
|
+
cleanups.set(call, () => void settled.then(() => fireRelease(call)));
|
|
90
|
+
let timeout;
|
|
91
|
+
const expiry = new Promise((_, reject) => {
|
|
92
|
+
timeout = setTimeout(() => reject(new Error(`onBeforeCallJoin did not settle within ${ON_BEFORE_CALL_JOIN_TIMEOUT_MS}ms`)), ON_BEFORE_CALL_JOIN_TIMEOUT_MS);
|
|
93
|
+
});
|
|
94
|
+
return Promise.race([started, expiry]).finally(() => clearTimeout(timeout));
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The join failed and will not be retried on this call.
|
|
99
|
+
*
|
|
100
|
+
* Ends the ringing flow rather than leaving the call sitting in `RINGING`: one
|
|
101
|
+
* `Call` is one call flow, so the accept button must not be able to offer this
|
|
102
|
+
* instance again. Never rejects, so the original join error survives.
|
|
103
|
+
*/
|
|
104
|
+
exports.beforeJoin = beforeJoin;
|
|
105
|
+
const onJoinFailed = async call => {
|
|
106
|
+
if (call.state.callingState !== _videoClient.CallingState.LEFT) {
|
|
107
|
+
try {
|
|
108
|
+
// Takes the call out of the client's list, which unmounts the ringing UI.
|
|
109
|
+
// `reject: false`: the join failed locally, so this is not the callee
|
|
110
|
+
// declining, and the native call has already been ended with 'error'.
|
|
111
|
+
await call.leave({
|
|
112
|
+
reject: false
|
|
113
|
+
});
|
|
114
|
+
} catch (error) {
|
|
115
|
+
logger.warn(`failed to leave after a failed join: ${call.cid}`, error);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// The leave above notifies {@link onLeave}, which consumes the cleanup. This
|
|
119
|
+
// covers what it could not: a call already left, or a leave that itself failed.
|
|
120
|
+
requestRelease(call);
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The call has ended.
|
|
125
|
+
*
|
|
126
|
+
* Releases what the setup hook installed, once the hook has actually settled -
|
|
127
|
+
* a hook still running may yet install something, and releasing before it
|
|
128
|
+
* finishes would strand that.
|
|
129
|
+
*/
|
|
130
|
+
exports.onJoinFailed = onJoinFailed;
|
|
131
|
+
const onLeave = call => {
|
|
132
|
+
// A release-only registration has nothing to pair with, so its hook belongs to
|
|
133
|
+
// the call ending rather than to a join: it is owed for every ringing call
|
|
134
|
+
// that ends, including one declined without ever joining.
|
|
135
|
+
if (!hooks?.onBeforeCallJoin) {
|
|
136
|
+
fireRelease(call);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
requestRelease(call);
|
|
140
|
+
};
|
|
141
|
+
exports.onLeave = onLeave;
|
|
142
|
+
//# sourceMappingURL=ringingCallLifecycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_videoClient","require","logger","videoLoggerSystem","getLogger","ON_BEFORE_CALL_JOIN_TIMEOUT_MS","hooks","setRingingCallLifecycleHooks","next","exports","cleanups","WeakMap","fireRelease","call","hook","onAfterCallLeave","Promise","resolve","catch","e","warn","cid","requestRelease","cleanup","get","delete","beforeJoin","onBeforeCallJoin","started","error","reject","settled","set","then","timeout","expiry","_","setTimeout","Error","race","finally","clearTimeout","onJoinFailed","state","callingState","CallingState","LEFT","leave","onLeave"],"sourceRoot":"../../../../src","sources":["utils/internal/ringingCallLifecycle.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,MAAMC,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CAAC,sBAAsB,CAAC;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,8BAA8B,GAAG,KAAK;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,KAA4C;AAEzC,MAAMC,4BAA4B,GACvCC,IAA+B,IAC5B;EACHF,KAAK,GAAGE,IAAI;AACd,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPAC,OAAA,CAAAF,4BAAA,GAAAA,4BAAA;AAQA,MAAMG,QAAQ,GAAG,IAAIC,OAAO,CAAmB,CAAC;;AAEhD;AACA,MAAMC,WAAW,GAAIC,IAAU,IAAW;EACxC,MAAMC,IAAI,GAAGR,KAAK,EAAES,gBAAgB;EACpC,IAAI,CAACD,IAAI,EAAE;EACX,IAAI;IACFE,OAAO,CAACC,OAAO,CAACH,IAAI,CAACD,IAAI,CAAC,CAAC,CAACK,KAAK,CAAEC,CAAC,IAAK;MACvCjB,MAAM,CAACkB,IAAI,CAAC,wCAAwCP,IAAI,CAACQ,GAAG,EAAE,EAAEF,CAAC,CAAC;IACpE,CAAC,CAAC;EACJ,CAAC,CAAC,OAAOA,CAAC,EAAE;IACVjB,MAAM,CAACkB,IAAI,CAAC,uCAAuCP,IAAI,CAACQ,GAAG,EAAE,EAAEF,CAAC,CAAC;EACnE;AACF,CAAC;;AAED;AACA,MAAMG,cAAc,GAAIT,IAAU,IAAW;EAC3C,MAAM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AA,CAAAiB,UAAA,GAAAA,UAAA;AAOO,MAAMgB,YAAY,GAAG,MAAO7B,IAAU,IAAoB;EAC/D,IAAIA,IAAI,CAAC8B,KAAK,CAACC,YAAY,KAAKC,yBAAY,CAACC,IAAI,EAAE;IACjD,IAAI;MACF;MACA;MACA;MACA,MAAMjC,IAAI,CAACkC,KAAK,CAAC;QAAEjB,MAAM,EAAE;MAAM,CAAC,CAAC;IACrC,CAAC,CAAC,OAAOD,KAAK,EAAE;MACd3B,MAAM,CAACkB,IAAI,CAAC,wCAAwCP,IAAI,CAACQ,GAAG,EAAE,EAAEQ,KAAK,CAAC;IACxE;EACF;EACA;EACA;EACAP,cAAc,CAACT,IAAI,CAAC;AACtB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AANAJ,OAAA,CAAAiC,YAAA,GAAAA,YAAA;AAOO,MAAMM,OAAO,GAAInC,IAAU,IAAW;EAC3C;EACA;EACA;EACA,IAAI,CAACP,KAAK,EAAEqB,gBAAgB,EAAE;IAC5Bf,WAAW,CAACC,IAAI,CAAC;IACjB;EACF;EACAS,cAAc,CAACT,IAAI,CAAC;AACtB,CAAC;AAACJ,OAAA,CAAAuC,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -88,6 +88,10 @@ const processCallFromPushInBackground = async (pushConfig, call_cid, action, onI
|
|
|
88
88
|
await callFromPush.join();
|
|
89
89
|
} catch (e) {
|
|
90
90
|
logger.warn('processCallFromPushInBackground: failed to join call from push notification', e);
|
|
91
|
+
// Cleanup is not repeated here: `join()`'s own failure boundary already
|
|
92
|
+
// released whatever the pre-join hook installed, and a second call would
|
|
93
|
+
// invoke a release-only registration twice.
|
|
94
|
+
onIOSActionCanBeFulfilled(true);
|
|
91
95
|
}
|
|
92
96
|
} else if (action === 'decline') {
|
|
93
97
|
const alreadyLeft = callFromPush.state.callingState === _videoClient.CallingState.LEFT;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_constants","_reactNative","logger","videoLoggerSystem","getLogger","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","endCallReason","endedAt","debug","cid","exports","processCallFromPushInBackground","pushConfig","call_cid","action","onIOSActionCanBeFulfilled","videoClient","createStreamVideoClient","Error","e","error","onRingingCall","publishOptions","updatePublishOptions","callingState","CallingState","RINGING","IDLE","join","warn","alreadyLeft","LEFT","canReject","isCurrentUserMember","members","some","member","user_id","currentUserId","reject","leave","reason","clearPushWSEventSubscriptions","unsubscriptionCallbacks","pushUnsubscriptionCallbacks","get","forEach","cb","delete","canAddPushWSSubscriptionsRef","current","canListenToWS","AppState","currentState","shouldCallBeClosed","call","pushData"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAKA,MAAMG,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CAAC,UAAU,CAAC;AAGtD;AACA;AACA;AACA;AACO,MAAMC,iBAAiB,GAAGA,CAC/BC,YAAkB,EAClBC,aAAiC,EACjCC,WAA+B,KAC5B;EACH,MAAMC,WAAW,GAAGH,YAAY,CAACI,KAAK,CAACC,OAAO;EAC9C,MAAMC,WAAW,GAAGH,WAAW,EAAEG,WAAW;EAC5C,MAAMC,WAAW,GAAGJ,WAAW,EAAEI,WAAW;EAC5C,IAAIC,WAAW,GAAG,KAAK;EACvB,IAAIC,aAA4B,GAAG,SAAS;EAE5C,IAAIT,YAAY,CAACI,KAAK,CAACM,OAAO,EAAE;IAC9BF,WAAW,GAAG,IAAI;IAClBC,aAAa,GAAG,QAAQ;EAC1B,CAAC,MAAM,IAAIR,aAAa,IAAIK,WAAW,EAAE;IACvC,IAAIA,WAAW,CAACL,aAAa,CAAC,EAAE;MAC9B;MACAO,WAAW,GAAG,IAAI;MAClBC,aAAa,GAAG,UAAU;I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/B;EACF;EACA,IAAID,MAAM,KAAK,QAAQ,EAAE;IACvB,IAAIF,UAAU,CAACU,cAAc,EAAE;MAC7BzB,YAAY,CAAC0B,oBAAoB,CAACX,UAAU,CAACU,cAAc,CAAC;IAC9D;IACA7B,MAAM,CAACe,KAAK,CACV,qDAAqDX,YAAY,CAACY,GAAG,EACvE,CAAC;IACD,MAAMe,YAAY,GAAG3B,YAAY,CAACI,KAAK,CAACuB,YAAY;IACpD,IACEA,YAAY,KAAKC,yBAAY,CAACC,OAAO,IACrCF,YAAY,KAAKC,yBAAY,CAACE,IAAI,EAClC;MACAlC,MAAM,CAACe,KAAK,CACV,6FAA6FX,YAAY,CAACY,GAAG,EAC/G,CAAC;MACDM,yBAAyB,CAAC,IAAI,CAAC;MAC/B;IACF;IACA,IAAI;MACFA,yBAAyB,CAAC,KAAK,CAAC;MAChC,MAAMlB,YAAY,CAAC+B,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,OAAOT,CAAC,EAAE;MACV1B,MAAM,CAACoC,IAAI,CACT,6EAA6E,EAC7EV,CACF,CAAC;
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_constants","_reactNative","logger","videoLoggerSystem","getLogger","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","endCallReason","endedAt","debug","cid","exports","processCallFromPushInBackground","pushConfig","call_cid","action","onIOSActionCanBeFulfilled","videoClient","createStreamVideoClient","Error","e","error","onRingingCall","publishOptions","updatePublishOptions","callingState","CallingState","RINGING","IDLE","join","warn","alreadyLeft","LEFT","canReject","isCurrentUserMember","members","some","member","user_id","currentUserId","reject","leave","reason","clearPushWSEventSubscriptions","unsubscriptionCallbacks","pushUnsubscriptionCallbacks","get","forEach","cb","delete","canAddPushWSSubscriptionsRef","current","canListenToWS","AppState","currentState","shouldCallBeClosed","call","pushData"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,G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;EACjE,MAAM8B,uBAAuB,GAAGC,sCAA2B,CAACC,GAAG,CAAChC,QAAQ,CAAC;EACzE,IAAI8B,uBAAuB,EAAE;IAC3BA,uBAAuB,CAACG,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAC7CH,sCAA2B,CAACI,MAAM,CAACnC,QAAQ,CAAC;EAC9C;AACF,CAAC;;AAED;AACA;AACA;AACA;AAHAH,OAAA,CAAAgC,6BAAA,GAAAA,6BAAA;AAIO,MAAMO,4BAA0D,GAAAvC,OAAA,CAAAuC,4BAAA,GAAG;EACxEC,OAAO,EAAE;AACX,CAAC;AAEM,MAAMC,aAAa,GAAGA,CAAA,KAC3BF,4BAA4B,CAACC,OAAO,IAAIE,qBAAQ,CAACC,YAAY,KAAK,QAAQ;AAAC3C,OAAA,CAAAyC,aAAA,GAAAA,aAAA;AAEtE,MAAMG,kBAAkB,GAAGA,CAChCC,IAAU,EACVC,QAA4C,KACzC;EACH,MAAM1D,aAAa,GAAG0D,QAAQ,EAAE1D,aAAuB;EACvD,MAAMC,WAAW,GAAGyD,QAAQ,EAAEzD,WAAqB;EAEnD,MAAM;IAAEM,WAAW;IAAEC;EAAc,CAAC,GAAGV,iBAAiB,CACtD2D,IAAI,EACJzD,aAAa,EACbC,WACF,CAAC;EACD,OAAO;IAAEM,WAAW;IAAEC;EAAc,CAAC;AACvC,CAAC;AAACI,OAAA,CAAA4C,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -159,7 +159,7 @@ export const CallContent = ({
|
|
|
159
159
|
supportedReactions
|
|
160
160
|
};
|
|
161
161
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
162
|
-
children: [!disablePictureInPicture && /*#__PURE__*/_jsx(RTCViewPipIOS, {
|
|
162
|
+
children: [Platform.OS === 'ios' && !disablePictureInPicture && /*#__PURE__*/_jsx(RTCViewPipIOS, {
|
|
163
163
|
includeLocalParticipantVideo: iOSPiPIncludeLocalParticipantVideo,
|
|
164
164
|
mirror: mirror
|
|
165
165
|
}), /*#__PURE__*/_jsxs(View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","NativeModules","Platform","StyleSheet","View","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCall","useCallStateHooks","CallingState","videoLoggerSystem","debounceTime","Z_INDEX","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","useAutoEnterPiPEffect","useIsInPiPMode","ScreenShareOverlay","DefaultScreenShareOverlay","RTCViewPipIOS","getRNInCallManagerLibNoThrow","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","CallContent","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","mirror","layout","landscape","supportedReactions","initialInCallManagerAudioMode","iOSPiPIncludeLocalParticipantVideo","disablePictureInPicture","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","styles","useStyles","theme","callContent","call","useHasOngoingScreenShare","useLocalParticipant","floatingViewState","setFloatingViewState","remote","state","remoteParticipants","remoteCountBucket","Math","min","length","firstRemoteParticipant","undefined","sub","remoteParticipants$","pipe","subscribe","prev","unsubscribe","localParticipant","isInPiPMode","hasScreenShare","showSpotlightLayout","OS","unsubFunc","on","getLogger","debug","StreamVideoReactNative","exitPipMode","subscription","callingState$","LEFT","showFloatingView","isRemoteParticipantInFloatingView","incallManagerModeRef","prevInCallManager","start","media","current","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","children","includeLocalParticipantVideo","style","container","landscapeStyles","row","column","content","callParticipantsContainer","absoluteFill","view","topContainer","pointerEvents","participant","onPressHandler","objectFit","create","flexDirection","flex","paddingBottom","variants","insets","bottom","paddingLeft","left","paddingRight","right","paddingTop","top","backgroundColor","colors","sheetPrimary","zIndex","I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,EAAEX,iCAAiC;IACvDlD,eAAe;IACfE,MAAM;IACNP,oBAAoB;IACpBU;EACF,CAAC;EAED,MAAMyD,8BAA8D,GAAG;IACrE,GAAGH,oBAAoB;IACvBvD,SAAS;IACTJ,eAAe;IACfE,MAAM;IACNP,oBAAoB;IACpBZ,kBAAkB;IAClBsB;EACF,CAAC;EAED,oBACEf,KAAA,CAAAE,SAAA;IAAAuE,QAAA,
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","NativeModules","Platform","StyleSheet","View","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCall","useCallStateHooks","CallingState","videoLoggerSystem","debounceTime","Z_INDEX","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","useAutoEnterPiPEffect","useIsInPiPMode","ScreenShareOverlay","DefaultScreenShareOverlay","RTCViewPipIOS","getRNInCallManagerLibNoThrow","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","CallContent","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","mirror","layout","landscape","supportedReactions","initialInCallManagerAudioMode","iOSPiPIncludeLocalParticipantVideo","disablePictureInPicture","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","styles","useStyles","theme","callContent","call","useHasOngoingScreenShare","useLocalParticipant","floatingViewState","setFloatingViewState","remote","state","remoteParticipants","remoteCountBucket","Math","min","length","firstRemoteParticipant","undefined","sub","remoteParticipants$","pipe","subscribe","prev","unsubscribe","localParticipant","isInPiPMode","hasScreenShare","showSpotlightLayout","OS","unsubFunc","on","getLogger","debug","StreamVideoReactNative","exitPipMode","subscription","callingState$","LEFT","showFloatingView","isRemoteParticipantInFloatingView","incallManagerModeRef","prevInCallManager","start","media","current","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","children","includeLocalParticipantVideo","style","container","landscapeStyles","row","column","content","callParticipantsContainer","absoluteFill","view","topContainer","pointerEvents","participant","onPressHandler","objectFit","create","flexDirection","flex","paddingBottom","variants","insets","bottom","paddingLeft","left","paddingRight","right","paddingTop","top","backgroundColor","colors","sheetPrimary","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/CallContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnE,SAASC,aAAa,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACxE,SACEC,oBAAoB,EAEpBC,yBAAyB,QAEpB,eAAe;AACtB,SAEEC,YAAY,IAAIC,mBAAmB,QAE9B,iBAAiB;AACxB,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SACEC,YAAY,EAGZC,iBAAiB,QACZ,yBAAyB;AAChC,SAASC,YAAY,QAAQ,MAAM;AAEnC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SACEC,uBAAuB,IAAIC,8BAA8B,QAGpD,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,mBAAmB;AAK5C,SAASC,qBAAqB,EAAEC,cAAc,QAAQ,gBAAgB;AACtE,SACEC,kBAAkB,IAAIC,yBAAyB,QAE1C,kCAAkC;AACzC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,4BAA4B,QAAQ,gDAAgD;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AA+D9F,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAC1BC,mBAAmB;EACnBC,oBAAoB;EACpBzB,YAAY,GAAGC,mBAAmB;EAClCO,uBAAuB,GAAGC,8BAA8B;EACxDI,kBAAkB,GAAGC,yBAAyB;EAC9CY,gBAAgB;EAChBC,kCAAkC;EAClCC,mBAAmB;EACnBC,wBAAwB;EAC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