@stream-io/video-react-native-sdk 1.35.0 → 1.36.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 +17 -0
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +9 -2
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +9 -2
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +11 -12
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +7 -2
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +7 -3
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/hooks/push/index.js +0 -4
- package/dist/commonjs/hooks/push/index.js.map +1 -1
- package/dist/commonjs/modules/call-manager/CallManager.js +6 -0
- package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +0 -17
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/callingx.js +55 -32
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +2 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +0 -93
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/index.js +0 -11
- package/dist/commonjs/utils/push/index.js.map +1 -1
- package/dist/commonjs/utils/push/internal/utils.js +2 -31
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callingx.js +9 -0
- package/dist/commonjs/utils/push/libs/callingx.js.map +1 -1
- package/dist/commonjs/utils/push/libs/index.js +0 -33
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/utils.js +0 -28
- package/dist/commonjs/utils/push/utils.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +9 -2
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +9 -2
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +11 -12
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +7 -2
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +7 -3
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/hooks/push/index.js +0 -4
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/modules/call-manager/CallManager.js +6 -0
- package/dist/module/modules/call-manager/CallManager.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +0 -17
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/callingx/callingx.js +56 -33
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/module/utils/internal/registerSDKGlobals.js +2 -0
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/push/android.js +1 -92
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/index.js +0 -1
- package/dist/module/utils/push/index.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +0 -28
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/libs/callingx.js +9 -0
- package/dist/module/utils/push/libs/callingx.js.map +1 -1
- package/dist/module/utils/push/libs/index.js +0 -3
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/utils.js +0 -25
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/TextBasedIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/hooks/push/index.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +0 -7
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +19 -40
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts +1 -6
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/index.d.ts +0 -1
- package/dist/typescript/utils/push/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/utils.d.ts +2 -10
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/callingx.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +16 -2
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/index.d.ts +0 -3
- package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/utils.d.ts +0 -6
- package/dist/typescript/utils/push/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/withAppDelegate.js +56 -0
- package/ios/StreamVideoReactNative.h +14 -0
- package/ios/StreamVideoReactNative.m +129 -7
- package/package.json +2 -12
- package/src/components/Call/RingingCallContent/IncomingCall.tsx +14 -2
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +14 -2
- package/src/components/Call/RingingCallContent/RingingCallContent.tsx +7 -12
- package/src/components/Call/RingingCallContent/TextBasedIndicator.tsx +13 -2
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +10 -2
- package/src/hooks/push/index.ts +0 -4
- package/src/modules/call-manager/CallManager.ts +6 -0
- package/src/utils/StreamVideoRN/index.ts +0 -22
- package/src/utils/StreamVideoRN/types.ts +19 -46
- package/src/utils/internal/callingx/callingx.ts +60 -29
- package/src/utils/internal/registerSDKGlobals.ts +2 -0
- package/src/utils/push/android.ts +1 -117
- package/src/utils/push/index.ts +0 -1
- package/src/utils/push/internal/utils.ts +1 -41
- package/src/utils/push/libs/callingx.ts +12 -0
- package/src/utils/push/libs/index.ts +0 -3
- package/src/utils/push/utils.ts +0 -37
- package/src/version.ts +1 -1
- package/dist/commonjs/hooks/push/useIosInitRemoteNotifications.js +0 -33
- package/dist/commonjs/hooks/push/useIosInitRemoteNotifications.js.map +0 -1
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +0 -49
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +0 -1
- package/dist/commonjs/utils/internal/newNotificationCallbacks.js +0 -17
- package/dist/commonjs/utils/internal/newNotificationCallbacks.js.map +0 -1
- package/dist/commonjs/utils/push/internal/rxSubjects.js +0 -13
- package/dist/commonjs/utils/push/internal/rxSubjects.js.map +0 -1
- package/dist/commonjs/utils/push/ios.js +0 -158
- package/dist/commonjs/utils/push/ios.js.map +0 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js +0 -25
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +0 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js +0 -17
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +0 -1
- package/dist/commonjs/utils/push/libs/notifee/index.js +0 -38
- package/dist/commonjs/utils/push/libs/notifee/index.js.map +0 -1
- package/dist/commonjs/utils/push/libs/notifee/lib.js +0 -16
- package/dist/commonjs/utils/push/libs/notifee/lib.js.map +0 -1
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js +0 -27
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js.map +0 -1
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +0 -43
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +0 -1
- package/dist/module/utils/internal/newNotificationCallbacks.js +0 -10
- package/dist/module/utils/internal/newNotificationCallbacks.js.map +0 -1
- package/dist/module/utils/push/internal/rxSubjects.js +0 -7
- package/dist/module/utils/push/internal/rxSubjects.js.map +0 -1
- package/dist/module/utils/push/ios.js +0 -148
- package/dist/module/utils/push/ios.js.map +0 -1
- package/dist/module/utils/push/libs/expoNotifications.js +0 -18
- package/dist/module/utils/push/libs/expoNotifications.js.map +0 -1
- package/dist/module/utils/push/libs/iosPushNotification.js +0 -11
- package/dist/module/utils/push/libs/iosPushNotification.js.map +0 -1
- package/dist/module/utils/push/libs/notifee/index.js +0 -31
- package/dist/module/utils/push/libs/notifee/index.js.map +0 -1
- package/dist/module/utils/push/libs/notifee/lib.js +0 -11
- package/dist/module/utils/push/libs/notifee/lib.js.map +0 -1
- package/dist/typescript/hooks/push/useIosInitRemoteNotifications.d.ts +0 -5
- package/dist/typescript/hooks/push/useIosInitRemoteNotifications.d.ts.map +0 -1
- package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts +0 -7
- package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts.map +0 -1
- package/dist/typescript/utils/internal/newNotificationCallbacks.d.ts +0 -10
- package/dist/typescript/utils/internal/newNotificationCallbacks.d.ts.map +0 -1
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts +0 -11
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +0 -1
- package/dist/typescript/utils/push/ios.d.ts +0 -14
- package/dist/typescript/utils/push/ios.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts +0 -6
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +0 -5
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts +0 -23
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/notifee/lib.d.ts +0 -4
- package/dist/typescript/utils/push/libs/notifee/lib.d.ts.map +0 -1
- package/src/hooks/push/useIosInitRemoteNotifications.ts +0 -29
- package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +0 -50
- package/src/utils/internal/newNotificationCallbacks.ts +0 -29
- package/src/utils/push/internal/rxSubjects.ts +0 -10
- package/src/utils/push/ios.ts +0 -207
- package/src/utils/push/libs/expoNotifications.ts +0 -32
- package/src/utils/push/libs/iosPushNotification.ts +0 -22
- package/src/utils/push/libs/notifee/index.ts +0 -41
- package/src/utils/push/libs/notifee/lib.ts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.36.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.35.0...@stream-io/video-react-native-sdk-1.36.0) (2026-05-25)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
- `@stream-io/react-native-callingx` updated to version `0.3.0`
|
|
10
|
+
|
|
11
|
+
- non ringing pn removal ([#2206](https://github.com/GetStream/stream-video-js/issues/2206)) ([fab78b3](https://github.com/GetStream/stream-video-js/commit/fab78b3cb6f2643a121e376a6c0166fbcacac655))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- added option to skip ringing notification in foreground ([#2213](https://github.com/GetStream/stream-video-js/issues/2213)) ([8b43986](https://github.com/GetStream/stream-video-js/commit/8b43986c89d510c75668967fde46d7cb75f1636f))
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- missing callingx iOS default audio route selection ([#2251](https://github.com/GetStream/stream-video-js/issues/2251)) ([067ebf4](https://github.com/GetStream/stream-video-js/commit/067ebf4a223d3f346fdb5edaa682272f3354af6b)), closes [#2219](https://github.com/GetStream/stream-video-js/issues/2219)
|
|
20
|
+
- missing safe area insets usage ([#2250](https://github.com/GetStream/stream-video-js/issues/2250)) ([932e409](https://github.com/GetStream/stream-video-js/commit/932e4090831f05b432a9935c30428a40a15c8f47))
|
|
21
|
+
|
|
5
22
|
## [1.35.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-1.34.0...@stream-io/video-react-native-sdk-1.35.0) (2026-05-18)
|
|
6
23
|
|
|
7
24
|
### Dependency Updates
|
|
@@ -32,14 +32,21 @@ const IncomingCall = ({
|
|
|
32
32
|
theme: {
|
|
33
33
|
colors,
|
|
34
34
|
incomingCall,
|
|
35
|
-
typefaces
|
|
35
|
+
typefaces,
|
|
36
|
+
variants
|
|
36
37
|
}
|
|
37
38
|
} = (0, _contexts.useTheme)();
|
|
38
39
|
const landscapeContentStyles = {
|
|
39
40
|
flexDirection: landscape ? 'row' : 'column'
|
|
40
41
|
};
|
|
42
|
+
const insetStyles = {
|
|
43
|
+
paddingTop: variants.insets.top,
|
|
44
|
+
paddingBottom: variants.insets.bottom,
|
|
45
|
+
paddingLeft: variants.insets.left,
|
|
46
|
+
paddingRight: variants.insets.right
|
|
47
|
+
};
|
|
41
48
|
return /*#__PURE__*/_react.default.createElement(Background, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
42
|
-
style: [styles.content, landscapeContentStyles, incomingCall.content]
|
|
49
|
+
style: [styles.content, landscapeContentStyles, insetStyles, incomingCall.content]
|
|
43
50
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
44
51
|
style: [styles.topContainer, incomingCall.topContainer]
|
|
45
52
|
}, /*#__PURE__*/_react.default.createElement(_UserInfo.UserInfo, null), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_videoReactBindings","_UserInfo","_CallControls","_contexts","e","__esModule","default","IncomingCall","onAcceptCallHandler","onRejectCallHandler","IncomingCallControls","DefaultIncomingCallControls","landscape","t","useI18n","theme","colors","incomingCall","typefaces","useTheme","landscapeContentStyles","flexDirection","createElement","Background","View","style","styles","content","topContainer","UserInfo","Text","incomingCallText","color","textPrimary","heading6","bottomContainer","incomingCallControls","exports","children","connectedUser","useConnectedUser","useCallMembers","useCallStateHooks","members","avatarsToShow","filter","user","id","map","image","length","ImageBackground","source","uri","background","backgroundColor","sheetTertiary","StyleSheet","create","flex","justifyContent","marginTop","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/RingingCallContent/IncomingCall.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,mBAAA,GAAAF,OAAA;AAKA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAA6C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C;AACA;AACA;;AAaA;AACA;AACA;AACA;AACO,MAAMG,YAAY,GAAGA,CAAC;EAC3BC,mBAAmB;EACnBC,mBAAmB;EACnBC,oBAAoB,GAAGC,kCAA2B;EAClDC;AACiB,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,2BAAO,EAAC,CAAC;EACvB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,YAAY;MAAEC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_videoReactBindings","_UserInfo","_CallControls","_contexts","e","__esModule","default","IncomingCall","onAcceptCallHandler","onRejectCallHandler","IncomingCallControls","DefaultIncomingCallControls","landscape","t","useI18n","theme","colors","incomingCall","typefaces","variants","useTheme","landscapeContentStyles","flexDirection","insetStyles","paddingTop","insets","top","paddingBottom","bottom","paddingLeft","left","paddingRight","right","createElement","Background","View","style","styles","content","topContainer","UserInfo","Text","incomingCallText","color","textPrimary","heading6","bottomContainer","incomingCallControls","exports","children","connectedUser","useConnectedUser","useCallMembers","useCallStateHooks","members","avatarsToShow","filter","user","id","map","image","length","ImageBackground","source","uri","background","backgroundColor","sheetTertiary","StyleSheet","create","flex","justifyContent","marginTop","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/RingingCallContent/IncomingCall.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,mBAAA,GAAAF,OAAA;AAKA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAA6C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C;AACA;AACA;;AAaA;AACA;AACA;AACA;AACO,MAAMG,YAAY,GAAGA,CAAC;EAC3BC,mBAAmB;EACnBC,mBAAmB;EACnBC,oBAAoB,GAAGC,kCAA2B;EAClDC;AACiB,CAAC,K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,MAAA,CAAAU,OAAA,CAAA2B,aAAA,CAAClC,YAAA,CAAA+D,eAAe;MACdC,MAAM,EAAE;QACNC,GAAG,EAAET,aAAa,CAAC,CAAC;MACtB,CAAE;MACFnB,KAAK,EAAE,CACLC,MAAM,CAAC4B,UAAU,EACjB;QAAEC,eAAe,EAAElD,MAAM,CAACmD;MAAc,CAAC,EACzClD,YAAY,CAACgD,UAAU;IACvB,GAEDhB,QACc,CAAC;EAEtB;EACA,oBACErD,MAAA,CAAAU,OAAA,CAAA2B,aAAA,CAAClC,YAAA,CAAAoC,IAAI;IACHC,KAAK,EAAE,CACLC,MAAM,CAAC4B,UAAU,EACjB;MAAEC,eAAe,EAAElD,MAAM,CAACmD;IAAc,CAAC,EACzClD,YAAY,CAACgD,UAAU;EACvB,GAEDhB,QACG,CAAC;AAEX,CAAC;AAEM,MAAMZ,MAAM,GAAAW,OAAA,CAAAX,MAAA,GAAG+B,uBAAU,CAACC,MAAM,CAAC;EACtCJ,UAAU,EAAE;IACVK,IAAI,EAAE;EACR,CAAC;EACDhC,OAAO,EAAE;IACPgC,IAAI,EAAE;EACR,CAAC;EACD/B,YAAY,EAAE;IAAE+B,IAAI,EAAE,CAAC;IAAEC,cAAc,EAAE;EAAS,CAAC;EACnD7B,gBAAgB,EAAE;IAChB8B,SAAS,EAAE,CAAC;IACZC,SAAS,EAAE;EACb,CAAC;EACD3B,eAAe,EAAE;IAAEwB,IAAI,EAAE,CAAC;IAAEC,cAAc,EAAE;EAAS,CAAC;EACtDxB,oBAAoB,EAAE;IACpBwB,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -30,7 +30,8 @@ const OutgoingCall = ({
|
|
|
30
30
|
theme: {
|
|
31
31
|
colors,
|
|
32
32
|
typefaces,
|
|
33
|
-
outgoingCall
|
|
33
|
+
outgoingCall,
|
|
34
|
+
variants
|
|
34
35
|
}
|
|
35
36
|
} = (0, _ThemeContext.useTheme)();
|
|
36
37
|
const {
|
|
@@ -39,10 +40,16 @@ const OutgoingCall = ({
|
|
|
39
40
|
const landscapeContentStyles = {
|
|
40
41
|
flexDirection: landscape ? 'row' : 'column'
|
|
41
42
|
};
|
|
43
|
+
const insetStyles = {
|
|
44
|
+
paddingTop: variants.insets.top,
|
|
45
|
+
paddingBottom: variants.insets.bottom,
|
|
46
|
+
paddingLeft: variants.insets.left,
|
|
47
|
+
paddingRight: variants.insets.right
|
|
48
|
+
};
|
|
42
49
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
43
50
|
style: [_reactNative.StyleSheet.absoluteFill, styles.container, outgoingCall.container]
|
|
44
51
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
|
-
style: [styles.content, landscapeContentStyles, outgoingCall.content]
|
|
52
|
+
style: [styles.content, landscapeContentStyles, insetStyles, outgoingCall.content]
|
|
46
53
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
47
54
|
style: [styles.topContainer, outgoingCall.topContainer]
|
|
48
55
|
}, /*#__PURE__*/_react.default.createElement(_UserInfo.UserInfo, null), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_UserInfo","_constants","_videoReactBindings","_reactNativeWebrtc","_ThemeContext","_CallControls","e","__esModule","default","OutgoingCall","onHangupCallHandler","OutgoingCallControls","DefaultOutgoingCallControls","landscape","theme","colors","typefaces","outgoingCall","useTheme","t","useI18n","landscapeContentStyles","flexDirection","createElement","Fragment","View","style","StyleSheet","absoluteFill","styles","container","content","topContainer","UserInfo","Text","callingText","color","textPrimary","heading6","bottomContainer","outgoingCallControls","Background","exports","useCameraState","useCallStateHooks","isMute","camera","localVideoStream","state","mediaStream","background","backgroundColor","sheetSecondary","RTCView","streamURL","toURL","zOrder","Z_INDEX","IN_BACK","mirror","objectFit","create","flex","zIndex","IN_MIDDLE","justifyContent","marginTop","textAlign","alignSelf"],"sourceRoot":"../../../../../src","sources":["components/Call/RingingCallContent/OutgoingCall.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAGyB,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzB;AACA;AACA;;AAaA;AACA;AACA;AACA;AACO,MAAMG,YAAY,GAAGA,CAAC;EAC3BC,mBAAmB;EACnBC,oBAAoB,GAAGC,kCAA2B;EAClDC;AACiB,CAAC,KAAK;EACvB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_UserInfo","_constants","_videoReactBindings","_reactNativeWebrtc","_ThemeContext","_CallControls","e","__esModule","default","OutgoingCall","onHangupCallHandler","OutgoingCallControls","DefaultOutgoingCallControls","landscape","theme","colors","typefaces","outgoingCall","variants","useTheme","t","useI18n","landscapeContentStyles","flexDirection","insetStyles","paddingTop","insets","top","paddingBottom","bottom","paddingLeft","left","paddingRight","right","createElement","Fragment","View","style","StyleSheet","absoluteFill","styles","container","content","topContainer","UserInfo","Text","callingText","color","textPrimary","heading6","bottomContainer","outgoingCallControls","Background","exports","useCameraState","useCallStateHooks","isMute","camera","localVideoStream","state","mediaStream","background","backgroundColor","sheetSecondary","RTCView","streamURL","toURL","zOrder","Z_INDEX","IN_BACK","mirror","objectFit","create","flex","zIndex","IN_MIDDLE","justifyContent","marginTop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,CACG,CAAC;AAEX,CAAC;AAED,MAAM/B,MAAM,GAAGF,uBAAU,CAACkC,MAAM,CAAC;EAC/BX,UAAU,EAAE;IACVY,IAAI,EAAE;EACR,CAAC;EACDhC,SAAS,EAAE;IACTiC,MAAM,EAAEN,kBAAO,CAACO;EAClB,CAAC;EACDhC,YAAY,EAAE;IAAE8B,IAAI,EAAE,CAAC;IAAEG,cAAc,EAAE;EAAS,CAAC;EACnDlC,OAAO,EAAE;IACP+B,IAAI,EAAE;EACR,CAAC;EACD3B,WAAW,EAAE;IACX+B,SAAS,EAAE,EAAE;IACbC,SAAS,EAAE;EACb,CAAC;EACD5B,eAAe,EAAE;IAAEuB,IAAI,EAAE,CAAC;IAAEM,SAAS,EAAE,QAAQ;IAAEH,cAAc,EAAE;EAAS,CAAC;EAC3EzB,oBAAoB,EAAE;IACpByB,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -15,6 +15,7 @@ var _CallLeftIndicator = require("./CallLeftIndicator");
|
|
|
15
15
|
var _CallPreparingIndicator = require("./CallPreparingIndicator");
|
|
16
16
|
var _contexts = require("../../../contexts");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
18
19
|
/**
|
|
19
20
|
* Props for the RingingCallContent component
|
|
20
21
|
*/
|
|
@@ -26,14 +27,11 @@ const RingingCallPanel = ({
|
|
|
26
27
|
CallLeftIndicator = _CallLeftIndicator.CallLeftIndicator,
|
|
27
28
|
CallPreparingIndicator = _CallPreparingIndicator.CallPreparingIndicator,
|
|
28
29
|
landscape,
|
|
29
|
-
onBackPress
|
|
30
|
+
onBackPress,
|
|
31
|
+
callingState
|
|
30
32
|
}) => {
|
|
31
33
|
const call = (0, _videoReactBindings.useCall)();
|
|
32
34
|
const isCallCreatedByMe = call?.isCreatedByMe;
|
|
33
|
-
const {
|
|
34
|
-
useCallCallingState
|
|
35
|
-
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
36
|
-
const callingState = useCallCallingState();
|
|
37
35
|
switch (callingState) {
|
|
38
36
|
case _videoClient.CallingState.RINGING:
|
|
39
37
|
return isCallCreatedByMe ? OutgoingCall && /*#__PURE__*/_react.default.createElement(OutgoingCall, {
|
|
@@ -65,14 +63,15 @@ const RingingCallContent = props => {
|
|
|
65
63
|
ringingCallContent
|
|
66
64
|
}
|
|
67
65
|
} = (0, _contexts.useTheme)();
|
|
66
|
+
const {
|
|
67
|
+
useCallCallingState
|
|
68
|
+
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
69
|
+
const callingState = useCallCallingState();
|
|
68
70
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
69
|
-
style: [
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement(RingingCallPanel, props
|
|
71
|
+
style: [_reactNative.StyleSheet.absoluteFill, ringingCallContent.container]
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(RingingCallPanel, _extends({}, props, {
|
|
73
|
+
callingState: callingState
|
|
74
|
+
})));
|
|
71
75
|
};
|
|
72
76
|
exports.RingingCallContent = RingingCallContent;
|
|
73
|
-
const styles = _reactNative.StyleSheet.create({
|
|
74
|
-
container: {
|
|
75
|
-
..._reactNative.StyleSheet.absoluteFillObject
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
77
|
//# sourceMappingURL=RingingCallContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_interopRequireDefault","_reactNative","_CallContent","_IncomingCall","_OutgoingCall","_CallLeftIndicator","_CallPreparingIndicator","_contexts","e","__esModule","default","RingingCallPanel","IncomingCall","DefaultIncomingCall","OutgoingCall","DefaultOutgoingCall","CallContent","DefaultCallContent","CallLeftIndicator","DefaultCallLeftIndicator","CallPreparingIndicator","DefaultCallPreparingIndicator","landscape","onBackPress","
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_videoReactBindings","_react","_interopRequireDefault","_reactNative","_CallContent","_IncomingCall","_OutgoingCall","_CallLeftIndicator","_CallPreparingIndicator","_contexts","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","RingingCallPanel","IncomingCall","DefaultIncomingCall","OutgoingCall","DefaultOutgoingCall","CallContent","DefaultCallContent","CallLeftIndicator","DefaultCallLeftIndicator","CallPreparingIndicator","DefaultCallPreparingIndicator","landscape","onBackPress","callingState","useCall","isCallCreatedByMe","isCreatedByMe","CallingState","RINGING","createElement","LEFT","IDLE","RingingCallContent","props","theme","ringingCallContent","useTheme","useCallCallingState","useCallStateHooks","View","style","StyleSheet","absoluteFill","container","exports"],"sourceRoot":"../../../../../src","sources":["components/Call/RingingCallContent/RingingCallContent.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAIA,IAAAM,aAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AAIA,IAAAQ,kBAAA,GAAAR,OAAA;AAIA,IAAAS,uBAAA,GAAAT,OAAA;AAIA,IAAAU,SAAA,GAAAV,OAAA;AAA6C,SAAAG,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,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AAA,CAAAW,OAAA,CAAAgC,aAAA,CAACd,WAAW;QAACM,SAAS,EAAEA;MAAU,CAAE,CAAC;EAC/D;AACF,CAAC;;AAED;AACA;AACA;AACO,MAAMW,kBAAkB,GAAIC,KAA8B,IAAK;EACpE,MAAM;IACJC,KAAK,EAAE;MAAEC;IAAmB;EAC9B,CAAC,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EACd,MAAM;IAAEC;EAAoB,CAAC,GAAG,IAAAC,qCAAiB,EAAC,CAAC;EACnD,MAAMf,YAAY,GAAGc,mBAAmB,CAAC,CAAC;EAE1C,oBACEnD,MAAA,CAAAW,OAAA,CAAAgC,aAAA,CAACzC,YAAA,CAAAmD,IAAI;IAACC,KAAK,EAAE,CAACC,uBAAU,CAACC,YAAY,EAAEP,kBAAkB,CAACQ,SAAS;EAAE,gBACnEzD,MAAA,CAAAW,OAAA,CAAAgC,aAAA,CAACnB,gBAAgB,EAAAZ,QAAA,KAAKmC,KAAK;IAAEV,YAAY,EAAEA;EAAa,EAAE,CACtD,CAAC;AAEX,CAAC;AAACqB,OAAA,CAAAZ,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -15,13 +15,18 @@ const TextBasedIndicator = props => {
|
|
|
15
15
|
colors,
|
|
16
16
|
typefaces,
|
|
17
17
|
variants: {
|
|
18
|
-
iconSizes
|
|
18
|
+
iconSizes,
|
|
19
|
+
insets
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
} = (0, _ThemeContext.useTheme)();
|
|
22
23
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
23
24
|
style: [styles.container, {
|
|
24
|
-
backgroundColor: colors.sheetTertiary
|
|
25
|
+
backgroundColor: colors.sheetTertiary,
|
|
26
|
+
paddingTop: insets.top,
|
|
27
|
+
paddingBottom: insets.bottom,
|
|
28
|
+
paddingLeft: insets.left,
|
|
29
|
+
paddingRight: insets.right
|
|
25
30
|
}]
|
|
26
31
|
}, props.onBackPress && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
27
32
|
style: styles.backContainer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_Back","e","__esModule","default","TextBasedIndicator","props","theme","colors","typefaces","variants","iconSizes","useTheme","createElement","View","style","styles","container","backgroundColor","sheetTertiary","onBackPress","backContainer","Pressable","onPress","pressed","opacity","height","md","width","Back","color","iconPrimary","textContainer","Text","text","textPrimary","heading6","exports","StyleSheet","create","flex","padding","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_Back","e","__esModule","default","TextBasedIndicator","props","theme","colors","typefaces","variants","iconSizes","insets","useTheme","createElement","View","style","styles","container","backgroundColor","sheetTertiary","paddingTop","top","paddingBottom","bottom","paddingLeft","left","paddingRight","right","onBackPress","backContainer","Pressable","onPress","pressed","opacity","height","md","width","Back","color","iconPrimary","textContainer","Text","text","textPrimary","heading6","exports","StyleSheet","create","flex","padding","justifyContent","alignItems","fontSize"],"sourceRoot":"../../../../../src","sources":["components/Call/RingingCallContent/TextBasedIndicator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAA2C,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOpC,MAAMG,kBAAkB,GAAIC,KAA8B,IAAK;EACpE,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,SAAS;MACTC,QAAQ,EAAE;QAAEC,SAAS;QAAEC;MAAO;IAChC;EACF,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAEd,oBACEjB,MAAA,CAAAQ,OAAA,CAAAU,aAAA,CAACf,YAAA,CAAAgB,I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,kBAAA;AAEF,MAAMY,MAAM,GAAG8B,uBAAU,CAACC,MAAM,CAAC;EAC/B9B,SAAS,EAAE;IACT+B,IAAI,EAAE;EACR,CAAC;EACDnB,aAAa,EAAE;IACboB,OAAO,EAAE,CAAC;IACV7B,UAAU,EAAE;EACd,CAAC;EACDoB,aAAa,EAAE;IACbQ,IAAI,EAAE,CAAC;IACPE,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDT,IAAI,EAAE;IACJU,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -98,12 +98,16 @@ const ViewerLivestream = ({
|
|
|
98
98
|
}
|
|
99
99
|
}, [canJoinLive, call, canJoinBackstage, canJoinEarly, joinBehavior, callingState, hasLeft]);
|
|
100
100
|
if (endedAt != null) {
|
|
101
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
102
|
+
style: [styles.container, viewerLivestream.container]
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_LivestreamEnded.CallEndedView, null));
|
|
102
104
|
}
|
|
103
105
|
if (!canJoinLive || callingState !== _videoClient.CallingState.JOINED) {
|
|
104
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
107
|
+
style: [styles.container, viewerLivestream.container]
|
|
108
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewerLobby.ViewerLobby, {
|
|
105
109
|
isLive: canJoinLive
|
|
106
|
-
});
|
|
110
|
+
}));
|
|
107
111
|
}
|
|
108
112
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
109
113
|
style: [styles.container, viewerLivestream.container]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_ViewerLivestreamControls","_LivestreamLayout","_videoReactBindings","_Participant","_videoClient","_LivestreamEnded","_ViewerLobby","_PrevLibDetection","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ViewerLivestream","ViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","FloatingParticipantView","DefaultFloatingParticipantView","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","joinBehavior","styles","useStyles","useCall","theme","viewerLivestream","useTheme","useHasOngoingScreenShare","useParticipants","useCallCallingState","useCallEndedAt","useIsCallLive","useOwnCapabilities","useCallStateHooks","canJoinLive","callingState","endedAt","hasOngoingScreenShare","currentSpeaker","floatingParticipant","hasVideo","hasLeft","setHasLeft","useState","canJoinEarly","useCanJoinEarly","canJoinBackstage","includes","topViewHeight","setTopViewHeight","React","controlsHeight","setControlsHeight","useEffect","prevInCallManager","getRNInCallManagerLibNoThrow","start","media","stop","CallingState","LEFT","topViewProps","onLayout","event","nativeEvent","layout","height","canJoinAsap","join","canJoin","IDLE","catch","error","console","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_ViewerLivestreamControls","_LivestreamLayout","_videoReactBindings","_Participant","_videoClient","_LivestreamEnded","_ViewerLobby","_PrevLibDetection","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ViewerLivestream","ViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","FloatingParticipantView","DefaultFloatingParticipantView","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","joinBehavior","styles","useStyles","useCall","theme","viewerLivestream","useTheme","useHasOngoingScreenShare","useParticipants","useCallCallingState","useCallEndedAt","useIsCallLive","useOwnCapabilities","useCallStateHooks","canJoinLive","callingState","endedAt","hasOngoingScreenShare","currentSpeaker","floatingParticipant","hasVideo","hasLeft","setHasLeft","useState","canJoinEarly","useCanJoinEarly","canJoinBackstage","includes","topViewHeight","setTopViewHeight","React","controlsHeight","setControlsHeight","useEffect","prevInCallManager","getRNInCallManagerLibNoThrow","start","media","stop","CallingState","LEFT","topViewProps","onLayout","event","nativeEvent","layout","height","canJoinAsap","join","canJoin","IDLE","catch","error","console","createElement","View","style","container","CallEndedView","JOINED","ViewerLobby","isLive","participant","draggableContainerStyle","StyleSheet","absoluteFill","top","bottom","exports","useCallStartsAt","useCallSettings","startsAt","settings","joinAheadTimeSeconds","backstage","join_ahead_time_seconds","setCanJoinEarly","checkCanJoinEarly","handle","setInterval","clearInterval","Date","now","useMemo","create","flex","paddingBottom","variants","insets","paddingLeft","left","paddingRight","right","paddingTop","backgroundColor","colors","sheetPrimary"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,yBAAA,GAAAH,OAAA;AAKA,IAAAI,iBAAA,GAAAJ,OAAA;AAIA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,gBAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AAA8F,SAAAD,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAA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M,CAACrB,MAAM;MAC3CsB,WAAW,EAAErF,KAAK,CAACmF,QAAQ,CAACC,MAAM,CAACE,IAAI;MACvCC,YAAY,EAAEvF,KAAK,CAACmF,QAAQ,CAACC,MAAM,CAACI,KAAK;MACzCC,UAAU,EAAEzF,KAAK,CAACmF,QAAQ,CAACC,MAAM,CAACtB,GAAG;MACrC4B,eAAe,EAAE1F,KAAK,CAAC2F,MAAM,CAACC;IAChC;EACF,CAAC,CAAC,EACJ,CAAC5F,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -6,16 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.usePushRegisterEffect = void 0;
|
|
7
7
|
var _useIosVoipPushEventsSetupEffect = require("./useIosVoipPushEventsSetupEffect");
|
|
8
8
|
var _useInitAndroidTokenAndRest = require("./useInitAndroidTokenAndRest");
|
|
9
|
-
var _useIosInitRemoteNotifications = require("./useIosInitRemoteNotifications");
|
|
10
|
-
var _useProcessPushNonRingingCallEffect = require("./useProcessPushNonRingingCallEffect");
|
|
11
9
|
/**
|
|
12
10
|
* This hook is used to do the initial setup for push notifications.
|
|
13
11
|
* It must be used in a component which is a child of StreamVideo from bindings
|
|
14
12
|
*/
|
|
15
13
|
const usePushRegisterEffect = () => {
|
|
16
|
-
(0, _useIosInitRemoteNotifications.useIosInitRemoteNotifications)();
|
|
17
14
|
(0, _useIosVoipPushEventsSetupEffect.useIosVoipPushEventsSetupEffect)();
|
|
18
|
-
(0, _useProcessPushNonRingingCallEffect.useProcessPushNonRingingCallEffect)();
|
|
19
15
|
(0, _useInitAndroidTokenAndRest.useInitAndroidTokenAndRest)();
|
|
20
16
|
};
|
|
21
17
|
exports.usePushRegisterEffect = usePushRegisterEffect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_useIosVoipPushEventsSetupEffect","require","_useInitAndroidTokenAndRest","
|
|
1
|
+
{"version":3,"names":["_useIosVoipPushEventsSetupEffect","require","_useInitAndroidTokenAndRest","usePushRegisterEffect","useIosVoipPushEventsSetupEffect","useInitAndroidTokenAndRest","exports"],"sourceRoot":"../../../../src","sources":["hooks/push/index.ts"],"mappings":";;;;;;AAAA,IAAAA,gCAAA,GAAAC,OAAA;AACA,IAAAC,2BAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAME,qBAAqB,GAAGA,CAAA,KAAM;EACzC,IAAAC,gEAA+B,EAAC,CAAC;EACjC,IAAAC,sDAA0B,EAAC,CAAC;AAC9B,CAAC;AAACC,OAAA,CAAAH,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -103,6 +103,12 @@ class CallManager {
|
|
|
103
103
|
*/
|
|
104
104
|
start = config => {
|
|
105
105
|
if (shouldBypassForCallKit()) {
|
|
106
|
+
// Forward only the passive endpoint preference; callingx reads it when
|
|
107
|
+
// CallKit drives session activation.
|
|
108
|
+
if (config?.audioRole === 'communicator' && CallingxModule) {
|
|
109
|
+
const type = config.deviceEndpointType ?? 'speaker';
|
|
110
|
+
CallingxModule.setDefaultAudioDeviceEndpointType(type);
|
|
111
|
+
}
|
|
106
112
|
_videoClient.videoLoggerSystem.getLogger('CallManager').debug('start: skipping start as callkit is handling the audio session');
|
|
107
113
|
return;
|
|
108
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_callingx","_videoClient","NativeManager","NativeModules","StreamInCallManager","CallingxModule","getCallingxLibIfAvailable","invariant","condition","message","Error","AndroidCallManager","getAudioDeviceStatus","Platform","OS","selectAudioDevice","endpointName","chooseAudioDeviceEndpoint","addAudioDeviceChangeListener","onChange","eventEmitter","NativeEventEmitter","s","addListener","remove","IOSCallManager","showDeviceSelector","showAudioRoutePicker","SpeakerManager","setMute","mute","muteAudioOutput","unmuteAudioOutput","setForceSpeakerphoneOn","force","shouldBypassForCallKit","isSetup","hasRegisteredCall","isOngoingCallsEnabled","CallManager","android","ios","speaker","start","config","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_callingx","_videoClient","NativeManager","NativeModules","StreamInCallManager","CallingxModule","getCallingxLibIfAvailable","invariant","condition","message","Error","AndroidCallManager","getAudioDeviceStatus","Platform","OS","selectAudioDevice","endpointName","chooseAudioDeviceEndpoint","addAudioDeviceChangeListener","onChange","eventEmitter","NativeEventEmitter","s","addListener","remove","IOSCallManager","showDeviceSelector","showAudioRoutePicker","SpeakerManager","setMute","mute","muteAudioOutput","unmuteAudioOutput","setForceSpeakerphoneOn","force","shouldBypassForCallKit","isSetup","hasRegisteredCall","isOngoingCallsEnabled","CallManager","android","ios","speaker","start","config","audioRole","type","deviceEndpointType","setDefaultAudioDeviceEndpointType","videoLoggerSystem","getLogger","debug","setAudioRole","enableStereoAudioOutput","setEnableStereoAudioOutput","stop","logAudioState","getAudioStateLog","exports"],"sourceRoot":"../../../../src","sources":["modules/call-manager/CallManager.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,aAAa,GAAGC,0BAAa,CAACC,mBAAmB;AACvD,MAAMC,cAAc,GAAG,IAAAC,mCAAyB,EAAC,CAAC;AAElD,MAAMC,SAAS,GAAGA,CAACC,SAAkB,EAAEC,OAAe,KAAK;EACzD,IAAI,CAACD,SAAS,EAAE,MAAM,IAAIE,KAAK,CAACD,OAAO,CAAC;AAC1C,CAAC;AAED,MAAME,kBAAkB,CAAC;EAGvB;AACF;AACA;EACEC,oBAAoB,GAAG,MAAAA,CAAA,KAAwC;IAC7DL,SAAS,CAACM,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE,2BAA2B,CAAC;IACjE,OAAOZ,aAAa,CAACU,oBAAoB,CAAC,CAAC;EAC7C,CAAC;;EAED;AACF;AACA;AACA;AACA;EACEG,iBAAiB,GAAIC,YAAoB,IAAW;IAClDT,SAAS,CAACM,qBAAQ,CAACC,EAAE,KAAK,SAA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ACAjD,aAAa,CAACqD,IAAI,CAAC,CAAC;EACtB,CAAC;;EAED;AACF;AACA;AACA;EACEC,aAAa,GAAGA,CAAA,KAAYtD,aAAa,CAACsD,aAAa,CAAC,CAAC;;EAEzD;AACF;AACA;AACA;EACEC,gBAAgB,GAAGA,CAAA,KAAcvD,aAAa,CAACuD,gBAAgB,CAAC,CAAC;AACnE;AAACC,OAAA,CAAAnB,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.StreamVideoRN = void 0;
|
|
7
7
|
var _pushLogoutCallback = _interopRequireDefault(require("../internal/pushLogoutCallback"));
|
|
8
|
-
var _newNotificationCallbacks = _interopRequireDefault(require("../internal/newNotificationCallbacks"));
|
|
9
8
|
var _setupIosVoipPushEvents = require("../push/setupIosVoipPushEvents");
|
|
10
9
|
var _setupCallingExpEvents = require("../push/setupCallingExpEvents");
|
|
11
10
|
var _callingx = require("../push/libs/callingx");
|
|
@@ -131,22 +130,6 @@ class StreamVideoRN {
|
|
|
131
130
|
_pushLogoutCallback.default.current = [];
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
/**
|
|
135
|
-
* This function is used to add a callback to be called when a new call notification is received.
|
|
136
|
-
* @param callback
|
|
137
|
-
* @returns Unsubscribe function
|
|
138
|
-
*/
|
|
139
|
-
static addOnNewCallNotificationListener(callback) {
|
|
140
|
-
if (!_newNotificationCallbacks.default.current) {
|
|
141
|
-
_newNotificationCallbacks.default.current = [callback];
|
|
142
|
-
} else {
|
|
143
|
-
_newNotificationCallbacks.default.current.push(callback);
|
|
144
|
-
}
|
|
145
|
-
return () => {
|
|
146
|
-
_newNotificationCallbacks.default.current = _newNotificationCallbacks.default.current?.filter(cb => cb !== callback);
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
133
|
/**
|
|
151
134
|
* Play native busy tone for call rejection
|
|
152
135
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_pushLogoutCallback","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_pushLogoutCallback","_interopRequireDefault","require","_setupIosVoipPushEvents","_setupCallingExpEvents","_callingx","_reactNative","_videoClient","e","__esModule","default","deepMerge","target","source","result","key","undefined","Array","isArray","DEFAULT_STREAM_VIDEO_CONFIG","foregroundService","android","channel","id","name","notificationTexts","title","body","taskToRun","Promise","StreamVideoRN","config","busyToneTimeout","updateConfig","setPushConfig","pushConfig","push","callingx","getCallingxLib","videoLoggerSystem","getLogger","info","JSON","stringify","options","extractCallingExpOptions","setup","Error","setupCallingExpEvents","setupIosVoipPushEvents","getConfig","onPushLogout","callbacks","pushLogoutCallbacks","current","resolve","all","map","callback","then","clearPushLogoutCallbacks","playBusyTone","NativeModules","StreamVideoReactNative","stopBusyTone","androidHasAudioOutputHardware","Platform","OS","hasAudioOutputHardware","androidHasMicrophoneHardware","hasMicrophoneHardware","androidHasCameraHardware","hasCameraHardware","exports"],"sourceRoot":"../../../../src","sources":["utils/StreamVideoRN/index.ts"],"mappings":";;;;;;AACA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAIA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAA4D,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5D;;AAKA;AACA,SAASG,SAASA,CAChBC,MAAS,EACTC,MAAsB,EACnB;EACH,MAAMC,MAAM,GAAG;IAAE,GAAGF;EAAO,CAAC;EAE5B,KAAK,MAAMG,GAAG,IAAIF,MAAM,EAAE;IACxB,IAAIA,MAAM,CAACE,GAAG,CAAC,KAAKC,SAAS,EAAE;MA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;EACE,aAAaO,YAAYA,CAAA,EAAG;IAC1B,OAAOC,0BAAa,CAACC,sBAAsB,CAACF,YAAY,CAAC,CAAC;EAC5D;;EAEA;AACF;AACA;EACE,aAAaG,YAAYA,CAAA,EAAG;IAC1B,OAAOF,0BAAa,CAACC,sBAAsB,CAACC,YAAY,CAAC,CAAC;EAC5D;;EAEA;AACF;AACA;AACA;EACE,aAAaC,6BAA6BA,CAAA,EAAqB;IAC7D,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAC3B,MAAM,IAAIpB,KAAK,CACb,qEACF,CAAC;IACH,OAAOe,0BAAa,CAACC,sBAAsB,CAACK,sBAAsB,CAAC,CAAC;EACtE;;EAEA;AACF;AACA;AACA;EACE,aAAaC,4BAA4BA,CAAA,EAAqB;IAC5D,IAAIH,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAC3B,MAAM,IAAIpB,KAAK,CACb,oEACF,CAAC;IACH,OAAOe,0BAAa,CAACC,sBAAsB,CAACO,qBAAqB,CAAC,CAAC;EACrE;;EAEA;AACF;AACA;AACA;EACE,aAAaC,wBAAwBA,CAAA,EAAqB;IACxD,IAAIL,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAC3B,MAAM,IAAIpB,KAAK,CACb,gEACF,CAAC;IACH,OAAOe,0BAAa,CAACC,sBAAsB,CAACS,iBAAiB,CAAC,CAAC;EACjE;AACF;AAACC,OAAA,CAAA3C,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -11,12 +11,21 @@ var _reactNative = require("react-native");
|
|
|
11
11
|
var _callingx = require("../../push/libs/callingx");
|
|
12
12
|
var _audioSessionPromise = require("./audioSessionPromise");
|
|
13
13
|
var _videoClient = require("@stream-io/video-client");
|
|
14
|
+
var _StreamVideoRN = require("../../StreamVideoRN");
|
|
14
15
|
/***
|
|
15
16
|
* Internal utils for callingx library usage from video-client.
|
|
16
17
|
* See @./registerSDKGlobals.ts for more usage details.
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
const CallingxModule = (0, _callingx.getCallingxLibIfAvailable)();
|
|
21
|
+
async function isAppInForeground() {
|
|
22
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
23
|
+
const nativeModule = _reactNative.NativeModules.StreamVideoAppLifecycle;
|
|
24
|
+
const state = await nativeModule.getCurrentAppState();
|
|
25
|
+
return state === 'active';
|
|
26
|
+
}
|
|
27
|
+
return _reactNative.AppState.currentState !== 'background';
|
|
28
|
+
}
|
|
20
29
|
|
|
21
30
|
/**
|
|
22
31
|
* Gets the call display name. To be used for display in native call screen.
|
|
@@ -54,11 +63,12 @@ async function registerOutgoingCall(call) {
|
|
|
54
63
|
const logger = _videoClient.videoLoggerSystem.getLogger('callingx');
|
|
55
64
|
try {
|
|
56
65
|
logger.debug(`registerOutgoingCall: Registering outgoing call ${call.cid}`);
|
|
66
|
+
const callDisplayName = getCallDisplayNameFromCall(call);
|
|
57
67
|
await CallingxModule.startCall(call.cid,
|
|
58
68
|
// unique id for call
|
|
59
|
-
call.state.createdBy?.id ??
|
|
69
|
+
call.state.createdBy?.id ?? callDisplayName,
|
|
60
70
|
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
61
|
-
|
|
71
|
+
callDisplayName,
|
|
62
72
|
// display name for display in call screen
|
|
63
73
|
call.state.settings?.video?.enabled ?? false // is video call?
|
|
64
74
|
);
|
|
@@ -82,27 +92,36 @@ async function joinCallingxCall(call, activeCalls) {
|
|
|
82
92
|
const logger = _videoClient.videoLoggerSystem.getLogger('callingx');
|
|
83
93
|
const isOutcomingCall = call.ringing && call.isCreatedByMe;
|
|
84
94
|
const isIncomingCall = call.ringing && !call.isCreatedByMe;
|
|
95
|
+
const startCallInCallingx = async () => {
|
|
96
|
+
logger.debug(`joinCallingxCall: Joining call ${call.cid}`);
|
|
97
|
+
const callDisplayName = getCallDisplayNameFromCall(call);
|
|
98
|
+
await CallingxModule.startCall(call.cid,
|
|
99
|
+
// unique id for call
|
|
100
|
+
call.state.createdBy?.id ?? callDisplayName,
|
|
101
|
+
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
102
|
+
callDisplayName,
|
|
103
|
+
// display name for display in call screen
|
|
104
|
+
call.state.settings?.video?.enabled ?? false // is video call?
|
|
105
|
+
);
|
|
106
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
107
|
+
await (0, _audioSessionPromise.waitForAudioSessionActivation)();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
85
110
|
if (isOutcomingCall || !call.ringing && CallingxModule.isOngoingCallsEnabled) {
|
|
86
111
|
try {
|
|
87
|
-
|
|
88
|
-
await CallingxModule.startCall(call.cid,
|
|
89
|
-
// unique id for call
|
|
90
|
-
call.state.createdBy?.id ?? getCallDisplayNameFromCall(call),
|
|
91
|
-
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
92
|
-
getCallDisplayNameFromCall(call),
|
|
93
|
-
// display name for display in call screen
|
|
94
|
-
call.state.settings?.video?.enabled ?? false // is video call?
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
// Wait for audio session activation on iOS only
|
|
98
|
-
if (_reactNative.Platform.OS === 'ios') {
|
|
99
|
-
await (0, _audioSessionPromise.waitForAudioSessionActivation)();
|
|
100
|
-
}
|
|
112
|
+
await startCallInCallingx();
|
|
101
113
|
} catch (error) {
|
|
102
114
|
logger.error(`startCallingxCall: Error starting call in callingx: ${call.cid}`, error);
|
|
103
115
|
}
|
|
104
116
|
} else if (isIncomingCall) {
|
|
105
117
|
logger.debug(`joinCallingxCall: Joining incoming call ${call.cid}`);
|
|
118
|
+
let skipIncomingPushInForeground = false;
|
|
119
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
120
|
+
skipIncomingPushInForeground = _StreamVideoRN.StreamVideoRN.getConfig().push?.ios?.skipIncomingPushInForeground ?? false;
|
|
121
|
+
} else {
|
|
122
|
+
skipIncomingPushInForeground = _StreamVideoRN.StreamVideoRN.getConfig().push?.android?.skipIncomingPushInForeground ?? false;
|
|
123
|
+
}
|
|
124
|
+
const shouldSkipDisplayIncoming = skipIncomingPushInForeground ? await isAppInForeground() : false;
|
|
106
125
|
try {
|
|
107
126
|
// Leave any existing active ringing calls before joining a new ringing call
|
|
108
127
|
const activeCallsToLeave = activeCalls.filter(c => c.cid !== call.cid && c.ringing && c.state.callingState !== _videoClient.CallingState.LEFT);
|
|
@@ -114,24 +133,28 @@ async function joinCallingxCall(call, activeCalls) {
|
|
|
114
133
|
logger.error(`failed to leave active call ${activeCall.cid}`, e);
|
|
115
134
|
});
|
|
116
135
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
if (shouldSkipDisplayIncoming) {
|
|
137
|
+
await startCallInCallingx();
|
|
138
|
+
} else {
|
|
139
|
+
// Awaits native CallKit/Telecom registration before answering.
|
|
140
|
+
// Safe to call even if the call is already registered (e.g. from VoIP push) --
|
|
141
|
+
// iOS early-returns with no error, Android sends the registered broadcast.
|
|
142
|
+
const callDisplayName = getCallDisplayNameFromCall(call);
|
|
143
|
+
await CallingxModule.displayIncomingCall(call.cid,
|
|
144
|
+
// unique id for call
|
|
145
|
+
call.state.createdBy?.id ?? callDisplayName,
|
|
146
|
+
// handle for native call UI (prefer createdBy user id, fallback to call display name)
|
|
147
|
+
callDisplayName,
|
|
148
|
+
// display name for display in call screen
|
|
149
|
+
call.state.settings?.video?.enabled ?? false // is video call?
|
|
150
|
+
);
|
|
151
|
+
await CallingxModule.answerIncomingCall(call.cid);
|
|
152
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
153
|
+
await (0, _audioSessionPromise.waitForAudioSessionActivation)();
|
|
154
|
+
}
|
|
132
155
|
}
|
|
133
156
|
} catch (error) {
|
|
134
|
-
logger.error(`Error
|
|
157
|
+
logger.error(`Error joining incoming call in callingx: ${call.cid} shouldSkipDisplayIncoming: ${shouldSkipDisplayIncoming}`, error);
|
|
135
158
|
}
|
|
136
159
|
}
|
|
137
160
|
}
|