@stream-io/video-react-native-sdk 1.42.0 → 1.44.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 +41 -6
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +4 -9
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyCameraPreview.js +93 -0
- package/dist/commonjs/components/Call/Lobby/LobbyCameraPreview.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/index.js +11 -0
- package/dist/commonjs/components/Call/Lobby/index.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +4 -15
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js +10 -4
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
- package/dist/commonjs/contexts/ThemeContext.js +10 -0
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
- package/dist/commonjs/modules/call-manager/CallManager.js +37 -54
- package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
- package/dist/commonjs/providers/NoiseCancellation/lib.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/AudioInterruptionTracer.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/callingx.js +26 -37
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/commonjs/utils/internal/registerMediaEngine.js +41 -0
- package/dist/commonjs/utils/internal/registerMediaEngine.js.map +1 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +93 -35
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +6 -8
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +0 -9
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +4 -9
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyCameraPreview.js +87 -0
- package/dist/module/components/Call/Lobby/LobbyCameraPreview.js.map +1 -0
- package/dist/module/components/Call/Lobby/index.js +1 -0
- package/dist/module/components/Call/Lobby/index.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +6 -17
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js +11 -5
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js +10 -0
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js.map +1 -1
- package/dist/module/modules/call-manager/CallManager.js +36 -53
- package/dist/module/modules/call-manager/CallManager.js.map +1 -1
- package/dist/module/providers/NoiseCancellation/lib.js.map +1 -1
- package/dist/module/providers/StreamCall/AudioInterruptionTracer.js.map +1 -1
- package/dist/module/utils/internal/callingx/callingx.js +25 -38
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/module/utils/internal/registerMediaEngine.js +37 -0
- package/dist/module/utils/internal/registerMediaEngine.js.map +1 -0
- package/dist/module/utils/internal/registerSDKGlobals.js +95 -37
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/push/android.js +7 -9
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js +0 -8
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyCameraPreview.d.ts +28 -0
- package/dist/typescript/components/Call/Lobby/LobbyCameraPreview.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts +1 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts +11 -6
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts.map +1 -1
- package/dist/typescript/contexts/ThemeContext.d.ts +10 -1
- package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts +2 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/CallManager.d.ts +28 -6
- package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/types.d.ts +0 -1
- package/dist/typescript/modules/call-manager/types.d.ts.map +1 -1
- package/dist/typescript/providers/NoiseCancellation/lib.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall/AudioInterruptionTracer.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +3 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts +2 -0
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
- package/dist/typescript/utils/internal/registerMediaEngine.d.ts +15 -0
- package/dist/typescript/utils/internal/registerMediaEngine.d.ts.map +1 -0
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +0 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/withAndroidMessagingService.js +29 -3
- package/expo-config-plugin/dist/withIosScreenCapture/addBroadcastExtensionXcodeTarget.js +84 -2
- package/expo-config-plugin/dist/withIosScreenCapture/withPlistUpdates.js +3 -6
- package/expo-config-plugin/dist/withIosScreenCapture/withTarget.js +6 -4
- package/expo-config-plugin/static/AudioUploader.swift +230 -0
- package/expo-config-plugin/static/SampleHandler.swift +67 -14
- package/ios/StreamInCallManager.m +4 -0
- package/ios/StreamInCallManager.swift +44 -12
- package/ios/StreamVideoReactNative.m +15 -5
- package/package.json +27 -25
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +2 -2
- package/src/components/Call/Lobby/Lobby.tsx +4 -11
- package/src/components/Call/Lobby/LobbyCameraPreview.tsx +99 -0
- package/src/components/Call/Lobby/index.ts +1 -0
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +1 -2
- package/src/components/Participant/FloatingParticipantView/index.tsx +1 -4
- package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +56 -75
- package/src/components/Participant/ParticipantView/VideoRenderer/index.tsx +18 -7
- package/src/contexts/ThemeContext.tsx +10 -1
- package/src/hooks/useScreenShareButton.ts +2 -1
- package/src/modules/call-manager/CallManager.ts +41 -73
- package/src/modules/call-manager/native-module.d.ts +13 -0
- package/src/modules/call-manager/types.ts +0 -1
- package/src/providers/NoiseCancellation/lib.ts +1 -2
- package/src/providers/StreamCall/AudioInterruptionTracer.tsx +1 -2
- package/src/utils/StreamVideoRN/types.ts +4 -3
- package/src/utils/internal/callingx/callingx.ts +35 -44
- package/src/utils/internal/registerMediaEngine.ts +42 -0
- package/src/utils/internal/registerSDKGlobals.ts +115 -42
- package/src/utils/push/android.ts +9 -17
- package/src/utils/push/libs/firebaseMessaging/index.ts +0 -19
- package/src/version.ts +1 -1
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
3
4
|
import { NativeModules, PermissionsAndroid, Platform } from 'react-native';
|
|
4
|
-
import {
|
|
5
|
+
import { AudioEngineMuteMode, audioDeviceModuleEvents } from '@stream-io/react-native-webrtc';
|
|
5
6
|
import { getCallingxLibIfAvailable } from '../push/libs/callingx';
|
|
6
|
-
import { endCallingxCall, registerOutgoingCall, joinCallingxCall } from './callingx/callingx';
|
|
7
|
+
import { endCallingxCall, registerOutgoingCall, joinCallingxCall, wireAudioEngineSubscription, unwireAudioEngineSubscription } from './callingx/callingx';
|
|
8
|
+
import { registerCallMediaEngine } from './registerMediaEngine';
|
|
9
|
+
import { callManager as publicCallManager } from '../../modules/call-manager';
|
|
7
10
|
const StreamInCallManagerNativeModule = NativeModules.StreamInCallManager;
|
|
8
11
|
const StreamVideoReactNativeModule = NativeModules.StreamVideoReactNative;
|
|
9
12
|
const CallingxModule = getCallingxLibIfAvailable();
|
|
10
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Runs a fire-and-forget native call, logging instead of throwing on a bridge
|
|
16
|
+
* error so it can't crash the caller (e.g. the join/leave flow).
|
|
17
|
+
*/
|
|
18
|
+
const safeNativeCall = (label, fn) => {
|
|
19
|
+
try {
|
|
20
|
+
fn();
|
|
21
|
+
} catch (error) {
|
|
22
|
+
videoLoggerSystem.getLogger('CallManager').warn(`${label} failed`, error);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
11
26
|
/**
|
|
12
27
|
* Checks if StreamInCallManager should be bypassed because CallKit is handling
|
|
13
28
|
* the audio session via CallingX.
|
|
@@ -38,71 +53,113 @@ const shouldBypassForCallKit = ({
|
|
|
38
53
|
* run it in "telecom-managed" mode where it only keeps proximity/keep-screen-on/mute.
|
|
39
54
|
*/
|
|
40
55
|
const isAndroidTelecomManaged = ({
|
|
41
|
-
|
|
56
|
+
cid
|
|
42
57
|
}) => {
|
|
43
|
-
if (Platform.OS !== 'android') {
|
|
58
|
+
if (Platform.OS !== 'android' || !CallingxModule) {
|
|
44
59
|
return false;
|
|
45
60
|
}
|
|
46
|
-
if (!CallingxModule) {
|
|
61
|
+
if (!CallingxModule.isSetup || !CallingxModule.isTelecomBacked) {
|
|
47
62
|
return false;
|
|
48
63
|
}
|
|
49
|
-
|
|
64
|
+
// Trust Telecom's actual per-call registration. A call that never registered
|
|
65
|
+
// (e.g. Telecom registration failed) is not managed, so start() falls through
|
|
66
|
+
// to the classic path — this is where audio recovery happens.
|
|
67
|
+
return CallingxModule.isCallTracked(cid);
|
|
50
68
|
};
|
|
51
69
|
const streamRNVideoSDKGlobals = {
|
|
52
70
|
callingX: {
|
|
53
71
|
joinCall: joinCallingxCall,
|
|
54
72
|
endCall: endCallingxCall,
|
|
55
|
-
registerOutgoingCall: registerOutgoingCall
|
|
73
|
+
registerOutgoingCall: registerOutgoingCall,
|
|
74
|
+
wireAudioEngineSubscription: wireAudioEngineSubscription,
|
|
75
|
+
unwireAudioEngineSubscription: unwireAudioEngineSubscription
|
|
56
76
|
},
|
|
57
77
|
callManager: {
|
|
58
78
|
setup: ({
|
|
59
79
|
defaultDevice,
|
|
60
|
-
isRingingTypeCall
|
|
80
|
+
isRingingTypeCall,
|
|
81
|
+
cid
|
|
61
82
|
}) => {
|
|
62
|
-
|
|
83
|
+
const isTelecomManaged = isAndroidTelecomManaged({
|
|
84
|
+
cid
|
|
85
|
+
});
|
|
86
|
+
const isCallKitManaged = shouldBypassForCallKit({
|
|
63
87
|
isRingingTypeCall
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return;
|
|
88
|
+
});
|
|
89
|
+
if (Platform.OS === 'android') {
|
|
90
|
+
StreamInCallManagerNativeModule.setTelecomManagedMode(isTelecomManaged);
|
|
68
91
|
}
|
|
69
|
-
if (
|
|
70
|
-
|
|
71
|
-
})) {
|
|
72
|
-
// Telecom owns routing; forward the sticky preference to callingx and run the
|
|
73
|
-
// in-call manager in telecom-managed mode (proximity/keep-screen-on only).
|
|
74
|
-
CallingxModule?.setDefaultAudioDeviceEndpointType(defaultDevice);
|
|
75
|
-
StreamInCallManagerNativeModule.setTelecomManagedMode(true);
|
|
76
|
-
StreamInCallManagerNativeModule.setup();
|
|
77
|
-
return;
|
|
92
|
+
if (isTelecomManaged || isCallKitManaged) {
|
|
93
|
+
safeNativeCall('setup defaultAudioDevice (callingx)', () => CallingxModule?.setDefaultAudioDeviceEndpointType(defaultDevice));
|
|
78
94
|
}
|
|
79
|
-
if (
|
|
80
|
-
StreamInCallManagerNativeModule.
|
|
95
|
+
if (!isTelecomManaged) {
|
|
96
|
+
safeNativeCall('setup defaultAudioDevice', () => StreamInCallManagerNativeModule.setDefaultAudioDeviceEndpointType(defaultDevice));
|
|
81
97
|
}
|
|
82
|
-
StreamInCallManagerNativeModule.setDefaultAudioDeviceEndpointType(defaultDevice);
|
|
83
|
-
StreamInCallManagerNativeModule.setup();
|
|
84
98
|
},
|
|
85
99
|
start: ({
|
|
86
|
-
isRingingTypeCall
|
|
100
|
+
isRingingTypeCall,
|
|
101
|
+
cid
|
|
87
102
|
}) => {
|
|
103
|
+
// Apply the audio config a consumer recorded via `callManager.start(config)` at this single
|
|
104
|
+
// join-time start, before the native audio manager is activated.
|
|
105
|
+
const config = publicCallManager.getStoredConfig();
|
|
106
|
+
const deviceOverride = config?.audioRole === 'communicator' ? config.deviceEndpointType : undefined;
|
|
88
107
|
if (shouldBypassForCallKit({
|
|
89
108
|
isRingingTypeCall
|
|
90
109
|
})) {
|
|
110
|
+
// CallKit owns activation. Only forward an explicit endpoint override; the
|
|
111
|
+
// SpeakerManager-derived default was already forwarded via `setup`.
|
|
112
|
+
if (deviceOverride) {
|
|
113
|
+
safeNativeCall('start defaultAudioDevice (callingx)', () => CallingxModule?.setDefaultAudioDeviceEndpointType(deviceOverride));
|
|
114
|
+
safeNativeCall('start defaultAudioDevice', () => StreamInCallManagerNativeModule.setDefaultAudioDeviceEndpointType(deviceOverride));
|
|
115
|
+
}
|
|
91
116
|
return;
|
|
92
117
|
}
|
|
93
|
-
|
|
94
|
-
|
|
118
|
+
const isTelecomManaged = isAndroidTelecomManaged({
|
|
119
|
+
cid
|
|
120
|
+
});
|
|
121
|
+
if (Platform.OS === 'android') {
|
|
122
|
+
StreamInCallManagerNativeModule.setTelecomManagedMode(isTelecomManaged);
|
|
123
|
+
}
|
|
124
|
+
if (config?.audioRole) {
|
|
125
|
+
StreamInCallManagerNativeModule.setAudioRole(config.audioRole);
|
|
126
|
+
}
|
|
127
|
+
if (deviceOverride) {
|
|
128
|
+
// Override the SpeakerManager-derived default device (set via `setup`).
|
|
129
|
+
if (isTelecomManaged) {
|
|
130
|
+
safeNativeCall('start defaultAudioDevice (callingx)', () => CallingxModule?.setDefaultAudioDeviceEndpointType(deviceOverride));
|
|
131
|
+
} else {
|
|
132
|
+
safeNativeCall('start defaultAudioDevice', () => StreamInCallManagerNativeModule.setDefaultAudioDeviceEndpointType(deviceOverride));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const stereoOutput = config?.audioRole === 'listener';
|
|
136
|
+
StreamInCallManagerNativeModule.setEnableStereoAudioOutput(stereoOutput);
|
|
95
137
|
StreamInCallManagerNativeModule.start();
|
|
96
138
|
},
|
|
97
139
|
stop: ({
|
|
98
|
-
isRingingTypeCall
|
|
140
|
+
isRingingTypeCall,
|
|
141
|
+
shouldStopCallManager
|
|
99
142
|
}) => {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
143
|
+
// Clear the stored audio config so it doesn't carry into the next call.
|
|
144
|
+
publicCallManager.stop();
|
|
145
|
+
|
|
146
|
+
// We want to interact with ADM only when it was instantiated. This guards a case when
|
|
147
|
+
// leave is invoked for ringing call - in this case PC Factory and ADM are not yet created.
|
|
148
|
+
if (shouldStopCallManager) {
|
|
149
|
+
// Teardown of setMutedRecordingPrepared. Done here (before the CallKit gate)
|
|
150
|
+
// so it runs on both paths and while the call factory is still alive: leave()
|
|
151
|
+
// calls stop() before disposing the engine, so the ADM resolves to the call's
|
|
152
|
+
// factory rather than a default.
|
|
153
|
+
if (Platform.OS === 'ios') {
|
|
154
|
+
StreamInCallManagerNativeModule.setRecordingAlwaysPreparedMode(false);
|
|
155
|
+
}
|
|
156
|
+
if (shouldBypassForCallKit({
|
|
157
|
+
isRingingTypeCall
|
|
158
|
+
})) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
StreamInCallManagerNativeModule.stop();
|
|
104
162
|
}
|
|
105
|
-
StreamInCallManagerNativeModule.stop();
|
|
106
163
|
},
|
|
107
164
|
// iOS-only. Keep the AVAudioEngine mic-input (voice-processing) chain
|
|
108
165
|
// prepared while muted so the engine stays full-duplex and remote audio
|
|
@@ -116,9 +173,9 @@ const streamRNVideoSDKGlobals = {
|
|
|
116
173
|
if (enabled) {
|
|
117
174
|
// Mute via the voice-processing unit (it's the default, fail safe config here) so the input chain
|
|
118
175
|
// stays built while muted, rather than tearing the engine down.
|
|
119
|
-
|
|
176
|
+
StreamInCallManagerNativeModule.setMuteMode(AudioEngineMuteMode.VoiceProcessing);
|
|
120
177
|
}
|
|
121
|
-
|
|
178
|
+
StreamInCallManagerNativeModule.setRecordingAlwaysPreparedMode(enabled);
|
|
122
179
|
}
|
|
123
180
|
},
|
|
124
181
|
permissions: {
|
|
@@ -153,5 +210,6 @@ export function registerSDKGlobals() {
|
|
|
153
210
|
if (!globalThis.streamRNVideoSDK) {
|
|
154
211
|
globalThis.streamRNVideoSDK = streamRNVideoSDKGlobals;
|
|
155
212
|
}
|
|
213
|
+
registerCallMediaEngine();
|
|
156
214
|
}
|
|
157
215
|
//# sourceMappingURL=registerSDKGlobals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","PermissionsAndroid","Platform","
|
|
1
|
+
{"version":3,"names":["videoLoggerSystem","NativeModules","PermissionsAndroid","Platform","AudioEngineMuteMode","audioDeviceModuleEvents","getCallingxLibIfAvailable","endCallingxCall","registerOutgoingCall","joinCallingxCall","wireAudioEngineSubscription","unwireAudioEngineSubscription","registerCallMediaEngine","callManager","publicCallManager","StreamInCallManagerNativeModule","StreamInCallManager","StreamVideoReactNativeModule","StreamVideoReactNative","CallingxModule","safeNativeCall","label","fn","error","getLogger","warn","shouldBypassForCallKit","isRingingTypeCall","OS","bypass","isSetup","isOngoingCallsEnabled","isAndroidTelecomManaged","cid","isTelecomBacked","isCallTracked","streamRNVideoSDKGlobals","callingX","joinCall","endCall","setup","defaultDevice","isTelecomManaged","isCallKitManaged","setTelecomManagedMode","setDefaultAudioDeviceEndpointType","start","config","getStoredConfig","deviceOverride","audioRole","deviceEndpointType","undefined","setAudioRole","stereoOutput","setEnableStereoAudioOutput","stop","shouldStopCallManager","setRecordingAlwaysPreparedMode","setMutedRecordingPrepared","enabled","setMuteMode","VoiceProcessing","permissions","check","permission","nativeAndroidPermission","PERMISSIONS","CAMERA","RECORD_AUDIO","Boolean","checkPermission","nativeEvents","speechActivity","subscribe","cb","subscription","addSpeechActivityListener","data","isSoundDetected","event","remove","registerSDKGlobals","globalThis","streamRNVideoSDK"],"sourceRoot":"../../../../src","sources":["utils/internal/registerSDKGlobals.ts"],"mappings":";;AAAA,SAEEA,iBAAiB,QACZ,yBAAyB;AAChC,SAASC,aAAa,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAC1E,SACEC,mBAAmB,EACnBC,uBAAuB,QAClB,gCAAgC;AACvC,SAASC,yBAAyB,QAAQ,uBAAuB;AACjE,SACEC,eAAe,EACfC,oBAAoB,EACpBC,gBAAgB,E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AxB,uBAAuB,CAAC,CAAC;AAC3B","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
|
|
4
4
|
import { AppState, Platform } from 'react-native';
|
|
5
|
-
import { getFirebaseMessagingLib
|
|
5
|
+
import { getFirebaseMessagingLib } from './libs';
|
|
6
6
|
import { pushUnsubscriptionCallbacks } from './internal/constants';
|
|
7
7
|
import { canListenToWS, shouldCallBeClosed } from './internal/utils';
|
|
8
8
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
@@ -49,14 +49,12 @@ export async function initAndroidPushToken(client, pushConfig, setUnsubscribeLis
|
|
|
49
49
|
logger.debug(`sending firebase token: ${token} for userId: ${userId}`);
|
|
50
50
|
await client.addDevice(token, 'firebase', push_provider_name);
|
|
51
51
|
};
|
|
52
|
-
const messaging =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
await setDeviceToken(token);
|
|
59
|
-
}
|
|
52
|
+
const messaging = getFirebaseMessagingLib();
|
|
53
|
+
logger.debug(`setting firebase token listeners`);
|
|
54
|
+
const unsubscribe = messaging().onTokenRefresh(refreshedToken => setDeviceToken(refreshedToken));
|
|
55
|
+
setUnsubscribeListener(unsubscribe);
|
|
56
|
+
const token = await messaging().getToken();
|
|
57
|
+
await setDeviceToken(token);
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","videoLoggerSystem","AppState","Platform","getFirebaseMessagingLib","
|
|
1
|
+
{"version":3,"names":["CallingState","videoLoggerSystem","AppState","Platform","getFirebaseMessagingLib","pushUnsubscriptionCallbacks","canListenToWS","shouldCallBeClosed","setPushLogoutCallback","StreamVideoRN","getCallingxLib","lastFirebaseToken","token","userId","initAndroidPushToken","client","pushConfig","setUnsubscribeListener","OS","android","pushProviderName","logger","getLogger","setDeviceToken","streamClient","_user","id","anonymous","debug","removeDevice","err","warn","push_provider_name","addDevice","messaging","unsubscribe","onTokenRefresh","refreshedToken","getToken","firebaseDataHandler","data","getConfig","push","sender","type","call_cid","callingx","createStreamVideoClient","stopService","asForegroundService","backgroundTaskOwner","acquireBackgroundTask","catch","e","error","finishBackgroundTask","log","releaseBackgroundTask","_client","callFromPush","onRingingCall","mustEndCall","endCallReason","endCallWithReason","leave","reject","unsubscribeFunctions","on","event","_canListenToWS","forEach","fn","mustEndCallFromEvent","endCallReasonFromEvent","stateSubscription","state","callingState$","subscribe","callingState","IDLE","LEFT","endCallSubscription","addEventListener","callId","RINGING","reason","appStateSubscription","nextAppState","remove","get","cb","set"],"sourceRoot":"../../../../src","sources":["utils/push/android.ts"],"mappings":";;AAAA,SACEA,YAAY,EAEZC,iBAAiB,QACZ,yBAAyB;AAChC,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AAEjD,SAAsCC,uBAAuB,QAAQ,QAAQ;AAC7E,SAASC,2BAA2B,QAAQ,sBAAsB;AAClE,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kBAAkB;AACpE,SAASC,qBAAqB,QAAQ,gCAAgC;AACtE,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,cAAc,QAAQ,iBAAiB;AAIhD,IAAIC,iBAAiB,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;;AAEjD;AACA,OAAO,eAAeC,oBAAoBA,CACxCC,MAAyB,EACzBC,UAAsB,EACtBC,sBAAyD,EACzD;EACA,IAAId,QAAQ,CAACe,EAAE,KAAK,SAAS,IAAI,CAACF,UAAU,CAACG,OAAO,EAAEC,gBAAgB,EAAE;IACtE;EACF;EACA,MAAMC,MAAM,GAAGpB,iBAAiB,CAACqB,SAAS,CAAC,sBAAsB,CAAC;EAClE,MAAMC,cAAc,GAAG,MAAOX,KAAa,IAAK;IAC9C,MAAMC,MAAM,GAAGE,MA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,EAAEyB,OAAO,CAAEoB,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;UAChErF,2BAA2B,CAACsF,GAAG,CAAC9C,QAAQ,EAAEqB,oBAAoB,CAAC;QACjE,CAAC,CAAC,OAAOZ,KAAK,EAAE;UACdR,QAAQ,CAACU,GAAG,CACV,iDAAiDX,QAAQ,WAAWS,KAAK,EAAE,EAC3E,OACF,CAAC;UACDC,oBAAoB,CAAC,CAAC;QACxB;MACF,CAAC,EAAE,CAAC;IACN;IAEA,IAAIN,mBAAmB,EAAE;MACvB;MACA;IACF;IAEA,MAAMU,YAAY,GAAG,MAAM5C,MAAM,CAAC6C,aAAa,CAACf,QAAQ,CAAC;IAEzD,MAAM;MAAEgB,WAAW;MAAEC;IAAc,CAAC,GAAGvD,kBAAkB,CACvDoD,YAAY,EACZnB,IACF,CAAC;IACD,IAAIqB,WAAW,EAAE;MACfxC,MAAM,CAACO,KAAK,CACV,iEAAiEiB,QAAQ,yBAC3E,CAAC;MACDC,QAAQ,CAACiB,iBAAiB,CAAClB,QAAQ,EAAEiB,aAAa,CAAC;MACnDH,YAAY,CAACK,KAAK,CAAC;QAAEC,MAAM,EAAE;MAAM,CAAC,CAAC,CAACb,KAAK,CAAEE,KAAK,IAAK;QACrDjC,MAAM,CAACiC,KAAK,CACV,8CAA8CT,QAAQ,KAAKS,KAAK,EAClE,CAAC;MACH,CAAC,CAAC;IACJ;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { lib } from './lib';
|
|
4
|
-
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
5
4
|
const INSTALLATION_INSTRUCTION = 'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
|
|
6
5
|
export function getFirebaseMessagingLib() {
|
|
7
6
|
if (!lib) {
|
|
@@ -9,11 +8,4 @@ export function getFirebaseMessagingLib() {
|
|
|
9
8
|
}
|
|
10
9
|
return lib;
|
|
11
10
|
}
|
|
12
|
-
export function getFirebaseMessagingLibNoThrow(isExpo) {
|
|
13
|
-
if (!lib) {
|
|
14
|
-
const logger = videoLoggerSystem.getLogger('getFirebaseMessagingLibNoThrow');
|
|
15
|
-
logger.debug(`${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
|
|
16
|
-
}
|
|
17
|
-
return lib;
|
|
18
|
-
}
|
|
19
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lib","
|
|
1
|
+
{"version":3,"names":["lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAmB,OAAO;AAKtC,MAAMC,wBAAwB,GAC5B,6FAA6F;AAE/F,OAAO,SAASC,uBAAuBA,CAAA,EAA0B;EAC/D,IAAI,CAACF,GAAG,EAAE;IACR,MAAMG,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOD,GAAG;AACZ","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lobby.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/Lobby/Lobby.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Lobby.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/Lobby/Lobby.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;AAW3D,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC;IAC3D;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,+EAMnB,UAAU,sBA8DZ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link LobbyCameraPreview} component.
|
|
5
|
+
*/
|
|
6
|
+
export type LobbyCameraPreviewProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Resembles the CSS style object-fit.
|
|
9
|
+
*
|
|
10
|
+
* @default 'cover'
|
|
11
|
+
*/
|
|
12
|
+
objectFit?: 'contain' | 'cover';
|
|
13
|
+
/**
|
|
14
|
+
* Style applied to the preview view.
|
|
15
|
+
*/
|
|
16
|
+
style?: ViewStyle;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The lobby runs before the call is joined. This component drives the native
|
|
20
|
+
* camera capturer directly via {@link RTCCameraPreviewView} which requires
|
|
21
|
+
* no track/peer connection factory to be created.
|
|
22
|
+
*
|
|
23
|
+
* It is driven by the *intended* camera state (optimistic): the lobby camera
|
|
24
|
+
* toggle only updates `optimisticStatus`; the real WebRTC track is acquired and
|
|
25
|
+
* published at join.
|
|
26
|
+
*/
|
|
27
|
+
export declare const LobbyCameraPreview: ({ style, objectFit, }: LobbyCameraPreviewProps) => React.JSX.Element;
|
|
28
|
+
//# sourceMappingURL=LobbyCameraPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LobbyCameraPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/Lobby/LobbyCameraPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAwB,SAAS,EAAE,MAAM,cAAc,CAAC;AAO/D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,uBAGhC,uBAAuB,sBAiCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/Lobby/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/Lobby/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACxC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,MAAM,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACxC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,MAAM,MAAM,gCAAgC,GAC1C,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,GACtE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAC3D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC5C,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,aAAa,GAAG,QAAQ,CAAC,GAAG;IACnE;;OAEG;IACH,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAsCJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,mQAerC,4BAA4B,6BAoG9B,CAAC"}
|
package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type TrackSubscriberHandle = {
|
|
4
|
-
onLayoutUpdate: (event: LayoutChangeEvent) => void;
|
|
5
|
-
};
|
|
1
|
+
import { Call, SfuModels, type VideoTrackType } from '@stream-io/video-client';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
6
3
|
type TrackSubscriberProps = {
|
|
7
4
|
participantSessionId: string;
|
|
8
5
|
call: Call;
|
|
9
6
|
trackType: VideoTrackType;
|
|
10
7
|
isVisible: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The dimensions of the view rendering the track, owned by the parent so that
|
|
10
|
+
* the last reported layout survives a remount of this component.
|
|
11
|
+
*/
|
|
12
|
+
dimensions$: BehaviorSubject<SfuModels.VideoDimension | undefined>;
|
|
11
13
|
};
|
|
12
14
|
/**
|
|
13
15
|
* This component is used to subscribe to the video + audio track of the participant in the following cases:
|
|
@@ -20,6 +22,9 @@ type TrackSubscriberProps = {
|
|
|
20
22
|
* 1. When the participant stops publishing the video track
|
|
21
23
|
* 2. When the participant becomes invisible
|
|
22
24
|
*/
|
|
23
|
-
declare const TrackSubscriber:
|
|
25
|
+
declare const TrackSubscriber: {
|
|
26
|
+
(props: TrackSubscriberProps): null;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
24
29
|
export default TrackSubscriber;
|
|
25
30
|
//# sourceMappingURL=TrackSubscriber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrackSubscriber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"TrackSubscriber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EAKJ,SAAS,EAET,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EAMhB,MAAM,MAAM,CAAC;AAEd,KAAK,oBAAoB,GAAG;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,cAAc,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,EAAE,eAAe,CAAC,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;CACpE,CAAC;AAEF;;;;;;;;;;EAUE;AACF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;CAsDnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAI1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAyB/D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,oBAAoB,EAClB,0BAA0B,GAC1B,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,GACb,QAAQ,CACX,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,+IASrB,kBAAkB,uBAsMtB,CAAC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type Theme } from '../theme/theme';
|
|
3
|
+
/**
|
|
4
|
+
* Recursively marks every property of `T` as optional.
|
|
5
|
+
*
|
|
6
|
+
* The `extends object` guard is required, not cosmetic: `Theme` carries a
|
|
7
|
+
* `[component: string]: any` index signature, which the mapped type inherits.
|
|
8
|
+
* Without the guard that index signature becomes `DeepPartial<any>`, an
|
|
9
|
+
* all-object type that no primitive leaf can satisfy, and every theme override
|
|
10
|
+
* fails to typecheck. Guarding short-circuits `any` back to `any`.
|
|
11
|
+
*/
|
|
3
12
|
export type DeepPartial<T> = {
|
|
4
|
-
[P in keyof T]?: DeepPartial<T[P]
|
|
13
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
5
14
|
};
|
|
6
15
|
export type StreamThemeInputValue = {
|
|
7
16
|
mergedStyle?: Theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAsBF,eAAO,MAAM,WAAW,GAAI,QAAQ,kBAAkB,UAarD,CAAC;AAIF,eAAO,MAAM,YAAY,sBAExB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAChC,iBAAiB,CAAC,qBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAiBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,uFAAc,CAAC;AAEzC,eAAO,MAAM,QAAQ;;CASpB,CAAC"}
|
|
@@ -25,7 +25,8 @@ export type ScreenShareOptions = {
|
|
|
25
25
|
* (e.g., YouTube video audio) mixed with the user's microphone.
|
|
26
26
|
*
|
|
27
27
|
* - iOS in-app: Audio captured from RPScreenRecorder `.audioApp` buffers.
|
|
28
|
-
* - iOS broadcast: Audio
|
|
28
|
+
* - iOS broadcast: Audio captured in the Broadcast Upload Extension and
|
|
29
|
+
* streamed to the app over a dedicated socket, then mixed into the audio track.
|
|
29
30
|
* - Android: Audio captured via AudioPlaybackCaptureConfiguration (API 29+).
|
|
30
31
|
*
|
|
31
32
|
* Default: `false`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScreenShareButton.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenShareButton.ts"],"names":[],"mappings":"AAMA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,OAAO,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB
|
|
1
|
+
{"version":3,"file":"useScreenShareButton.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenShareButton.ts"],"names":[],"mappings":"AAMA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,OAAO,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAQF,eAAO,MAAM,oBAAoB;AAC/B;;;GAGG;AACH,+BAA+B,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAC1D;;;GAGG;AACH,8BAA8B,MAAM,IAAI;AACxC;;;GAGG;AACH,8BAA8B,MAAM,IAAI;AACxC;;;GAGG;AACH,uCAAuC,MAAM,IAAI;AACjD;;GAEG;AACH,qBAAqB,kBAAkB;;;;;;CAoIxC,CAAC"}
|
|
@@ -59,7 +59,23 @@ export declare class CallManager {
|
|
|
59
59
|
ios: IOSCallManager;
|
|
60
60
|
speaker: SpeakerManager;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* The audio config recorded via {@link start}. The SDK's internal call manager reads it at the
|
|
63
|
+
* next join-time start and applies it before the native audio manager is activated.
|
|
64
|
+
*/
|
|
65
|
+
private storedConfig?;
|
|
66
|
+
/**
|
|
67
|
+
* The config recorded via {@link start}.
|
|
68
|
+
*
|
|
69
|
+
* @internal Read by the SDK's internal call manager at join; not intended for app use.
|
|
70
|
+
*/
|
|
71
|
+
getStoredConfig: () => StreamInCallManagerConfig | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Records the desired audio config for the call.
|
|
74
|
+
*
|
|
75
|
+
* This does NOT start the native audio manager — the SDK owns native start/stop and applies this
|
|
76
|
+
* config at the next join-time start (before the audio manager is activated). Call it **before**
|
|
77
|
+
* joining. Calling it mid-call only updates the stored config; it does not change the running
|
|
78
|
+
* call's audio, and the new config takes effect on the next call/rejoin.
|
|
63
79
|
*
|
|
64
80
|
* @param config.audioRole The audio role to set. It can be one of the following:
|
|
65
81
|
* - `'communicator'`: (Default) For use cases like video or voice calls.
|
|
@@ -69,24 +85,30 @@ export declare class CallManager {
|
|
|
69
85
|
* It prioritizes high-quality stereo audio streaming.
|
|
70
86
|
* Audio routing is controlled by the OS, and manual switching is not supported.
|
|
71
87
|
*
|
|
72
|
-
* @param config.deviceEndpointType
|
|
73
|
-
*
|
|
88
|
+
* @param config.deviceEndpointType Overrides the default audio device endpoint. When omitted,
|
|
89
|
+
* the SDK uses the device derived from the call settings. It can be one of the following:
|
|
90
|
+
* - `'speaker'`: For normal video or voice calls.
|
|
74
91
|
* - `'earpiece'`: For voice-only mobile call type scenarios.
|
|
75
|
-
*
|
|
76
|
-
* @param config.enableStereoAudioOutput Whether to enable stereo audio output. Only supported for listener audio role.
|
|
77
92
|
*/
|
|
78
93
|
start: (config?: StreamInCallManagerConfig) => void;
|
|
79
94
|
/**
|
|
80
|
-
*
|
|
95
|
+
* Clears the stored audio config.
|
|
81
96
|
*/
|
|
82
97
|
stop: () => void;
|
|
83
98
|
/**
|
|
84
99
|
* For debugging purposes, will emit a log event with the current audio state.
|
|
85
100
|
* in the native layer.
|
|
101
|
+
*
|
|
102
|
+
* NOTE: This method might be called outside of the call JOIN/LEFT window,
|
|
103
|
+
* so it may lead to default peer connection factory and adm being created.
|
|
86
104
|
*/
|
|
87
105
|
logAudioState: () => void;
|
|
88
106
|
/**
|
|
89
107
|
* For debugging purposes, returns the current audio state as a string.
|
|
108
|
+
*
|
|
109
|
+
* NOTE: This method might be called outside of the call JOIN/LEFT window,
|
|
110
|
+
* so it may lead to default peer connection factory and adm being created.
|
|
111
|
+
*
|
|
90
112
|
* @returns A string containing the current audio state information.
|
|
91
113
|
*/
|
|
92
114
|
getAudioStateLog: () => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallManager.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/CallManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CallManager.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/CallManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AA+FjB;;GAEG;AACH,cAAM,mBAAmB;IACvB,OAAO,CAAC,YAAY,CAAC,CAAqB;IAC1C,OAAO,CAAC,yBAAyB,CAAS;IAE1C;;;;;;OAMG;IACH,OAAO,CAAC,0BAA0B,CAWhC;IAEF;;;OAGG;IACH,SAAS,QAAa,OAAO,CAAC,iBAAiB,CAAC,CAQ9C;IAEF;;;;OAIG;IACH,MAAM,GAAI,UAAU,MAAM,KAAG,IAAI,CAoB/B;IAEF;;;;OAIG;IACH,iBAAiB,GACf,UAAU,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,KAC3C,CAAC,MAAM,IAAI,CAAC,CAsCb;CACH;AAED,cAAM,cAAc;IAClB,OAAO,CAAC,YAAY,CAAC,CAAqB;IAE1C;;OAEG;IACH,kBAAkB,QAAO,IAAI,CAG3B;IAEF;;;;OAIG;IACH,4BAA4B,GAC1B,gBAAgB,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,KACzD,CAA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CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,aAAa,GAAG,UAAU,CAAC;IACnC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,SAAS,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC;IACE,SAAS,EAAE,cAAc,CAAC;IAC1B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,GACD;IACE,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,cAAc,4CAA4C,CAAC,CAAC;AAQ/E,wBAAgB,0CAA0C,gEAOzD;AAED,qBAAa,wBAAwB;IACnC,OAAO,CAAC,MAAM,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,cAAc,4CAA4C,CAAC,CAAC;AAQ/E,wBAAgB,0CAA0C,gEAOzD;AAED,qBAAa,wBAAwB;IACnC,OAAO,CAAC,MAAM,CAAC,yBAAyB,CACc;IAEtD,OAAO;IAEP,MAAM,CAAC,WAAW,IAAI,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;CAO9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioInterruptionTracer.d.ts","sourceRoot":"","sources":["../../../../src/providers/StreamCall/AudioInterruptionTracer.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"AudioInterruptionTracer.d.ts","sourceRoot":"","sources":["../../../../src/providers/StreamCall/AudioInterruptionTracer.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,eAAO,MAAM,uBAAuB,YA+BnC,CAAC"}
|
|
@@ -17,6 +17,9 @@ export type StreamVideoConfig = {
|
|
|
17
17
|
* @default undefined
|
|
18
18
|
*/
|
|
19
19
|
push?: {
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Expo is auto-detected; this value is ignored and the property will be removed in a future major version.
|
|
22
|
+
*/
|
|
20
23
|
isExpo?: boolean;
|
|
21
24
|
/**
|
|
22
25
|
* The publish options to be used when joining a call from a push notification.
|