@stream-io/video-react-native-sdk 1.43.0 → 1.45.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.
Files changed (150) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  3. package/dist/commonjs/components/Call/Lobby/Lobby.js +4 -9
  4. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
  5. package/dist/commonjs/components/Call/Lobby/LobbyCameraPreview.js +93 -0
  6. package/dist/commonjs/components/Call/Lobby/LobbyCameraPreview.js.map +1 -0
  7. package/dist/commonjs/components/Call/Lobby/index.js +11 -0
  8. package/dist/commonjs/components/Call/Lobby/index.js.map +1 -1
  9. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +4 -15
  10. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  11. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js +10 -4
  12. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
  13. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +9 -5
  14. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -1
  15. package/dist/commonjs/hooks/useLoopbackRecording.js +10 -127
  16. package/dist/commonjs/hooks/useLoopbackRecording.js.map +1 -1
  17. package/dist/commonjs/modules/call-manager/CallManager.js +37 -54
  18. package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
  19. package/dist/commonjs/utils/StreamVideoRN/index.js +2 -0
  20. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
  21. package/dist/commonjs/utils/internal/callingx/callingx.js +28 -39
  22. package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
  23. package/dist/commonjs/utils/internal/registerMediaEngine.js +41 -0
  24. package/dist/commonjs/utils/internal/registerMediaEngine.js.map +1 -0
  25. package/dist/commonjs/utils/internal/registerSDKGlobals.js +93 -35
  26. package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
  27. package/dist/commonjs/utils/push/android.js +13 -175
  28. package/dist/commonjs/utils/push/android.js.map +1 -1
  29. package/dist/commonjs/utils/push/internal/android.js +186 -0
  30. package/dist/commonjs/utils/push/internal/android.js.map +1 -0
  31. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +8 -9
  32. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  33. package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js +1 -1
  34. package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
  35. package/dist/commonjs/utils/push/setupAndroidPushEvents.js +25 -0
  36. package/dist/commonjs/utils/push/setupAndroidPushEvents.js.map +1 -0
  37. package/dist/commonjs/utils/push/setupCallingExpEvents.js +6 -2
  38. package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +1 -1
  39. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +6 -7
  40. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  41. package/dist/commonjs/utils/push/utils.js.map +1 -1
  42. package/dist/commonjs/version.js +1 -1
  43. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  44. package/dist/module/components/Call/Lobby/Lobby.js +4 -9
  45. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
  46. package/dist/module/components/Call/Lobby/LobbyCameraPreview.js +87 -0
  47. package/dist/module/components/Call/Lobby/LobbyCameraPreview.js.map +1 -0
  48. package/dist/module/components/Call/Lobby/index.js +1 -0
  49. package/dist/module/components/Call/Lobby/index.js.map +1 -1
  50. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +6 -17
  51. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  52. package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js +11 -5
  53. package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
  54. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +9 -5
  55. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -1
  56. package/dist/module/hooks/useLoopbackRecording.js +10 -127
  57. package/dist/module/hooks/useLoopbackRecording.js.map +1 -1
  58. package/dist/module/modules/call-manager/CallManager.js +36 -53
  59. package/dist/module/modules/call-manager/CallManager.js.map +1 -1
  60. package/dist/module/utils/StreamVideoRN/index.js +2 -0
  61. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  62. package/dist/module/utils/internal/callingx/callingx.js +27 -40
  63. package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
  64. package/dist/module/utils/internal/registerMediaEngine.js +37 -0
  65. package/dist/module/utils/internal/registerMediaEngine.js.map +1 -0
  66. package/dist/module/utils/internal/registerSDKGlobals.js +95 -37
  67. package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
  68. package/dist/module/utils/push/android.js +16 -178
  69. package/dist/module/utils/push/android.js.map +1 -1
  70. package/dist/module/utils/push/internal/android.js +182 -0
  71. package/dist/module/utils/push/internal/android.js.map +1 -0
  72. package/dist/module/utils/push/libs/firebaseMessaging/index.js +8 -8
  73. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  74. package/dist/module/utils/push/libs/firebaseMessaging/lib.js +1 -1
  75. package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
  76. package/dist/module/utils/push/setupAndroidPushEvents.js +21 -0
  77. package/dist/module/utils/push/setupAndroidPushEvents.js.map +1 -0
  78. package/dist/module/utils/push/setupCallingExpEvents.js +6 -2
  79. package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -1
  80. package/dist/module/utils/push/setupIosVoipPushEvents.js +6 -7
  81. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  82. package/dist/module/utils/push/utils.js.map +1 -1
  83. package/dist/module/version.js +1 -1
  84. package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
  85. package/dist/typescript/components/Call/Lobby/LobbyCameraPreview.d.ts +28 -0
  86. package/dist/typescript/components/Call/Lobby/LobbyCameraPreview.d.ts.map +1 -0
  87. package/dist/typescript/components/Call/Lobby/index.d.ts +1 -0
  88. package/dist/typescript/components/Call/Lobby/index.d.ts.map +1 -1
  89. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts +11 -6
  90. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
  91. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts.map +1 -1
  92. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +1 -1
  93. package/dist/typescript/hooks/useLoopbackRecording.d.ts +12 -69
  94. package/dist/typescript/hooks/useLoopbackRecording.d.ts.map +1 -1
  95. package/dist/typescript/modules/call-manager/CallManager.d.ts +28 -6
  96. package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
  97. package/dist/typescript/modules/call-manager/types.d.ts +0 -1
  98. package/dist/typescript/modules/call-manager/types.d.ts.map +1 -1
  99. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
  100. package/dist/typescript/utils/StreamVideoRN/types.d.ts +3 -0
  101. package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
  102. package/dist/typescript/utils/internal/callingx/callingx.d.ts +2 -0
  103. package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
  104. package/dist/typescript/utils/internal/registerMediaEngine.d.ts +15 -0
  105. package/dist/typescript/utils/internal/registerMediaEngine.d.ts.map +1 -0
  106. package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
  107. package/dist/typescript/utils/push/android.d.ts +3 -4
  108. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  109. package/dist/typescript/utils/push/internal/android.d.ts +8 -0
  110. package/dist/typescript/utils/push/internal/android.d.ts.map +1 -0
  111. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +6 -5
  112. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  113. package/dist/typescript/utils/push/libs/firebaseMessaging/lib.d.ts +2 -2
  114. package/dist/typescript/utils/push/libs/firebaseMessaging/lib.d.ts.map +1 -1
  115. package/dist/typescript/utils/push/setupAndroidPushEvents.d.ts +3 -0
  116. package/dist/typescript/utils/push/setupAndroidPushEvents.d.ts.map +1 -0
  117. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +1 -1
  118. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  119. package/dist/typescript/utils/push/utils.d.ts +2 -2
  120. package/dist/typescript/utils/push/utils.d.ts.map +1 -1
  121. package/dist/typescript/version.d.ts +1 -1
  122. package/ios/StreamInCallManager.m +4 -0
  123. package/ios/StreamInCallManager.swift +42 -10
  124. package/ios/TracksRecorder/RecorderVideoSink.swift +92 -5
  125. package/package.json +8 -8
  126. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +2 -2
  127. package/src/components/Call/Lobby/Lobby.tsx +4 -11
  128. package/src/components/Call/Lobby/LobbyCameraPreview.tsx +99 -0
  129. package/src/components/Call/Lobby/index.ts +1 -0
  130. package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +56 -75
  131. package/src/components/Participant/ParticipantView/VideoRenderer/index.tsx +18 -7
  132. package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +12 -5
  133. package/src/hooks/useLoopbackRecording.ts +36 -248
  134. package/src/modules/call-manager/CallManager.ts +40 -71
  135. package/src/modules/call-manager/native-module.d.ts +13 -0
  136. package/src/modules/call-manager/types.ts +0 -1
  137. package/src/utils/StreamVideoRN/index.ts +2 -0
  138. package/src/utils/StreamVideoRN/types.ts +3 -0
  139. package/src/utils/internal/callingx/callingx.ts +37 -46
  140. package/src/utils/internal/registerMediaEngine.ts +42 -0
  141. package/src/utils/internal/registerSDKGlobals.ts +115 -42
  142. package/src/utils/push/android.ts +20 -253
  143. package/src/utils/push/internal/android.ts +252 -0
  144. package/src/utils/push/libs/firebaseMessaging/index.ts +14 -22
  145. package/src/utils/push/libs/firebaseMessaging/lib.ts +3 -3
  146. package/src/utils/push/setupAndroidPushEvents.ts +25 -0
  147. package/src/utils/push/setupCallingExpEvents.ts +6 -3
  148. package/src/utils/push/setupIosVoipPushEvents.ts +8 -7
  149. package/src/utils/push/utils.ts +2 -4
  150. package/src/version.ts +1 -1
