@stream-io/video-react-native-sdk 1.29.0-beta.1 → 1.29.0
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 +3114 -0
- package/android/src/main/AndroidManifest.xml +1 -8
- package/android/src/main/AndroidManifestNew.xml +0 -11
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +5 -42
- package/android/src/main/java/com/streamvideo/reactnative/audio/utils/WebRtcAudioUtils.kt +6 -70
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +4 -6
- package/android/src/main/java/com/streamvideo/reactnative/util/CallAliveServiceChecker.kt +95 -0
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +160 -0
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +31 -18
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +97 -64
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/index.js +0 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/modules/call-manager/CallManager.js +0 -26
- 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 +21 -33
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +3 -52
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +200 -145
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/internal/ios.js +34 -16
- package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
- package/dist/commonjs/utils/push/internal/rxSubjects.js +20 -1
- package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/commonjs/utils/push/internal/utils.js +1 -17
- 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/callkeep.js +17 -0
- package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -0
- package/dist/commonjs/utils/push/libs/index.js +19 -8
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/notifee/index.js +19 -0
- package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js +17 -0
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -0
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +205 -0
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -0
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +6 -7
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +153 -0
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +31 -18
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +99 -66
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/modules/call-manager/CallManager.js +0 -26
- 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 +21 -33
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/registerSDKGlobals.js +4 -53
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/push/android.js +202 -147
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +34 -16
- package/dist/module/utils/push/internal/ios.js.map +1 -1
- package/dist/module/utils/push/internal/rxSubjects.js +19 -0
- package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +0 -14
- 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/callkeep.js +11 -0
- package/dist/module/utils/push/libs/callkeep.js.map +1 -0
- package/dist/module/utils/push/libs/index.js +2 -1
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js +18 -0
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js +11 -0
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -0
- package/dist/module/utils/push/setupIosCallKeepEvents.js +199 -0
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -0
- package/dist/module/utils/push/setupIosVoipPushEvents.js +6 -7
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.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 +0 -1
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/CallManager.d.ts +0 -5
- package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +2 -20
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +29 -54
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts +2 -1
- 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 +12 -0
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/utils.d.ts +0 -4
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts +2 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts +3 -0
- package/dist/typescript/utils/push/libs/callkeep.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +2 -16
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/index.d.ts +2 -1
- package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts +1 -0
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +3 -0
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +1 -0
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts +6 -0
- package/dist/typescript/utils/push/setupIosCallKeepEvents.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/dist/typescript/version.d.ts.map +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +33 -1
- package/expo-config-plugin/dist/withAndroidPermissions.js +7 -2
- package/expo-config-plugin/dist/withAppDelegate.js +197 -19
- package/expo-config-plugin/dist/withMainActivity.js +1 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js +3 -2
- package/ios/StreamInCallManager.m +0 -2
- package/ios/StreamInCallManager.swift +5 -20
- package/ios/StreamVideoReactNative.h +4 -7
- package/ios/StreamVideoReactNative.m +82 -191
- package/package.json +17 -12
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +235 -0
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +34 -21
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +120 -94
- package/src/index.ts +0 -1
- package/src/modules/call-manager/CallManager.ts +0 -36
- package/src/modules/call-manager/native-module.d.ts +0 -7
- package/src/providers/StreamCall/index.tsx +6 -6
- package/src/utils/StreamVideoRN/index.ts +30 -40
- package/src/utils/StreamVideoRN/types.ts +29 -56
- package/src/utils/internal/registerSDKGlobals.ts +4 -47
- package/src/utils/push/android.ts +308 -223
- package/src/utils/push/internal/ios.ts +46 -25
- package/src/utils/push/internal/rxSubjects.ts +29 -0
- package/src/utils/push/internal/utils.ts +0 -25
- package/src/utils/push/ios.ts +6 -1
- package/src/utils/push/libs/callkeep.ts +16 -0
- package/src/utils/push/libs/index.ts +2 -1
- package/src/utils/push/libs/notifee/index.ts +27 -0
- package/src/utils/push/libs/voipPushNotification.ts +17 -0
- package/src/utils/push/setupIosCallKeepEvents.ts +252 -0
- package/src/utils/push/setupIosVoipPushEvents.ts +7 -11
- package/src/version.ts +1 -1
- package/android/src/main/java/com/streamvideo/reactnative/keepalive/KeepAliveNotification.kt +0 -83
- package/android/src/main/java/com/streamvideo/reactnative/keepalive/StreamCallKeepAliveHeadlessService.kt +0 -134
- package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +0 -216
- package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +0 -1
- package/dist/commonjs/utils/internal/audioSessionPromise.js +0 -46
- package/dist/commonjs/utils/internal/audioSessionPromise.js.map +0 -1
- package/dist/commonjs/utils/internal/callingx.js +0 -84
- package/dist/commonjs/utils/internal/callingx.js.map +0 -1
- package/dist/commonjs/utils/keepCallAliveHeadlessTask.js +0 -48
- package/dist/commonjs/utils/keepCallAliveHeadlessTask.js.map +0 -1
- package/dist/commonjs/utils/push/libs/callingx.js +0 -75
- package/dist/commonjs/utils/push/libs/callingx.js.map +0 -1
- package/dist/commonjs/utils/push/setupCallingExpEvents.js +0 -97
- package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +0 -1
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +0 -209
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +0 -1
- package/dist/module/utils/internal/audioSessionPromise.js +0 -39
- package/dist/module/utils/internal/audioSessionPromise.js.map +0 -1
- package/dist/module/utils/internal/callingx.js +0 -75
- package/dist/module/utils/internal/callingx.js.map +0 -1
- package/dist/module/utils/keepCallAliveHeadlessTask.js +0 -42
- package/dist/module/utils/keepCallAliveHeadlessTask.js.map +0 -1
- package/dist/module/utils/push/libs/callingx.js +0 -67
- package/dist/module/utils/push/libs/callingx.js.map +0 -1
- package/dist/module/utils/push/setupCallingExpEvents.js +0 -91
- package/dist/module/utils/push/setupCallingExpEvents.js.map +0 -1
- package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts +0 -5
- package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +0 -1
- package/dist/typescript/utils/internal/audioSessionPromise.d.ts +0 -16
- package/dist/typescript/utils/internal/audioSessionPromise.d.ts.map +0 -1
- package/dist/typescript/utils/internal/callingx.d.ts +0 -13
- package/dist/typescript/utils/internal/callingx.d.ts.map +0 -1
- package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts +0 -10
- package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/callingx.d.ts +0 -9
- package/dist/typescript/utils/push/libs/callingx.d.ts.map +0 -1
- package/dist/typescript/utils/push/setupCallingExpEvents.d.ts +0 -8
- package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +0 -1
- package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +0 -307
- package/src/utils/internal/audioSessionPromise.ts +0 -39
- package/src/utils/internal/callingx.ts +0 -108
- package/src/utils/keepCallAliveHeadlessTask.ts +0 -54
- package/src/utils/push/libs/callingx.ts +0 -90
- package/src/utils/push/setupCallingExpEvents.ts +0 -117
|
@@ -5,18 +5,6 @@ import {
|
|
|
5
5
|
} from '@stream-io/video-client';
|
|
6
6
|
import type { AndroidChannel } from '@notifee/react-native';
|
|
7
7
|
|
|
8
|
-
export type AndroidChannelConfig = {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
sound?: string;
|
|
12
|
-
vibration?: boolean;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type KeepAliveAndroidNotificationTexts = {
|
|
16
|
-
title: string;
|
|
17
|
-
body: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
8
|
export type NonRingingPushEvent =
|
|
21
9
|
| 'call.live_started'
|
|
22
10
|
| 'call.notification'
|
|
@@ -44,27 +32,6 @@ export type StreamVideoConfig = {
|
|
|
44
32
|
* @example "production-apn-video" or "staging-apn-video" based on the environment
|
|
45
33
|
*/
|
|
46
34
|
pushProviderName?: string;
|
|
47
|
-
supportsVideo?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Sound to play when an incoming call is received. Must be a valid sound resource name in the project.
|
|
50
|
-
* @default '' (no sound)
|
|
51
|
-
*/
|
|
52
|
-
sound?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Image to display when an incoming call is received. Must be a valid image resource name in the project.
|
|
55
|
-
* @default '' (no image)
|
|
56
|
-
*/
|
|
57
|
-
imageName?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Enable calls history. When enabled, the call will be added to the calls history.
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
callsHistory?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Timeout to display an incoming call. When the call is displayed for more than the timeout, the call will be rejected.
|
|
65
|
-
* @default 60000 (1 minute)
|
|
66
|
-
*/
|
|
67
|
-
displayCallTimeout?: number;
|
|
68
35
|
};
|
|
69
36
|
android: {
|
|
70
37
|
/**
|
|
@@ -94,21 +61,28 @@ export type StreamVideoConfig = {
|
|
|
94
61
|
* The notification channel to be used for incoming calls for Android.
|
|
95
62
|
* @example
|
|
96
63
|
* {
|
|
97
|
-
* id: '
|
|
98
|
-
* name: 'Incoming
|
|
99
|
-
*
|
|
100
|
-
* vibration?: boolean;
|
|
64
|
+
* id: 'stream_incoming_call',
|
|
65
|
+
* name: 'Incoming call notifications',
|
|
66
|
+
* importance: AndroidImportance.HIGH,
|
|
101
67
|
* }
|
|
102
68
|
*/
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* The transformer to be used to transform the call title in the notification for ringing and ongoing calls for Android.
|
|
106
|
-
*/
|
|
107
|
-
titleTransformer?: (memberName: string, incoming: boolean) => string;
|
|
69
|
+
incomingCallChannel?: AndroidChannel;
|
|
108
70
|
/**
|
|
109
|
-
*
|
|
71
|
+
* Functions to create the texts shown in the notification for incoming calls in Android.
|
|
72
|
+
* @example
|
|
73
|
+
* {
|
|
74
|
+
* getTitle: (createdUserName: string) => `Incoming call from ${createdUserName}`,
|
|
75
|
+
* getBody: (createdUserName: string) => `Tap to answer the call`
|
|
76
|
+
* getAcceptButtonTitle?: () => `Accept`,
|
|
77
|
+
* getDeclineButtonTitle?: () => `Decline`,
|
|
78
|
+
* }
|
|
110
79
|
*/
|
|
111
|
-
|
|
80
|
+
incomingCallNotificationTextGetters?: {
|
|
81
|
+
getTitle: (createdUserName: string) => string;
|
|
82
|
+
getBody: (createdUserName: string) => string;
|
|
83
|
+
getAcceptButtonTitle?: () => string;
|
|
84
|
+
getDeclineButtonTitle?: () => string;
|
|
85
|
+
};
|
|
112
86
|
/**
|
|
113
87
|
* Functions to create the texts shown in the notification for non ringing calls in Android.
|
|
114
88
|
* @example
|
|
@@ -137,16 +111,6 @@ export type StreamVideoConfig = {
|
|
|
137
111
|
getBody: (type: NonRingingPushEvent, createdUserName: string) => string;
|
|
138
112
|
};
|
|
139
113
|
};
|
|
140
|
-
/**
|
|
141
|
-
* Whether to enable ongoing calls.
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
enableOngoingCalls?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Whether to reject calls when the user is busy.
|
|
147
|
-
* @default false
|
|
148
|
-
*/
|
|
149
|
-
shouldRejectCallWhenBusy?: boolean;
|
|
150
114
|
/**
|
|
151
115
|
* This function is used to create a custom video client.
|
|
152
116
|
* This is used create a video client for incoming calls in the background and inform call events to the server.
|
|
@@ -166,6 +130,12 @@ export type StreamVideoConfig = {
|
|
|
166
130
|
* }
|
|
167
131
|
*/
|
|
168
132
|
createStreamVideoClient: () => Promise<StreamVideoClient | undefined>;
|
|
133
|
+
/** @deprecated This method will be removed in the future. Please watch for incoming and outgoing calls in the root component of your app.
|
|
134
|
+
Please see https://getstream.io/video/docs/react-native/advanced/ringing-calls/#watch-for-incoming-and-outgoing-calls for more information */
|
|
135
|
+
navigateAcceptCall?: () => void;
|
|
136
|
+
/** @deprecated This method will be removed in the future. Please watch for incoming and outgoing calls in the root component of your app.
|
|
137
|
+
Please see https://getstream.io/video/docs/react-native/advanced/ringing-calls/#watch-for-incoming-and-outgoing-calls for more information */
|
|
138
|
+
navigateToIncomingCall?: () => void;
|
|
169
139
|
/** Callback that is called when a non ringing push notification was tapped */
|
|
170
140
|
onTapNonRingingCallNotification?: (
|
|
171
141
|
call_cid: string,
|
|
@@ -177,11 +147,14 @@ export type StreamVideoConfig = {
|
|
|
177
147
|
/**
|
|
178
148
|
* The notification channel to keep call alive in the background for Android using a foreground service.
|
|
179
149
|
*/
|
|
180
|
-
channel:
|
|
150
|
+
channel: AndroidChannel;
|
|
181
151
|
/**
|
|
182
152
|
* The texts shown in the notification to keep call alive in the background
|
|
183
153
|
*/
|
|
184
|
-
notificationTexts:
|
|
154
|
+
notificationTexts: {
|
|
155
|
+
title: string;
|
|
156
|
+
body: string;
|
|
157
|
+
};
|
|
185
158
|
/**
|
|
186
159
|
* The task to run in the foreground service
|
|
187
160
|
* The task must resolve a promise once complete
|
|
@@ -1,63 +1,20 @@
|
|
|
1
1
|
import { StreamRNVideoSDKGlobals } from '@stream-io/video-client';
|
|
2
|
-
import { NativeModules
|
|
3
|
-
import { getCallingxLibIfAvailable } from '../push/libs/callingx';
|
|
4
|
-
import { endCallingxCall, startCallingxCall } from './callingx';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
5
3
|
|
|
6
4
|
const StreamInCallManagerNativeModule = NativeModules.StreamInCallManager;
|
|
7
5
|
|
|
8
|
-
const CallingxModule = getCallingxLibIfAvailable();
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Checks if StreamInCallManager should be bypassed because CallKit is handling
|
|
12
|
-
* the audio session via CallingX.
|
|
13
|
-
*
|
|
14
|
-
* On iOS, when CallingX is set up and has a registered call, the audio session
|
|
15
|
-
* is managed by CallKit through CallingxImpl.swift.
|
|
16
|
-
* In this case, StreamInCallManager should not run to avoid conflicting audio
|
|
17
|
-
* session configurations.
|
|
18
|
-
*/
|
|
19
|
-
const shouldBypassForCallKit = ({
|
|
20
|
-
isRingingTypeCall,
|
|
21
|
-
}: {
|
|
22
|
-
isRingingTypeCall: boolean;
|
|
23
|
-
}): boolean => {
|
|
24
|
-
if (Platform.OS !== 'ios') {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (!CallingxModule) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
const bypass =
|
|
31
|
-
CallingxModule.isSetup &&
|
|
32
|
-
(isRingingTypeCall || CallingxModule.isOngoingCallsEnabled);
|
|
33
|
-
return bypass;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
6
|
const streamRNVideoSDKGlobals: StreamRNVideoSDKGlobals = {
|
|
37
|
-
callingX: {
|
|
38
|
-
startCall: startCallingxCall,
|
|
39
|
-
endCall: endCallingxCall,
|
|
40
|
-
},
|
|
41
7
|
callManager: {
|
|
42
|
-
setup: ({ defaultDevice
|
|
43
|
-
if (shouldBypassForCallKit({ isRingingTypeCall })) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
8
|
+
setup: ({ defaultDevice }) => {
|
|
46
9
|
StreamInCallManagerNativeModule.setDefaultAudioDeviceEndpointType(
|
|
47
10
|
defaultDevice,
|
|
48
11
|
);
|
|
49
12
|
StreamInCallManagerNativeModule.setup();
|
|
50
13
|
},
|
|
51
|
-
start: (
|
|
52
|
-
if (shouldBypassForCallKit({ isRingingTypeCall })) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
14
|
+
start: () => {
|
|
55
15
|
StreamInCallManagerNativeModule.start();
|
|
56
16
|
},
|
|
57
|
-
stop: (
|
|
58
|
-
if (shouldBypassForCallKit({ isRingingTypeCall })) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
17
|
+
stop: () => {
|
|
61
18
|
StreamInCallManagerNativeModule.stop();
|
|
62
19
|
},
|
|
63
20
|
},
|