@stream-io/video-react-native-sdk 1.31.1 → 1.32.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 +22 -0
- package/android/src/main/AndroidManifest.xml +8 -1
- package/android/src/main/AndroidManifestNew.xml +11 -0
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +42 -5
- package/android/src/main/java/com/streamvideo/reactnative/audio/utils/WebRtcAudioUtils.kt +70 -6
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +6 -4
- package/android/src/main/java/com/streamvideo/reactnative/keepalive/KeepAliveNotification.kt +83 -0
- package/android/src/main/java/com/streamvideo/reactnative/keepalive/StreamCallKeepAliveHeadlessService.kt +149 -0
- package/dist/commonjs/hooks/push/index.js +0 -2
- package/dist/commonjs/hooks/push/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +146 -0
- package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +41 -106
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/modules/call-manager/CallManager.js +26 -0
- package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/index.js +6 -6
- package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +35 -21
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js +68 -0
- package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js.map +1 -0
- package/dist/commonjs/utils/internal/callingx/callingx.js +150 -0
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +53 -3
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/keepCallAliveHeadlessTask.js +48 -0
- package/dist/commonjs/utils/keepCallAliveHeadlessTask.js.map +1 -0
- package/dist/commonjs/utils/push/android.js +135 -202
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/internal/ios.js +17 -34
- package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
- package/dist/commonjs/utils/push/internal/rxSubjects.js +1 -45
- package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/commonjs/utils/push/internal/utils.js +71 -53
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callingx.js +75 -0
- package/dist/commonjs/utils/push/libs/callingx.js.map +1 -0
- package/dist/commonjs/utils/push/libs/index.js +8 -19
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/notifee/index.js +0 -23
- package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/commonjs/utils/push/setupCallingExpEvents.js +105 -0
- package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +1 -0
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +7 -6
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/hooks/push/index.js +0 -2
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +139 -0
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +42 -107
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/modules/call-manager/CallManager.js +26 -0
- package/dist/module/modules/call-manager/CallManager.js.map +1 -1
- package/dist/module/providers/StreamCall/index.js +6 -6
- package/dist/module/providers/StreamCall/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +35 -21
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/callingx/audioSessionPromise.js +61 -0
- package/dist/module/utils/internal/callingx/audioSessionPromise.js.map +1 -0
- package/dist/module/utils/internal/callingx/callingx.js +140 -0
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -0
- package/dist/module/utils/internal/registerSDKGlobals.js +53 -3
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/keepCallAliveHeadlessTask.js +42 -0
- package/dist/module/utils/keepCallAliveHeadlessTask.js.map +1 -0
- package/dist/module/utils/push/android.js +137 -204
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +17 -34
- package/dist/module/utils/push/internal/ios.js.map +1 -1
- package/dist/module/utils/push/internal/rxSubjects.js +0 -44
- package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +67 -50
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callingx.js +67 -0
- package/dist/module/utils/push/libs/callingx.js.map +1 -0
- package/dist/module/utils/push/libs/index.js +1 -2
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js +0 -21
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/setupCallingExpEvents.js +99 -0
- package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -0
- package/dist/module/utils/push/setupIosVoipPushEvents.js +7 -6
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/hooks/push/index.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
- package/dist/typescript/index.d.ts +1 -0
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/CallManager.d.ts +5 -0
- package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +22 -2
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +59 -25
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts +16 -0
- package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts.map +1 -0
- package/dist/typescript/utils/internal/callingx/callingx.d.ts +18 -0
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -0
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts +10 -0
- package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts.map +1 -0
- package/dist/typescript/utils/push/android.d.ts +1 -2
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts +0 -33
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/utils.d.ts +14 -8
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts +1 -2
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/callingx.d.ts +9 -0
- package/dist/typescript/utils/push/libs/callingx.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/index.d.ts +1 -2
- package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts +0 -2
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/setupCallingExpEvents.d.ts +8 -0
- package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +1 -0
- package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +1 -33
- package/expo-config-plugin/dist/withAndroidPermissions.js +2 -7
- package/expo-config-plugin/dist/withAppDelegate.js +19 -197
- package/expo-config-plugin/dist/withMainActivity.js +1 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js +2 -3
- package/ios/StreamInCallManager.m +2 -0
- package/ios/StreamInCallManager.swift +19 -7
- package/ios/StreamVideoReactNative-Bridging-Header.h +3 -1
- package/ios/StreamVideoReactNative.h +7 -4
- package/ios/StreamVideoReactNative.m +199 -84
- package/package.json +11 -16
- package/src/hooks/push/index.ts +0 -2
- package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +193 -0
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +21 -34
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +63 -129
- package/src/index.ts +1 -0
- package/src/modules/call-manager/CallManager.ts +36 -0
- package/src/modules/call-manager/native-module.d.ts +7 -0
- package/src/providers/StreamCall/index.tsx +6 -6
- package/src/utils/StreamVideoRN/index.ts +42 -30
- package/src/utils/StreamVideoRN/types.ts +61 -25
- package/src/utils/internal/callingx/audioSessionPromise.ts +65 -0
- package/src/utils/internal/callingx/callingx.ts +197 -0
- package/src/utils/internal/registerSDKGlobals.ts +52 -4
- package/src/utils/keepCallAliveHeadlessTask.ts +54 -0
- package/src/utils/push/android.ts +198 -311
- package/src/utils/push/internal/ios.ts +28 -44
- package/src/utils/push/internal/rxSubjects.ts +0 -61
- package/src/utils/push/internal/utils.ts +108 -64
- package/src/utils/push/ios.ts +1 -6
- package/src/utils/push/libs/callingx.ts +89 -0
- package/src/utils/push/libs/index.ts +1 -2
- package/src/utils/push/libs/notifee/index.ts +0 -31
- package/src/utils/push/setupCallingExpEvents.ts +135 -0
- package/src/utils/push/setupIosVoipPushEvents.ts +11 -7
- package/src/version.ts +1 -1
- package/android/src/main/java/com/streamvideo/reactnative/util/CallAliveServiceChecker.kt +0 -95
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -160
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +0 -67
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +0 -1
- package/dist/commonjs/utils/push/libs/callkeep.js +0 -17
- package/dist/commonjs/utils/push/libs/callkeep.js.map +0 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js +0 -17
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +0 -1
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +0 -205
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +0 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -153
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +0 -60
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +0 -1
- package/dist/module/utils/push/libs/callkeep.js +0 -11
- package/dist/module/utils/push/libs/callkeep.js.map +0 -1
- package/dist/module/utils/push/libs/voipPushNotification.js +0 -11
- package/dist/module/utils/push/libs/voipPushNotification.js.map +0 -1
- package/dist/module/utils/push/setupIosCallKeepEvents.js +0 -199
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +0 -1
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -5
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +0 -1
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +0 -8
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts +0 -3
- package/dist/typescript/utils/push/libs/callkeep.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +0 -3
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +0 -1
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts +0 -6
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +0 -1
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +0 -235
- package/src/hooks/push/useProcessPushCallEffect.ts +0 -108
- package/src/utils/push/libs/callkeep.ts +0 -16
- package/src/utils/push/libs/voipPushNotification.ts +0 -17
- package/src/utils/push/setupIosCallKeepEvents.ts +0 -252
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/***
|
|
2
|
+
* Internal utils for callingx library usage from video-client.
|
|
3
|
+
* See @./registerSDKGlobals.ts for more usage details.
|
|
4
|
+
*/
|
|
5
|
+
import { Platform } from 'react-native';
|
|
6
|
+
import { getCallingxLibIfAvailable } from '../../push/libs/callingx';
|
|
7
|
+
import { waitForAudioSessionActivation } from './audioSessionPromise';
|
|
8
|
+
import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
|
|
9
|
+
const CallingxModule = getCallingxLibIfAvailable();
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Gets the call display name. To be used for display in native call screen.
|
|
13
|
+
*/
|
|
14
|
+
export function getCallDisplayName(callMembers, participants, currentUserId) {
|
|
15
|
+
if (!callMembers || !participants || !currentUserId) {
|
|
16
|
+
return 'Call';
|
|
17
|
+
}
|
|
18
|
+
let names = [];
|
|
19
|
+
if (callMembers.length > 0) {
|
|
20
|
+
// for ringing calls, members array contains all call members from the very early state and participants array is empty in the beginning
|
|
21
|
+
names = callMembers.filter(member => member.user.id !== currentUserId).map(member => member.user.name).filter(name => name !== undefined);
|
|
22
|
+
} else if (participants.length > 0) {
|
|
23
|
+
// for non-ringing calls, members array is empty and we rely on participants array there
|
|
24
|
+
names = participants.filter(participant => participant.userId !== currentUserId).map(participant => participant.name).filter(Boolean);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// if no names are found, we use the name of the current user
|
|
28
|
+
if (names.length === 0) {
|
|
29
|
+
names = [participants.find(participant => participant.userId === currentUserId)?.name ?? 'Call'];
|
|
30
|
+
}
|
|
31
|
+
return names.sort().join(', ');
|
|
32
|
+
}
|
|
33
|
+
function getCallDisplayNameFromCall(call) {
|
|
34
|
+
return call.state.custom?.display_name ?? getCallDisplayName(call.state.members, call.state.participants, call.currentUserId);
|
|
35
|
+
}
|
|
36
|
+
export async function registerOutgoingCall(call) {
|
|
37
|
+
if (!CallingxModule || !CallingxModule.isSetup) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const isOutcomingCall = call.ringing && call.isCreatedByMe;
|
|
41
|
+
if (!isOutcomingCall) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const logger = videoLoggerSystem.getLogger('callingx');
|
|
45
|
+
try {
|
|
46
|
+
logger.debug(`registerOutgoingCall: Registering outgoing call ${call.cid}`);
|
|
47
|
+
await CallingxModule.startCall(call.cid,
|
|
48
|
+
// unique id for call
|
|
49
|
+
call.state.createdBy?.id ?? getCallDisplayNameFromCall(call),
|
|
50
|
+
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
51
|
+
getCallDisplayNameFromCall(call),
|
|
52
|
+
// display name for display in call screen
|
|
53
|
+
call.state.settings?.video?.enabled ?? false // is video call?
|
|
54
|
+
);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
logger.error(`registerOutgoingCall: Error registering outgoing call in callingx: ${call.cid}`, error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Starts the call in the callingx library.
|
|
62
|
+
* It is done by client on every join
|
|
63
|
+
* Does either of the following:
|
|
64
|
+
* 1. Sets the state for outgoing calls in the callingx library
|
|
65
|
+
* 2. Displays the incoming call in the callingx library
|
|
66
|
+
* 3. Optionally for non-ringing calls also when ongoing calls are enabled.
|
|
67
|
+
*/
|
|
68
|
+
export async function joinCallingxCall(call, activeCalls) {
|
|
69
|
+
if (!CallingxModule || !CallingxModule.isSetup) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const logger = videoLoggerSystem.getLogger('callingx');
|
|
73
|
+
const isOutcomingCall = call.ringing && call.isCreatedByMe;
|
|
74
|
+
const isIncomingCall = call.ringing && !call.isCreatedByMe;
|
|
75
|
+
if (isOutcomingCall || !call.ringing && CallingxModule.isOngoingCallsEnabled) {
|
|
76
|
+
try {
|
|
77
|
+
logger.debug(`joinCallingxCall: Joining call ${call.cid}`);
|
|
78
|
+
await CallingxModule.startCall(call.cid,
|
|
79
|
+
// unique id for call
|
|
80
|
+
call.state.createdBy?.id ?? getCallDisplayNameFromCall(call),
|
|
81
|
+
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
82
|
+
getCallDisplayNameFromCall(call),
|
|
83
|
+
// display name for display in call screen
|
|
84
|
+
call.state.settings?.video?.enabled ?? false // is video call?
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
// Wait for audio session activation on iOS only
|
|
88
|
+
if (Platform.OS === 'ios') {
|
|
89
|
+
await waitForAudioSessionActivation();
|
|
90
|
+
}
|
|
91
|
+
} catch (error) {
|
|
92
|
+
logger.error(`startCallingxCall: Error starting call in callingx: ${call.cid}`, error);
|
|
93
|
+
}
|
|
94
|
+
} else if (isIncomingCall) {
|
|
95
|
+
logger.debug(`joinCallingxCall: Joining incoming call ${call.cid}`);
|
|
96
|
+
try {
|
|
97
|
+
// Leave any existing active ringing calls before joining a new ringing call
|
|
98
|
+
const activeCallsToLeave = activeCalls.filter(c => c.cid !== call.cid && c.ringing && c.state.callingState !== CallingState.LEFT);
|
|
99
|
+
for (const activeCall of activeCallsToLeave) {
|
|
100
|
+
logger.debug(`leaving active call ${activeCall.cid} before joining ${call.cid}`);
|
|
101
|
+
await activeCall.leave({
|
|
102
|
+
reason: 'cancel'
|
|
103
|
+
}).catch(e => {
|
|
104
|
+
logger.error(`failed to leave active call ${activeCall.cid}`, e);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Awaits native CallKit/Telecom registration before answering.
|
|
109
|
+
// Safe to call even if the call is already registered (e.g. from VoIP push) --
|
|
110
|
+
// iOS early-returns with no error, Android sends the registered broadcast.
|
|
111
|
+
await CallingxModule.displayIncomingCall(call.cid,
|
|
112
|
+
// unique id for call
|
|
113
|
+
call.state.createdBy?.id ?? getCallDisplayNameFromCall(call),
|
|
114
|
+
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
115
|
+
getCallDisplayNameFromCall(call),
|
|
116
|
+
// display name for display in call screen
|
|
117
|
+
call.state.settings?.video?.enabled ?? false // is video call?
|
|
118
|
+
);
|
|
119
|
+
await CallingxModule.answerIncomingCall(call.cid);
|
|
120
|
+
if (Platform.OS === 'ios') {
|
|
121
|
+
await waitForAudioSessionActivation();
|
|
122
|
+
}
|
|
123
|
+
} catch (error) {
|
|
124
|
+
logger.error(`Error displaying incoming call in callingx: ${call.cid}`, error);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export async function endCallingxCall(call, reason) {
|
|
129
|
+
if (!CallingxModule || !CallingxModule.isSetup || !CallingxModule.isCallTracked(call.cid)) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const logger = videoLoggerSystem.getLogger('callingx');
|
|
133
|
+
try {
|
|
134
|
+
logger.debug(`endCallingxCall: Ending call ${call.cid}`);
|
|
135
|
+
await CallingxModule.endCallWithReason(call.cid, reason ?? 'local');
|
|
136
|
+
} catch (error) {
|
|
137
|
+
logger.error(`endCallingxCall: Error ending call in callingx: ${call.cid}`, error);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=callingx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","getCallingxLibIfAvailable","waitForAudioSessionActivation","CallingState","videoLoggerSystem","CallingxModule","getCallDisplayName","callMembers","participants","currentUserId","names","length","filter","member","user","id","map","name","undefined","participant","userId","Boolean","find","sort","join","getCallDisplayNameFromCall","call","state","custom","display_name","members","registerOutgoingCall","isSetup","isOutcomingCall","ringing","isCreatedByMe","logger","getLogger","debug","cid","startCall","createdBy","settings","video","enabled","error","joinCallingxCall","activeCalls","isIncomingCall","isOngoingCallsEnabled","OS","activeCallsToLeave","c","callingState","LEFT","activeCall","leave","reason","catch","e","displayIncomingCall","answerIncomingCall","endCallingxCall","isCallTracked","endCallWithReason"],"sourceRoot":"../../../../../src","sources":["utils/internal/callingx/callingx.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,yBAAyB,QAAQ,0BAA0B;AACpE,SAASC,6BAA6B,QAAQ,uBAAuB;AAMrE,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,yBAAyB;AACzE,MAAMC,cAAc,GAAGJ,yBAAyB,CAAC,CAAC;;AAElD;AACA;AACA;AACA,OAAO,SAASK,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,CA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;MAAE;MACVb,IAAI,CAACC,KAAK,CAACc,SAAS,EAAE1B,EAAE,IAAIU,0BAA0B,CAACC,IAAI,CAAC;MAAE;MAC9DD,0BAA0B,CAACC,IAAI,CAAC;MAAE;MAClCA,IAAI,CAACC,KAAK,CAACe,QAAQ,EAAEC,KAAK,EAAEC,OAAO,IAAI,KAAK,CAAE;MAChD,CAAC;MAED,MAAMvC,cAAc,CAACwD,kBAAkB,CAACnC,IAAI,CAACa,GAAG,CAAC;MAEjD,IAAIvC,QAAQ,CAACkD,EAAE,KAAK,KAAK,EAAE;QACzB,MAAMhD,6BAA6B,CAAC,CAAC;MACvC;IACF,CAAC,CAAC,OAAO2C,KAAK,EAAE;MACdT,MAAM,CAACS,KAAK,CACV,+CAA+CnB,IAAI,CAACa,GAAG,EAAE,EACzDM,KACF,CAAC;IACH;EACF;AACF;AAEA,OAAO,eAAeiB,eAAeA,CAACpC,IAAU,EAAE+B,MAAsB,EAAE;EACxE,IACE,CAACpD,cAAc,IACf,CAACA,cAAc,CAAC2B,OAAO,IACvB,CAAC3B,cAAc,CAAC0D,aAAa,CAACrC,IAAI,CAACa,GAAG,CAAC,EACvC;IACA;EACF;EAEA,MAAMH,MAAM,GAAGhC,iBAAiB,CAACiC,SAAS,CAAC,UAAU,CAAC;EACtD,IAAI;IACFD,MAAM,CAACE,KAAK,CAAC,gCAAgCZ,IAAI,CAACa,GAAG,EAAE,CAAC;IACxD,MAAMlC,cAAc,CAAC2D,iBAAiB,CAACtC,IAAI,CAACa,GAAG,EAAEkB,MAAM,IAAI,OAAO,CAAC;EACrE,CAAC,CAAC,OAAOZ,KAAK,EAAE;IACdT,MAAM,CAACS,KAAK,CACV,mDAAmDnB,IAAI,CAACa,GAAG,EAAE,EAC7DM,KACF,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -1,18 +1,68 @@
|
|
|
1
1
|
import { NativeModules, PermissionsAndroid, Platform } from 'react-native';
|
|
2
|
+
import { getCallingxLibIfAvailable } from '../push/libs/callingx';
|
|
3
|
+
import { endCallingxCall, registerOutgoingCall, joinCallingxCall } from './callingx/callingx';
|
|
2
4
|
const StreamInCallManagerNativeModule = NativeModules.StreamInCallManager;
|
|
3
5
|
const StreamVideoReactNativeModule = NativeModules.StreamVideoReactNative;
|
|
6
|
+
const CallingxModule = getCallingxLibIfAvailable();
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Checks if StreamInCallManager should be bypassed because CallKit is handling
|
|
10
|
+
* the audio session via CallingX.
|
|
11
|
+
*
|
|
12
|
+
* On iOS, when CallingX is set up and has a registered call, the audio session
|
|
13
|
+
* is managed by CallKit through CallingxImpl.swift.
|
|
14
|
+
* In this case, StreamInCallManager should not run to avoid conflicting audio
|
|
15
|
+
* session configurations.
|
|
16
|
+
*/
|
|
17
|
+
const shouldBypassForCallKit = ({
|
|
18
|
+
isRingingTypeCall
|
|
19
|
+
}) => {
|
|
20
|
+
if (Platform.OS !== 'ios') {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
if (!CallingxModule) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
const bypass = CallingxModule.isSetup && (isRingingTypeCall || CallingxModule.isOngoingCallsEnabled);
|
|
27
|
+
return bypass;
|
|
28
|
+
};
|
|
4
29
|
const streamRNVideoSDKGlobals = {
|
|
30
|
+
callingX: {
|
|
31
|
+
joinCall: joinCallingxCall,
|
|
32
|
+
endCall: endCallingxCall,
|
|
33
|
+
registerOutgoingCall: registerOutgoingCall
|
|
34
|
+
},
|
|
5
35
|
callManager: {
|
|
6
36
|
setup: ({
|
|
7
|
-
defaultDevice
|
|
37
|
+
defaultDevice,
|
|
38
|
+
isRingingTypeCall
|
|
8
39
|
}) => {
|
|
40
|
+
if (shouldBypassForCallKit({
|
|
41
|
+
isRingingTypeCall
|
|
42
|
+
})) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
9
45
|
StreamInCallManagerNativeModule.setDefaultAudioDeviceEndpointType(defaultDevice);
|
|
10
46
|
StreamInCallManagerNativeModule.setup();
|
|
11
47
|
},
|
|
12
|
-
start: (
|
|
48
|
+
start: ({
|
|
49
|
+
isRingingTypeCall
|
|
50
|
+
}) => {
|
|
51
|
+
if (shouldBypassForCallKit({
|
|
52
|
+
isRingingTypeCall
|
|
53
|
+
})) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
13
56
|
StreamInCallManagerNativeModule.start();
|
|
14
57
|
},
|
|
15
|
-
stop: (
|
|
58
|
+
stop: ({
|
|
59
|
+
isRingingTypeCall
|
|
60
|
+
}) => {
|
|
61
|
+
if (shouldBypassForCallKit({
|
|
62
|
+
isRingingTypeCall
|
|
63
|
+
})) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
16
66
|
StreamInCallManagerNativeModule.stop();
|
|
17
67
|
}
|
|
18
68
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","PermissionsAndroid","Platform","StreamInCallManagerNativeModule","StreamInCallManager","StreamVideoReactNativeModule","StreamVideoReactNative","streamRNVideoSDKGlobals","callManager","setup","defaultDevice","setDefaultAudioDeviceEndpointType","start","stop","permissions","check","permission","
|
|
1
|
+
{"version":3,"names":["NativeModules","PermissionsAndroid","Platform","getCallingxLibIfAvailable","endCallingxCall","registerOutgoingCall","joinCallingxCall","StreamInCallManagerNativeModule","StreamInCallManager","StreamVideoReactNativeModule","StreamVideoReactNative","CallingxModule","shouldBypassForCallKit","isRingingTypeCall","OS","bypass","isSetup","isOngoingCallsEnabled","streamRNVideoSDKGlobals","callingX","joinCall","endCall","callManager","setup","defaultDevice","setDefaultAudioDeviceEndpointType","start","stop","permissions","check","permission","nativeAndroidPermission","PERMISSIONS","CAMERA","RECORD_AUDIO","Boolean","checkPermission","registerSDKGlobals","global","streamRNVideoSDK"],"sourceRoot":"../../../../src","sources":["utils/internal/registerSDKGlobals.ts"],"mappings":"AACA,SAASA,aAAa,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc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ID,sBAAsB,CAAC;QAAEC;MAAkB,CAAC,CAAC,EAAE;QACjD;MACF;MACAN,+BAA+B,CAACoB,IAAI,CAAC,CAAC;IACxC;EACF,CAAC;EACDC,WAAW,EAAE;IACXC,KAAK,EAAE,MAAOC,UAAU,IAAK;MAC3B,IAAI5B,QAAQ,CAACY,EAAE,KAAK,SAAS,EAAE;QAC7B,MAAMiB,uBAAuB,GAC3BD,UAAU,KAAK,QAAQ,GACnB7B,kBAAkB,CAAC+B,WAAW,CAACC,MAAM,GACrChC,kBAAkB,CAAC+B,WAAW,CAACE,YAAY;QACjD,OAAOjC,kBAAkB,CAAC4B,KAAK,CAACE,uBAAuB,CAAC;MAC1D;;MAEA;MACA,OAAOI,OAAO,CACZ,MAAM1B,4BAA4B,CAAC2B,eAAe,GAAGN,UAAU,CACjE,CAAC;IACH;EACF;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,SAASO,kBAAkBA,CAAA,EAAG;EACnC,IAAI,CAACC,MAAM,CAACC,gBAAgB,EAAE;IAC5BD,MAAM,CAACC,gBAAgB,GAAGrB,uBAAuB;EACnD;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AppRegistry, Platform } from 'react-native';
|
|
2
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
3
|
+
import { StreamVideoRN } from './StreamVideoRN';
|
|
4
|
+
export const KEEP_CALL_ALIVE_HEADLESS_TASK_NAME = 'StreamVideoKeepCallAlive';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The keep-alive headless task needs access to the active `Call` instance.
|
|
8
|
+
* The keep-alive hook will set this reference before starting the native service.
|
|
9
|
+
*/
|
|
10
|
+
export const keepCallAliveCallRef = {
|
|
11
|
+
current: undefined
|
|
12
|
+
};
|
|
13
|
+
function registerKeepCallAliveHeadlessTaskOnce() {
|
|
14
|
+
if (Platform.OS !== 'android') return;
|
|
15
|
+
AppRegistry.registerHeadlessTask(KEEP_CALL_ALIVE_HEADLESS_TASK_NAME, () => async data => {
|
|
16
|
+
const logger = videoLoggerSystem.getLogger('KEEP_CALL_ALIVE_HEADLESS_TASK');
|
|
17
|
+
const callCid = data?.callCid;
|
|
18
|
+
const call = keepCallAliveCallRef.current;
|
|
19
|
+
if (!call) {
|
|
20
|
+
logger.warn('No active call instance available for keep-alive task; skipping.', {
|
|
21
|
+
callCid
|
|
22
|
+
});
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (callCid && call.cid && call.cid !== callCid) {
|
|
26
|
+
logger.warn('Keep-alive task callCid does not match active call; skipping.', {
|
|
27
|
+
callCid,
|
|
28
|
+
activeCallCid: call.cid
|
|
29
|
+
});
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const config = StreamVideoRN.getConfig();
|
|
33
|
+
const taskToRun = config.foregroundService.android.taskToRun;
|
|
34
|
+
try {
|
|
35
|
+
await taskToRun(call);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
logger.error('Keep-alive headless task failed', e);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
registerKeepCallAliveHeadlessTaskOnce();
|
|
42
|
+
//# sourceMappingURL=keepCallAliveHeadlessTask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AppRegistry","Platform","videoLoggerSystem","StreamVideoRN","KEEP_CALL_ALIVE_HEADLESS_TASK_NAME","keepCallAliveCallRef","current","undefined","registerKeepCallAliveHeadlessTaskOnce","OS","registerHeadlessTask","data","logger","getLogger","callCid","call","warn","cid","activeCallCid","config","getConfig","taskToRun","foregroundService","android","e","error"],"sourceRoot":"../../../src","sources":["utils/keepCallAliveHeadlessTask.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,cAAc;AAEpD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,OAAO,MAAMC,kCAAkC,GAAG,0BAA0B;;AA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