@@ -7,18 +7,17 @@ import { onVoipNotificationReceived } from './internal/ios';
7
7
  import { videoLoggerSystem } from '@stream-io/video-client';
8
8
  import { getCallingxLib } from './libs';
9
9
  export function setupIosVoipPushEvents(pushConfig) {
10
- if (Platform.OS !== 'ios' || !pushConfig.ios?.pushProviderName) {
11
- return;
12
- }
13
10
  const logger = videoLoggerSystem.getLogger('setupIosVoipPushEvents');
14
- if (!pushConfig.ios.pushProviderName) {
15
- // TODO: remove this check and find a better way once we have telecom integration for android
16
- logger.debug('ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
11
+ if (Platform.OS !== 'ios' || !pushConfig.ios?.pushProviderName) {
12
+ logger.debug(`setupIosVoipPushEvents skipped: platform=${Platform.OS} pushProviderName=${pushConfig.ios?.pushProviderName}`);
17
13
  return;
18
14
  }
19
15
  const callingx = getCallingxLib();
20
16
  callingx.addEventListener('voipNotificationReceived', params => {
21
- onVoipNotificationReceived(params, pushConfig);
17
+ logger.debug(`voipNotificationReceived event call_cid: ${params?.stream?.call_cid}`);
18
+ onVoipNotificationReceived(params, pushConfig).catch(error => {
19
+ logger.error(`Error in onVoipNotificationReceived: ${error}`);
20
+ });
22
21
  });
23
22
  }
24
23
  //# sourceMappingURL=setupIosVoipPushEvents.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","onVoipNotificationReceived","videoLoggerSystem","getCallingxLib","setupIosVoipPushEvents","pushConfig","OS","ios","pushProviderName","logger","getLogger","debug","callingx","addEventListener","params"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":";;AAAA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,0BAA0B,QAAQ,gBAAgB;AAE3D,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,cAAc,QAAQ,QAAQ;AAEvC,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,IAAI,CAACD,UAAU,CAACE,GAAG,EAAEC,gBAAgB,EAAE;IAC9D;EACF;EACA,MAAMC,MAAM,GAAGP,iBAAiB,CAACQ,SAAS,CAAC,wBAAwB,CAAC;EACpE,IAAI,CAACL,UAAU,CAACE,GAAG,CAACC,gBAAgB,EAAE;IACpC;IACAC,MAAM,CAACE,KAAK,CACV,6EACF,CAAC;IACD;EACF;EAEA,MAAMC,QAAQ,GAAGT,cAAc,CAAC,CAAC;EACjCS,QAAQ,CAACC,gBAAgB,CAAC,0BAA0B,EAAGC,MAAM,IAAK;IAChEb,0BAA0B,CAACa,MAAM,EAAET,UAAU,CAAC;EAChD,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["Platform","onVoipNotificationReceived","videoLoggerSystem","getCallingxLib","setupIosVoipPushEvents","pushConfig","logger","getLogger","OS","ios","pushProviderName","debug","callingx","addEventListener","params","stream","call_cid","catch","error"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":";;AAAA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,0BAA0B,QAAQ,gBAAgB;AAE3D,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,cAAc,QAAQ,QAAQ;AAEvC,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,MAAMC,MAAM,GAAGJ,iBAAiB,CAACK,SAAS,CAAC,wBAAwB,CAAC;EACpE,IAAIP,QAAQ,CAACQ,EAAE,KAAK,KAAK,IAAI,CAACH,UAAU,CAACI,GAAG,EAAEC,gBAAgB,EAAE;IAC9DJ,MAAM,CAACK,KAAK,CACV,4CAA4CX,QAAQ,CAACQ,EAAE,qBAAqBH,UAAU,CAACI,GAAG,EAAEC,gBAAgB,EAC9G,CAAC;IACD;EACF;EAEA,MAAME,QAAQ,GAAGT,cAAc,CAAC,CAAC;EACjCS,QAAQ,CAACC,gBAAgB,CAAC,0BAA0B,EAAGC,MAAM,IAAK;IAChER,MAAM,CAACK,KAAK,CACV,4CAA4CG,MAAM,EAAEC,MAAM,EAAEC,QAAQ,EACtE,CAAC;IACDf,0BAA0B,CAACa,MAAM,EAAET,UAAU,CAAC,CAACY,KAAK,CAAEC,KAAK,IAAK;MAC9DZ,MAAM,CAACY,KAAK,CAAC,wCAAwCA,KAAK,EAAE,CAAC;IAC/D,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["isFirebaseStreamVideoMessage","message","data","sender"],"sourceRoot":"../../../../src","sources":["utils/push/utils.ts"],"mappings":";;AAWA,OAAO,SAASA,4BAA4BA,CAC1CC,OAA6C,EAC7C;EACA,OAAOA,OAAO,CAACC,IAAI,EAAEC,MAAM,KAAK,cAAc;AAChD","ignoreList":[]}
1
+ {"version":3,"names":["isFirebaseStreamVideoMessage","message","data","sender"],"sourceRoot":"../../../../src","sources":["utils/push/utils.ts"],"mappings":";;AAWA,OAAO,SAASA,4BAA4BA,CAACC,OAA8B,EAAE;EAC3E,OAAOA,OAAO,CAACC,IAAI,EAAEC,MAAM,KAAK,cAAc;AAChD","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
 
3
- export const version = '1.43.0';
3
+ export const version = '1.45.0';
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Lobby.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/Lobby/Lobby.tsx"],"names":[],"mappings":"AAAA,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O,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,4 +1,5 @@
1
1
  export * from './Lobby';
2
+ export * from './LobbyCameraPreview';
2
3
  export * from './JoinCallButton';
3
4
  export * from './LobbyFooter';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -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,13 +1,15 @@
1
- import { LayoutChangeEvent } from 'react-native';
2
- import { Call, type VideoTrackType } from '@stream-io/video-client';
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: import("react").ForwardRefExoticComponent<TrackSubscriberProps & import("react").RefAttributes<TrackSubscriberHandle>>;
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,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EACL,IAAI,EAOJ,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AASjC,MAAM,MAAM,qBAAqB,GAAG;IAClC,cAAc,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,cAAc,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;EAUE;AACF,QAAA,MAAM,eAAe,wHA0EpB,CAAC;AAIF,eAAe,eAAe,CAAC"}
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,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAuB/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,uBA6LtB,CAAC"}
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 +1 @@
1
- {"version":3,"file":"useCallingExpWithCallingStateEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useCallingExpWithCallingStateEffect.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,mCAAmC,YAiR/C,CAAC"}
1
+ {"version":3,"file":"useCallingExpWithCallingStateEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useCallingExpWithCallingStateEffect.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,mCAAmC,YAwR/C,CAAC"}
@@ -1,85 +1,28 @@
1
+ import { type LoopbackTracks } from '@stream-io/video-client';
1
2
  export type LoopbackRecordingState = 'idle' | 'awaiting-streams' | 'recording';
2
- export type ResolvedStreams = {
3
- audioTrack?: MediaStreamTrack;
4
- videoTrack?: MediaStreamTrack;
5
- };
3
+ export type ResolvedStreams = LoopbackTracks;
6
4
  export interface StartLoopbackRecordingOptions {
7
- /**
8
- * Whether to include the loopback video track in the recording.
9
- * Defaults to `true`. Set to `false` for an audio-only recording.
10
- * Audio is always recorded — there is no video-only mode.
11
- */
5
+ /** Whether to include loopback video. Audio is always recorded. */
12
6
  includeVideo?: boolean;
13
- /**
14
- * Maximum recording duration in milliseconds, after which the
15
- * recording auto-stops and finalises the file.
16
- *
17
- * Defaults to `10_000` (10 seconds). Clamped to
18
- * `[5_000, 120_000]` (5 seconds — 2 minutes).
19
- */
7
+ /** Maximum recording duration in milliseconds. */
20
8
  maxDurationMs?: number;
21
9
  }
22
10
  export interface UseLoopbackRecordingResult {
23
- /**
24
- * Start a recording. The hook waits internally for the SFU loopback
25
- * streams to arrive on `localParticipant`, then begins recording.
26
- *
27
- * The returned promise resolves with the produced `file://` URI **at
28
- * the recording's terminal moment** — whether that is the auto-stop
29
- * timer expiring, an explicit `stopRecording` call, or a cleanup-
30
- * driven stop on unmount/leave. Resolves with `null` if no file was
31
- * produced (writer torn down before any buffer arrived, or
32
- * `stopRecording` was called while still awaiting streams). Rejects
33
- * on a fatal error, if a recording is already running, or if the
34
- * stream-wait times out.
35
- */
11
+ /** Starts recording and resolves with a `file://` URI. */
36
12
  startRecording: (options?: StartLoopbackRecordingOptions) => Promise<string | null>;
37
- /**
38
- * Signal an early termination. While `awaiting-streams` this aborts
39
- * the wait and the pending `startRecording` resolves with `null`.
40
- * While `recording` this signals native finalisation and resolves
41
- * once it completes.
42
- */
13
+ /** Stops the current recording or stream wait. */
43
14
  stopRecording: () => Promise<void>;
44
- /**
45
- * Recursively delete every file under the SDK's recordings directory.
46
- */
15
+ /** Deletes all SDK recording files. */
47
16
  clearRecordings: () => Promise<void>;
48
- /**
49
- * List every `file://` URI in the SDK's recordings directory, sorted
50
- * most-recent first. Returns an empty array if the directory doesn't
51
- * exist yet.
52
- */
17
+ /** Lists SDK recording file URIs. */
53
18
  getRecordings: () => Promise<string[]>;
54
- /**
55
- * Lifecycle phase of the recording, owned by the hook:
56
- * - `'idle'`: no recording in progress.
57
- * - `'awaiting-streams'`: `startRecording` was called but the SFU
58
- * has not yet echoed the loopback tracks back.
59
- * - `'recording'`: native pipeline is actively writing.
60
- */
19
+ /** Lifecycle phase of the recording. */
61
20
  recordingState: LoopbackRecordingState;
62
- /**
63
- * The SFU loopback video stream on the local participant, when
64
- * present. Identified by reference inequality against
65
- * `call.camera.state.mediaStream`.
66
- */
21
+ /** SFU-echoed video stream on the local participant. */
67
22
  loopbackVideoStream?: MediaStream;
68
- /**
69
- * The SFU loopback audio stream on the local participant, when
70
- * present. Identified by reference inequality against
71
- * `call.microphone.state.mediaStream`.
72
- */
23
+ /** SFU-echoed audio stream on the local participant. */
73
24
  loopbackAudioStream?: MediaStream;
74
25
  }
75
- /**
76
- * Records the SFU loopback streams (audio + video) on the local participant
77
- * to a local MP4 file. Designed for the `allowOwnTracksLoopback` pre-call test mode:
78
- * the SFU echoes the caller's published tracks back through the Subscriber
79
- * peer connection. The hook identifies the loopback streams on the local
80
- * participant by reference inequality against
81
- * `call.camera.state.mediaStream` / `call.microphone.state.mediaStream` —
82
- * the canonical references to the local capture — and captures them.
83
- */
26
+ /** Records SFU loopback streams to a local MP4 file. */
84
27
  export declare function useLoopbackRecording(): UseLoopbackRecordingResult;
85
28
  //# sourceMappingURL=useLoopbackRecording.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoopbackRecording.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLoopbackRecording.ts"],"names":[],"mappings":"AA4BA,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,kBAAkB,GAAG,WAAW,CA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MAAM,CAAC;CACxB;AAED,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,cAAc,EAAE,CACd,OAAO,CAAC,EAAE,6BAA6B,KACpC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B,kDAAkD;IAClD,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,uCAAuC;IACvC,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,qCAAqC;IACrC,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACvC,wCAAwC;IACxC,cAAc,EAAE,sBAAsB,CAAC;IACvC,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,WAAW,CAAC;CACnC;AAED,wDAAwD;AACxD,wBAAgB,oBAAoB,IAAI,0BAA0B,CAwLjE"}
@@ -59,7 +59,23 @@ export declare class CallManager {
59
59
  ios: IOSCallManager;
60
60
  speaker: SpeakerManager;
61
61
  /**
62
- * Starts the in call manager.
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 The default audio device endpoint type to set. It can be one of the following:
73
- * - `'speaker'`: (Default) For normal video or voice calls.
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
- * Stops the in call manager.
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;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,CAAC,MAAM,IAAI,CAAC,CAQb;CACH;AAED,cAAM,cAAc;IAClB;;OAEG;IACH,OAAO,GAAI,MAAM,OAAO,KAAG,IAAI,CAM7B;IAEF;;OAEG;IACH,sBAAsB,GAAI,OAAO,OAAO,KAAG,IAAI,CAkC7C;CACH;AAeD,qBAAa,WAAW;IACtB,YAAY,sBAA6B;IACzC,GAAG,iBAAwB;IAC3B,OAAO,iBAAwB;IAE/B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,GAAI,SAAS,yBAAyB,KAAG,IAAI,CA6ChD;IAEF;;OAEG;IACH,IAAI,QAAO,IAAI,CAQb;IAEF;;;OAGG;IACH,aAAa,QAAO,IAAI,CAAkC;IAE1D;;;OAGG;IACH,gBAAgB,QAAO,MAAM,CAAqC;CACnE"}
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,CAAC,MAAM,IAAI,CAAC,CAQb;CACH;AAED,cAAM,cAAc;IAClB;;OAEG;IACH,OAAO,GAAI,MAAM,OAAO,KAAG,IAAI,CAM7B;IAEF;;OAEG;IACH,sBAAsB,GAAI,OAAO,OAAO,KAAG,IAAI,CAkC7C;CACH;AAED,qBAAa,WAAW;IACtB,YAAY,sBAA6B;IACzC,GAAG,iBAAwB;IAC3B,OAAO,iBAAwB;IAE/B;;;OAGG;IACH,OAAO,CAAC,YAAY,CAAC,CAA4B;IAEjD;;;;OAIG;IACH,eAAe,QAAO,yBAAyB,GAAG,SAAS,CACvC;IAEpB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,GAAI,SAAS,yBAAyB,KAAG,IAAI,CAKhD;IAEF;;OAEG;IACH,IAAI,QAAO,IAAI,CAKb;IAEF;;;;;;OAMG;IACH,aAAa,QAAO,IAAI,CAAkC;IAE1D;;;;;;;OAOG;IACH,gBAAgB,QAAO,MAAM,CAAqC;CACnE"}
@@ -43,6 +43,5 @@ export type StreamInCallManagerConfig = {
43
43
  deviceEndpointType?: DeviceEndpointType;
44
44
  } | {
45
45
  audioRole: 'listener';
46
- enableStereoAudioOutput?: boolean;
47
46
  };
48
47
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAC/B,kBAAkB,GAClB,UAAU,GACV,SAAS,GACT,eAAe,GACf,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,0FAA0F;IAC1F,EAAE,EAAE,MAAM,CAAC;IACX,0GAA0G;IAC1G,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,IAAI,EAAE,uBAAuB,CAAC;CAC/B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8CAA8C;IAC9C,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,mBAAmB,EAAE,uBAAuB,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,UAAU,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;IACtB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAA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AC,MAAM,CAAC,MAAM,CAA+B;IAEpD;;;;OAIG;IACH,MAAM,CAAC,YAAY,CACjB,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IA0BvE,MAAM,CAAC,SAAS;IAIhB;;;OAGG;IACH,MAAM,CAAC,YAAY;IASnB,MAAM,CAAC,wBAAwB;IAI/B;;OAEG;WACU,YAAY;IAIzB;;OAEG;WACU,YAAY;IAIzB;;;OAGG;WACU,6BAA6B,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ9D;;;OAGG;WACU,4BAA4B,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ7D;;;OAGG;WACU,wBAAwB,IAAI,OAAO,CAAC,OAAO,CAAC;CAO1D"}
@@ -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.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,IAAI,EACV,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;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WAiBG;QACH,uBAAuB,EAAE,MAAM,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;KACvE,CAAC;IACF,iBAAiB,EAAE;QACjB,OAAO,EAAE;YACP;;eAEG;YACH,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC;YAC3D;;eAEG;YACH,iBAAiB,EAAE,iCAAiC,CAAC;YACrD;;;eAGG;YACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1C,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -15,4 +15,6 @@ export declare function registerOutgoingCall(call: Call): Promise<void>;
15
15
  */
16
16
  export declare function joinCallingxCall(call: Call, activeCalls: Call[]): Promise<void>;
17
17
  export declare function endCallingxCall(call: Call, reason?: EndCallReason): Promise<void>;
18
+ export declare function wireAudioEngineSubscription(): Promise<void>;
19
+ export declare function unwireAudioEngineSubscription(): void;
18
20
  //# sourceMappingURL=callingx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callingx.d.ts","sourceRoot":"","sources":["../../../../../src/utils/internal/callingx/callingx.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,KAAK,EACV,IAAI,EACJ,cAAc,EACd,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AA6CjC;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,EACzC,YAAY,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAClD,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,CAgCR;AAaD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,iBAgCpD;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,iBA4ErE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,aAAa,iBAmBvE"}
1
+ {"version":3,"file":"callingx.d.ts","sourceRoot":"","sources":["../../../../../src/utils/internal/callingx/callingx.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,KAAK,EACV,IAAI,EACJ,cAAc,EACd,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAKjC;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,EACzC,YAAY,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAClD,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,CAgCR;AAaD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,iBA+BpD;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,iBA0ErE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,aAAa,iBAmBvE;AAED,wBAAsB,2BAA2B,kBAehD;AAED,wBAAgB,6BAA6B,SAe5C"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Registers the React Native {@link CallMediaEngine} provider.
3
+ *
4
+ * Once registered, every `Call.ensureMediaFactory()` builds the call's native
5
+ * `PeerConnectionFactory` (with the call's audio configuration) and sets it as
6
+ * the single live factory. The WebRTC globals (`getUserMedia`/`getDisplayMedia`/
7
+ * `new RTCPeerConnection`) then resolve to it, so the call's tracks and peer
8
+ * connections are created with — and torn down with — that one native factory,
9
+ * which is what lets the call own its AudioDeviceModule. The engine itself only
10
+ * manages the factory lifecycle (`dispose` at leave).
11
+ *
12
+ * @internal
13
+ */
14
+ export declare function registerCallMediaEngine(): void;
15
+ //# sourceMappingURL=registerMediaEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerMediaEngine.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerMediaEngine.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,SAkBtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerSDKGlobals.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerSDKGlobals.ts"],"names":[],"mappings":"AAuKA,wBAAgB,kBAAkB,SAIjC"}
1
+ {"version":3,"file":"registerSDKGlobals.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerSDKGlobals.ts"],"names":[],"mappings":"AA8OA,wBAAgB,kBAAkB,SAMjC"}
@@ -1,13 +1,12 @@
1
1
  import { StreamVideoClient } from '@stream-io/video-client';
2
2
  import type { StreamVideoConfig } from '../StreamVideoRN/types';
3
- import { type FirebaseMessagingTypes } from './libs';
4
3
  type PushConfig = NonNullable<StreamVideoConfig['push']>;
5
4
  /** Send token to stream */
6
5
  export declare function initAndroidPushToken(client: StreamVideoClient, pushConfig: PushConfig, setUnsubscribeListener: (unsubscribe: () => void) => void): Promise<void>;
7
6
  /**
8
- * Creates notification from the push message data.
9
- * For Ringing and Non-Ringing calls.
7
+ * @deprecated Ring notifications are now handled by the SDK internally. This method is a no-op;
8
+ * you can safely remove `firebaseDataHandler(...)` wiring from your Firebase messaging handlers.
10
9
  */
11
- export declare const firebaseDataHandler: (data: FirebaseMessagingTypes.RemoteMessage["data"]) => Promise<void>;
10
+ export declare const firebaseDataHandler: (data?: any) => Promise<void>;
12
11
  export {};
13
12
  //# sourceMappingURL=android.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,QAAQ,CAAC;AAOhB,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAIzD,4BAA4B;AAC5B,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAgD1D;AAED;;;GAGG;AAEH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,sBAAsB,CAAC,aAAa,CAAC,MAAM,CAAC,kBAgOnD,CAAC"}
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAIzD,4BAA4B;AAC5B,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBA4C1D;AAGD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAU,OAAO,GAAG,kBAQnD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type FirebaseRemoteMessage } from '../libs';
2
+ /**
3
+ * Handles a Stream Video `call.ring` push payload: connects the WS to watch the ringing call
4
+ * and auto-dismisses it if it has already ended/been handled elsewhere. Non-ringing types are
5
+ * ignored (their display is app responsibility). Android-only; a no-op on other platforms.
6
+ */
7
+ export declare const onRingNotificationReceived: (data: FirebaseRemoteMessage["data"]) => Promise<void>;
8
+ //# sourceMappingURL=android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/android.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,SAAS,CAAC;AAKjB;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GACrC,MAAM,qBAAqB,CAAC,MAAM,CAAC,kBAqOpC,CAAC"}
@@ -1,6 +1,7 @@
1
- import { type Type } from './lib';
2
- export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
3
- export type FirebaseMessagingType = Type;
4
- export declare function getFirebaseMessagingLib(): FirebaseMessagingType;
5
- export declare function getFirebaseMessagingLibNoThrow(isExpo: boolean): FirebaseMessagingType | undefined;
1
+ import { type MessagingModule } from './lib';
2
+ export type FirebaseRemoteMessage = NonNullable<Awaited<ReturnType<MessagingModule['getInitialNotification']>>>;
3
+ export declare function getFirebaseMessagingLib(): () => {
4
+ getToken: () => Promise<string>;
5
+ onTokenRefresh: (listener: (token: string) => void) => () => void;
6
+ };
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAGvC,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAKzC,wBAAgB,uBAAuB,IAAI,qBAAqB,CAQ/D;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,OAAO,GACd,qBAAqB,GAAG,SAAS,CAcnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,eAAe,EAAE,MAAM,OAAO,CAAC;AAKlD,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAC7C,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAC/D,CAAC;AAYF,wBAAgB,uBAAuB;;+BAKR,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;EAGrD"}
@@ -1,4 +1,4 @@
1
- export type Type = typeof import('@react-native-firebase/messaging').default;
2
- declare let lib: Type | undefined;
1
+ export type MessagingModule = typeof import('@react-native-firebase/messaging');
2
+ declare let lib: MessagingModule | undefined;
3
3
  export { lib };
4
4
  //# sourceMappingURL=lib.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,cAAc,kCAAkC,EAAE,OAAO,CAAC;AAE7E,QAAA,IAAI,GAAG,EAAE,IAAI,GAAG,SAAS,CAAC;AAM1B,OAAO,EAAE,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,cAAc,kCAAkC,CAAC,CAAC;AAEhF,QAAA,IAAI,GAAG,EAAE,eAAe,GAAG,SAAS,CAAC;AAMrC,OAAO,EAAE,GAAG,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { StreamVideoConfig } from '../StreamVideoRN/types';
2
+ export declare function setupAndroidPushEvents(pushConfig: NonNullable<StreamVideoConfig['push']>): void;
3
+ //# sourceMappingURL=setupAndroidPushEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupAndroidPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupAndroidPushEvents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAiBnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupCallingExpEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupCallingExpEvents.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAYhE,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAIzD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,QAsDxE"}
1
+ {"version":3,"file":"setupCallingExpEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupCallingExpEvents.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAahE,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAIzD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,QAyDxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAkBnD"}
1
+ {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAmBnD"}
@@ -1,9 +1,9 @@
1
- import type { FirebaseMessagingTypes } from './libs/firebaseMessaging';
1
+ import type { FirebaseRemoteMessage } from './libs/firebaseMessaging';
2
2
  import type { NonRingingPushEvent } from '../StreamVideoRN/types';
3
3
  export type StreamPushPayload = {
4
4
  call_cid: string;
5
5
  type: 'call.ring' | NonRingingPushEvent;
6
6
  sender: string;
7
7
  } | undefined;
8
- export declare function isFirebaseStreamVideoMessage(message: FirebaseMessagingTypes.RemoteMessage): boolean;
8
+ export declare function isFirebaseStreamVideoMessage(message: FirebaseRemoteMessage): boolean;
9
9
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GACzB;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,mBAAmB,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB,GACD,SAAS,CAAC;AAEd,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,sBAAsB,CAAC,aAAa,WAG9C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GACzB;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,mBAAmB,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB,GACD,SAAS,CAAC;AAEd,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,qBAAqB,WAE1E"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.43.0";
1
+ export declare const version = "1.45.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -9,6 +9,10 @@ RCT_EXTERN_METHOD(setDefaultAudioDeviceEndpointType:(NSString *)endpointType)
9
9
 
10
10
  RCT_EXTERN_METHOD(setEnableStereoAudioOutput:(BOOL)enable)
11
11
 
12
+ RCT_EXTERN_METHOD(setMuteMode:(NSInteger)mode)
13
+
14
+ RCT_EXTERN_METHOD(setRecordingAlwaysPreparedMode:(BOOL)enabled)
15
+
12
16
  RCT_EXTERN_METHOD(setup)
13
17
 
14
18
  RCT_EXTERN_METHOD(start)