@stream-io/video-react-native-sdk 1.23.0 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +2 -2
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +2 -2
  5. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -3
  7. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +3 -3
  9. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +3 -3
  11. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +2 -2
  13. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +2 -2
  15. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  16. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +2 -2
  17. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  18. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +4 -4
  19. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  20. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  21. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  22. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +4 -4
  23. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  24. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +2 -2
  25. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  26. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +2 -2
  27. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  28. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +11 -11
  29. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  30. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +3 -3
  31. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
  32. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -1
  33. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  34. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -2
  35. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  36. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +13 -13
  37. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  38. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -2
  39. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
  40. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -1
  41. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  42. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +10 -10
  43. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  44. package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
  45. package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
  46. package/dist/commonjs/hooks/useScreenShareButton.js +4 -4
  47. package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
  48. package/dist/commonjs/hooks/useScreenshot.js +2 -2
  49. package/dist/commonjs/hooks/useScreenshot.js.map +1 -1
  50. package/dist/commonjs/modules/call-manager/PrevLibDetection.js +1 -1
  51. package/dist/commonjs/modules/call-manager/PrevLibDetection.js.map +1 -1
  52. package/dist/commonjs/providers/BusyTonePlayer.js +6 -6
  53. package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
  54. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +2 -2
  55. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  56. package/dist/commonjs/providers/StreamCall/AppStateListener.js +7 -7
  57. package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
  58. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  59. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  60. package/dist/commonjs/utils/push/android.js +30 -30
  61. package/dist/commonjs/utils/push/android.js.map +1 -1
  62. package/dist/commonjs/utils/push/internal/ios.js +9 -9
  63. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  64. package/dist/commonjs/utils/push/internal/utils.js +11 -11
  65. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  66. package/dist/commonjs/utils/push/ios.js +21 -21
  67. package/dist/commonjs/utils/push/ios.js.map +1 -1
  68. package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
  69. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
  70. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +3 -3
  71. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  72. package/dist/commonjs/utils/push/libs/notifee/index.js +3 -3
  73. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  74. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +7 -7
  75. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
  76. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +4 -4
  77. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  78. package/dist/commonjs/version.js +1 -1
  79. package/dist/module/components/Call/CallContent/CallContent.js +3 -3
  80. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  81. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +3 -3
  82. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  83. package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -3
  84. package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  85. package/dist/module/components/Call/CallControls/AcceptCallButton.js +3 -3
  86. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  87. package/dist/module/components/Call/CallControls/HangupCallButton.js +3 -4
  88. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  89. package/dist/module/components/Call/CallControls/RejectCallButton.js +3 -3
  90. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  91. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +3 -3
  92. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  93. package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -3
  94. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  95. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +5 -5
  96. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  97. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
  98. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  99. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -5
  100. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  101. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +3 -4
  102. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  103. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -3
  104. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  105. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +11 -11
  106. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  107. package/dist/module/contexts/internal/ScreenshotIosContext.js +4 -4
  108. package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
  109. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -2
  110. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  111. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +3 -3
  112. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  113. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +14 -14
  114. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  115. package/dist/module/hooks/push/useProcessPushCallEffect.js +3 -3
  116. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  117. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -2
  118. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  119. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +11 -11
  120. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  121. package/dist/module/hooks/usePermissionRequest.js +3 -3
  122. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  123. package/dist/module/hooks/useScreenShareButton.js +5 -5
  124. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  125. package/dist/module/hooks/useScreenshot.js +3 -3
  126. package/dist/module/hooks/useScreenshot.js.map +1 -1
  127. package/dist/module/modules/call-manager/PrevLibDetection.js +2 -2
  128. package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
  129. package/dist/module/providers/BusyTonePlayer.js +7 -7
  130. package/dist/module/providers/BusyTonePlayer.js.map +1 -1
  131. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +3 -3
  132. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  133. package/dist/module/providers/StreamCall/AppStateListener.js +8 -8
  134. package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
  135. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  136. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  137. package/dist/module/utils/push/android.js +31 -31
  138. package/dist/module/utils/push/android.js.map +1 -1
  139. package/dist/module/utils/push/internal/ios.js +9 -9
  140. package/dist/module/utils/push/internal/ios.js.map +1 -1
  141. package/dist/module/utils/push/internal/utils.js +12 -12
  142. package/dist/module/utils/push/internal/utils.js.map +1 -1
  143. package/dist/module/utils/push/ios.js +22 -22
  144. package/dist/module/utils/push/ios.js.map +1 -1
  145. package/dist/module/utils/push/libs/expoNotifications.js +2 -2
  146. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  147. package/dist/module/utils/push/libs/firebaseMessaging/index.js +3 -3
  148. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  149. package/dist/module/utils/push/libs/notifee/index.js +3 -3
  150. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  151. package/dist/module/utils/push/setupIosCallKeepEvents.js +8 -8
  152. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
  153. package/dist/module/utils/push/setupIosVoipPushEvents.js +5 -5
  154. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  155. package/dist/module/version.js +1 -1
  156. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  157. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
  158. package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
  159. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  160. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  161. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  162. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
  163. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
  164. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
  165. package/dist/typescript/contexts/internal/ScreenshotIosContext.d.ts.map +1 -1
  166. package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -1
  167. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -1
  168. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  169. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -1
  170. package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts.map +1 -1
  171. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  172. package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
  173. package/dist/typescript/hooks/useScreenshot.d.ts.map +1 -1
  174. package/dist/typescript/modules/call-manager/PrevLibDetection.d.ts.map +1 -1
  175. package/dist/typescript/providers/BusyTonePlayer.d.ts.map +1 -1
  176. package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
  177. package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
  178. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  179. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  180. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  181. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  182. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
  183. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  184. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  185. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
  186. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  187. package/dist/typescript/version.d.ts +1 -1
  188. package/ios/StreamInCallManager.swift +35 -23
  189. package/package.json +3 -3
  190. package/src/components/Call/CallContent/CallContent.tsx +7 -9
  191. package/src/components/Call/CallContent/RTCViewPipIOS.tsx +7 -9
  192. package/src/components/Call/CallContent/RTCViewPipNative.tsx +8 -6
  193. package/src/components/Call/CallControls/AcceptCallButton.tsx +3 -3
  194. package/src/components/Call/CallControls/HangupCallButton.tsx +3 -4
  195. package/src/components/Call/CallControls/RejectCallButton.tsx +4 -4
  196. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +6 -3
  197. package/src/components/Call/Lobby/JoinCallButton.tsx +3 -3
  198. package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -5
  199. package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +3 -3
  200. package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +5 -5
  201. package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +3 -4
  202. package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +3 -4
  203. package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +9 -10
  204. package/src/contexts/internal/ScreenshotIosContext.tsx +12 -14
  205. package/src/hooks/push/useInitAndroidTokenAndRest.ts +4 -6
  206. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +9 -3
  207. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +14 -19
  208. package/src/hooks/push/useProcessPushCallEffect.ts +11 -9
  209. package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +6 -5
  210. package/src/hooks/useAndroidKeepCallAliveEffect.ts +17 -14
  211. package/src/hooks/usePermissionRequest.tsx +3 -3
  212. package/src/hooks/useScreenShareButton.ts +5 -7
  213. package/src/hooks/useScreenshot.ts +7 -11
  214. package/src/modules/call-manager/PrevLibDetection.ts +6 -5
  215. package/src/providers/BusyTonePlayer.tsx +7 -11
  216. package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +7 -11
  217. package/src/providers/StreamCall/AppStateListener.tsx +8 -12
  218. package/src/utils/getAndroidDefaultRingtoneUrl.ts +3 -3
  219. package/src/utils/push/android.ts +93 -85
  220. package/src/utils/push/internal/ios.ts +9 -15
  221. package/src/utils/push/internal/utils.ts +28 -25
  222. package/src/utils/push/ios.ts +28 -32
  223. package/src/utils/push/libs/expoNotifications.ts +6 -5
  224. package/src/utils/push/libs/firebaseMessaging/index.ts +5 -4
  225. package/src/utils/push/libs/notifee/index.ts +3 -4
  226. package/src/utils/push/setupIosCallKeepEvents.ts +12 -14
  227. package/src/utils/push/setupIosVoipPushEvents.ts +7 -9
  228. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"expoNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/expoNotifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,cAAc,oBAAoB,CAAC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAQ5C,wBAAgB,uBAAuB,wCAOtC;AAED,wBAAgB,8BAA8B,oDAQ7C"}
1
+ {"version":3,"file":"expoNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/expoNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,MAAM,MAAM,oBAAoB,GAAG,cAAc,oBAAoB,CAAC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAQ5C,wBAAgB,uBAAuB,wCAOtC;AAED,wBAAgB,8BAA8B,oDAS7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAEvC,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAKzC,wBAAgB,uBAAuB,4OAQtC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,uPAa7D"}
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,4OAQtC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,uPAc7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDASnD;AAED,wBAAsB,sCAAsC,4CA0B3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDAQnD;AAED,wBAAsB,sCAAsC,4CA0B3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupIosCallKeepEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosCallKeepEvents.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAUhE;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA8HnD"}
1
+ {"version":3,"file":"setupIosCallKeepEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosCallKeepEvents.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAUhE;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA4HnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA2BnD"}
1
+ {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAyBnD"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.23.0";
1
+ export declare const version = "1.24.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -96,6 +96,17 @@ class StreamInCallManager: RCTEventEmitter {
96
96
  if !audioManagerActivated {
97
97
  return
98
98
  }
99
+ let session = RTCAudioSession.sharedInstance()
100
+ session.lockForConfiguration()
101
+ defer {
102
+ session.unlockForConfiguration()
103
+ }
104
+
105
+ do {
106
+ try session.setActive(false)
107
+ } catch {
108
+ log("Error deactivating audio session: \(error.localizedDescription)")
109
+ }
99
110
  if let prev = previousAudioSessionState {
100
111
  let session = AVAudioSession.sharedInstance()
101
112
  do {
@@ -129,13 +140,21 @@ class StreamInCallManager: RCTEventEmitter {
129
140
  } else {
130
141
  intendedCategory = .playAndRecord
131
142
  intendedMode = .voiceChat
143
+
144
+ // XCode 16 and older don't expose .allowBluetoothHFP
145
+ // https://forums.swift.org/t/xcode-26-avaudiosession-categoryoptions-allowbluetooth-deprecated/80956
146
+ #if compiler(>=6.2) // For Xcode 26.0+
147
+ let bluetoothOption: AVAudioSession.CategoryOptions = .allowBluetoothHFP
148
+ #else
149
+ let bluetoothOption: AVAudioSession.CategoryOptions = .allowBluetooth
150
+ #endif
132
151
 
133
152
  if (defaultAudioDevice == .speaker) {
134
153
  // defaultToSpeaker will route to speaker if nothing else is connected
135
- intendedOptions = [.allowBluetoothHFP, .defaultToSpeaker]
154
+ intendedOptions = [bluetoothOption, .defaultToSpeaker]
136
155
  } else {
137
156
  // having no defaultToSpeaker makes sure audio goes to earpiece if nothing is connected
138
- intendedOptions = [.allowBluetoothHFP]
157
+ intendedOptions = [bluetoothOption]
139
158
  }
140
159
  }
141
160
 
@@ -147,32 +166,25 @@ class StreamInCallManager: RCTEventEmitter {
147
166
  RTCAudioSessionConfiguration.setWebRTC(rtcConfig)
148
167
  // END
149
168
 
150
- // START: compare current audio session with intended, and update if different
169
+ // START: activate the webrtc audio session
151
170
  let session = RTCAudioSession.sharedInstance()
152
- let currentCategory = session.category
153
- let currentMode = session.mode
154
- let currentOptions = session.categoryOptions
155
- let currentIsActive = session.isActive
156
-
157
- if currentCategory != intendedCategory.rawValue || currentMode != intendedMode.rawValue || currentOptions != intendedOptions || !currentIsActive {
158
- session.lockForConfiguration()
171
+ session.lockForConfiguration()
172
+ defer {
173
+ session.unlockForConfiguration()
174
+ }
175
+ do {
176
+ try session.setCategory(intendedCategory, mode: intendedMode, options: intendedOptions)
177
+ try session.setActive(true)
178
+ log("configureAudioSession: setCategory success \(intendedCategory.rawValue) \(intendedMode.rawValue) \(intendedOptions.rawValue)")
179
+ } catch {
180
+ log("configureAudioSession: setCategory failed due to: \(error.localizedDescription)")
159
181
  do {
160
- try session.setCategory(intendedCategory, mode: intendedMode, options: intendedOptions)
182
+ try session.setMode(intendedMode)
161
183
  try session.setActive(true)
162
- log("configureAudioSession: setCategory success \(intendedCategory.rawValue) \(intendedMode.rawValue) \(intendedOptions.rawValue)")
184
+ log("configureAudioSession: setMode success \(intendedMode.rawValue)")
163
185
  } catch {
164
- log("configureAudioSession: setCategory failed due to: \(error.localizedDescription)")
165
- do {
166
- try session.setMode(intendedMode)
167
- try session.setActive(true)
168
- log("configureAudioSession: setMode success \(intendedMode.rawValue)")
169
- } catch {
170
- log("configureAudioSession: Error setting mode: \(error.localizedDescription)")
171
- }
186
+ log("configureAudioSession: Error setting mode: \(error.localizedDescription)")
172
187
  }
173
- session.unlockForConfiguration()
174
- } else {
175
- log("configureAudioSession: no change needed")
176
188
  }
177
189
  // END
178
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-native-sdk",
3
- "version": "1.23.0",
3
+ "version": "1.24.1",
4
4
  "description": "Stream Video SDK for React Native",
5
5
  "author": "https://getstream.io",
6
6
  "homepage": "https://getstream.io/video/docs/react-native/",
@@ -45,8 +45,8 @@
45
45
  "!**/.*"
46
46
  ],
47
47
  "dependencies": {
48
- "@stream-io/video-client": "1.35.1",
49
- "@stream-io/video-react-bindings": "1.10.3",
48
+ "@stream-io/video-client": "1.36.0",
49
+ "@stream-io/video-react-bindings": "1.10.4",
50
50
  "intl-pluralrules": "2.0.1",
51
51
  "lodash.merge": "^4.6.2",
52
52
  "react-native-url-polyfill": "^3.0.0",
@@ -20,8 +20,8 @@ import {
20
20
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
21
21
  import {
22
22
  CallingState,
23
- getLogger,
24
23
  type StreamReaction,
24
+ videoLoggerSystem,
25
25
  } from '@stream-io/video-client';
26
26
 
27
27
  import { Z_INDEX } from '../../../constants';
@@ -151,18 +151,16 @@ export const CallContent = ({
151
151
  useEffect(() => {
152
152
  if (isInPiPMode && Platform.OS === 'android') {
153
153
  const unsubFunc = call?.on('call.ended', () => {
154
- getLogger(['CallContent'])(
155
- 'debug',
156
- `exiting PiP mode due to call.ended`,
157
- );
154
+ videoLoggerSystem
155
+ .getLogger('CallContent')
156
+ .debug(`exiting PiP mode due to call.ended`);
158
157
  NativeModules.StreamVideoReactNative.exitPipMode();
159
158
  });
160
159
  const subscription = call?.state.callingState$.subscribe((state) => {
161
160
  if (state === CallingState.LEFT) {
162
- getLogger(['CallContent'])(
163
- 'debug',
164
- `exiting PiP mode due to callingState: LEFT`,
165
- );
161
+ videoLoggerSystem
162
+ .getLogger('CallContent')
163
+ .debug(`exiting PiP mode due to callingState: LEFT`);
166
164
  NativeModules.StreamVideoReactNative.exitPipMode();
167
165
  }
168
166
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CallingState,
3
- getLogger,
4
3
  hasScreenShare,
5
4
  speakerLayoutSortPreset,
6
5
  type StreamVideoParticipant,
6
+ videoLoggerSystem,
7
7
  type VideoTrackType,
8
8
  } from '@stream-io/video-client';
9
9
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
@@ -72,18 +72,16 @@ export const RTCViewPipIOS = React.memo((props: Props) => {
72
72
  shouldDisableIOSLocalVideoOnBackgroundRef.current = true;
73
73
  };
74
74
  const unsubFunc = call?.on('call.ended', () => {
75
- getLogger(['RTCViewPipIOS'])(
76
- 'debug',
77
- `onCallClosed due to call.ended event`,
78
- );
75
+ videoLoggerSystem
76
+ .getLogger('RTCViewPipIOS')
77
+ .debug(`onCallClosed due to call.ended event`);
79
78
  onCallClosed();
80
79
  });
81
80
  const subscription = call?.state.callingState$.subscribe((state) => {
82
81
  if (state === CallingState.LEFT) {
83
- getLogger(['RTCViewPipIOS'])(
84
- 'debug',
85
- `onCallClosed due to callingState: ${state}`,
86
- );
82
+ videoLoggerSystem
83
+ .getLogger('RTCViewPipIOS')
84
+ .debug(`onCallClosed due to callingState: ${state}`);
87
85
  onCallClosed();
88
86
  }
89
87
  });
@@ -1,4 +1,3 @@
1
- import { getLogger } from '@stream-io/video-client';
2
1
  import React from 'react';
3
2
  import {
4
3
  type HostComponent,
@@ -7,6 +6,7 @@ import {
7
6
  StyleSheet,
8
7
  UIManager,
9
8
  } from 'react-native';
9
+ import { videoLoggerSystem } from '@stream-io/video-client';
10
10
 
11
11
  const COMPONENT_NAME = 'RTCViewPip';
12
12
 
@@ -23,7 +23,7 @@ const NativeComponent: HostComponent<RTCViewPipNativeProps> =
23
23
  requireNativeComponent(COMPONENT_NAME);
24
24
 
25
25
  export function onNativeCallClosed(reactTag: number) {
26
- getLogger(['RTCViewPipNative'])('debug', 'onNativeCallClosed');
26
+ videoLoggerSystem.getLogger('RTCViewPipNative').debug('onNativeCallClosed');
27
27
  const commandId =
28
28
  UIManager.getViewManagerConfig(COMPONENT_NAME).Commands.onCallClosed;
29
29
  if (!commandId) return;
@@ -35,10 +35,12 @@ export function onNativeDimensionsUpdated(
35
35
  width: number,
36
36
  height: number,
37
37
  ) {
38
- getLogger(['RTCViewPipNative'])('debug', 'onNativeDimensionsUpdated', {
39
- width,
40
- height,
41
- });
38
+ videoLoggerSystem
39
+ .getLogger('RTCViewPipNative')
40
+ .debug('onNativeDimensionsUpdated', {
41
+ width,
42
+ height,
43
+ });
42
44
  const commandId =
43
45
  UIManager.getViewManagerConfig(COMPONENT_NAME).Commands
44
46
  .setPreferredContentSize;
@@ -1,9 +1,9 @@
1
1
  import { useCall } from '@stream-io/video-react-bindings';
2
- import { getLogger } from '@stream-io/video-client';
3
2
  import React, { useState } from 'react';
4
3
  import { CallControlsButton } from './CallControlsButton';
5
4
  import { IconWrapper, Phone } from '../../../icons';
6
5
  import { useTheme } from '../../../contexts/ThemeContext';
6
+ import { videoLoggerSystem } from '@stream-io/video-client';
7
7
 
8
8
  /**
9
9
  * The props for the Accept Call button.
@@ -52,8 +52,8 @@ export const AcceptCallButton = ({
52
52
  onAcceptCallHandler();
53
53
  }
54
54
  } catch (error) {
55
- const logger = getLogger(['AcceptCallButton']);
56
- logger('error', 'Error joining Call', error);
55
+ const logger = videoLoggerSystem.getLogger('AcceptCallButton');
56
+ logger.error('Error joining Call', error);
57
57
  } finally {
58
58
  setIsLoading(false);
59
59
  }
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { getLogger } from '@stream-io/video-client';
3
2
  import { CallControlsButton } from './CallControlsButton';
4
3
  import { PhoneDown } from '../../../icons';
5
4
  import { ButtonTestIds } from '../../../constants/TestIds';
6
5
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
7
- import { CallingState } from '@stream-io/video-client';
6
+ import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
8
7
  import { useTheme } from '../../../contexts/ThemeContext';
9
8
  import { IconWrapper } from '../../../icons/IconWrapper';
10
9
 
@@ -60,8 +59,8 @@ export const HangUpCallButton = ({
60
59
  onHangupCallHandler();
61
60
  }
62
61
  } catch (error) {
63
- const logger = getLogger(['HangUpCallButton']);
64
- logger('error', 'Error leaving Call', error);
62
+ const logger = videoLoggerSystem.getLogger('HangUpCallButton');
63
+ logger.error('Error leaving Call', error);
65
64
  }
66
65
  };
67
66
 
@@ -2,7 +2,7 @@ import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
2
2
  import React, { useState } from 'react';
3
3
  import { CallControlsButton } from './CallControlsButton';
4
4
  import { IconWrapper, PhoneDown } from '../../../icons';
5
- import { CallingState, getLogger } from '@stream-io/video-client';
5
+ import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
6
6
  import { useTheme } from '../../../contexts/ThemeContext';
7
7
 
8
8
  /**
@@ -27,7 +27,7 @@ type RejectCallButtonProps = {
27
27
  /**
28
28
  * Optional: Reason for rejecting the call.
29
29
  * Pass a predefined or a custom reason.
30
- * There are four predefined reasons for rejecting the call:
30
+ * There are four predefined reasons for rejecting the call:
31
31
  - `busy` - when the callee is busy and cannot accept the call.
32
32
  - `decline` - when the callee intentionally declines the call.
33
33
  - `cancel` - when the caller cancels the call.
@@ -74,8 +74,8 @@ export const RejectCallButton = ({
74
74
  onRejectCallHandler();
75
75
  }
76
76
  } catch (error) {
77
- const logger = getLogger(['RejectCallButton']);
78
- logger('error', 'Error rejecting Call', error);
77
+ const logger = videoLoggerSystem.getLogger('RejectCallButton');
78
+ logger.error('Error rejecting Call', error);
79
79
  } finally {
80
80
  setIsLoading(false);
81
81
  }
@@ -7,7 +7,10 @@ import {
7
7
  StyleSheet,
8
8
  } from 'react-native';
9
9
  import { useCall } from '@stream-io/video-react-bindings';
10
- import { getLogger, type SendReactionRequest } from '@stream-io/video-client';
10
+ import {
11
+ type SendReactionRequest,
12
+ videoLoggerSystem,
13
+ } from '@stream-io/video-client';
11
14
  import { ComponentTestIds } from '../../../../constants/TestIds';
12
15
  import { useTheme } from '../../../../contexts/ThemeContext';
13
16
  import type { ReactionsButtonProps } from '../ReactionsButton';
@@ -82,8 +85,8 @@ export const ReactionsPicker = ({
82
85
  const onClose = (reaction?: SendReactionRequest) => {
83
86
  if (reaction) {
84
87
  call?.sendReaction(reaction).catch((e) => {
85
- const logger = getLogger(['ReactionsPicker']);
86
- logger('error', 'Error on onClose-sendReaction', e, reaction);
88
+ const logger = videoLoggerSystem.getLogger('ReactionsPicker');
89
+ logger.error('Error on onClose-sendReaction', e, reaction);
87
90
  });
88
91
  }
89
92
  Animated.timing(elasticAnimRef.current, {
@@ -3,7 +3,7 @@ import { type LobbyProps } from './Lobby';
3
3
  import { Pressable, StyleSheet, Text } from 'react-native';
4
4
  import { useCall, useI18n } from '@stream-io/video-react-bindings';
5
5
  import { useTheme } from '../../../contexts/ThemeContext';
6
- import { getLogger } from '@stream-io/video-client';
6
+ import { videoLoggerSystem } from '@stream-io/video-client';
7
7
 
8
8
  /**
9
9
  * Props for the Join Call Button in the Lobby component.
@@ -39,8 +39,8 @@ export const JoinCallButton = ({
39
39
  onJoinCallHandler();
40
40
  }
41
41
  } catch (error) {
42
- const logger = getLogger(['JoinCallButton']);
43
- logger('error', 'Error joining call:', error);
42
+ const logger = videoLoggerSystem.getLogger('JoinCallButton');
43
+ logger.error('Error joining call:', error);
44
44
  } finally {
45
45
  setIsLoading(false);
46
46
  }
@@ -13,7 +13,7 @@ import {
13
13
  } from 'react-native';
14
14
  import { useTheme } from '../../../contexts';
15
15
  import { EndBroadcastIcon, StartStreamIcon } from '../../../icons';
16
- import { SfuModels, getLogger } from '@stream-io/video-client';
16
+ import { SfuModels, videoLoggerSystem } from '@stream-io/video-client';
17
17
 
18
18
  /**
19
19
  * Props for the HostStartStreamButton component.
@@ -79,8 +79,8 @@ export const HostStartStreamButton = ({
79
79
  onStartStreamHandler();
80
80
  }
81
81
  } catch (error) {
82
- const logger = getLogger(['HostStartStreamButton']);
83
- logger('error', 'Error starting livestream', error);
82
+ const logger = videoLoggerSystem.getLogger('HostStartStreamButton');
83
+ logger.error('Error starting livestream', error);
84
84
  }
85
85
  };
86
86
 
@@ -102,8 +102,8 @@ export const HostStartStreamButton = ({
102
102
  onEndStreamHandler();
103
103
  }
104
104
  } catch (error) {
105
- const logger = getLogger(['HostStartStreamButton']);
106
- logger('error', 'Error stopping livestream', error);
105
+ const logger = videoLoggerSystem.getLogger('HostStartStreamButton');
106
+ logger.error('Error stopping livestream', error);
107
107
  }
108
108
  };
109
109
 
@@ -3,7 +3,7 @@ import { ActivityIndicator, Pressable, StyleSheet, View } from 'react-native';
3
3
  import { useTheme } from '../../../contexts';
4
4
  import { PhoneDown } from '../../../icons';
5
5
  import { useCall } from '@stream-io/video-react-bindings';
6
- import { getLogger } from '@stream-io/video-client';
6
+ import { videoLoggerSystem } from '@stream-io/video-client';
7
7
 
8
8
  /**
9
9
  * Props for the ViewerLeaveStreamButton component.
@@ -43,8 +43,8 @@ export const ViewerLeaveStreamButton = ({
43
43
  await call?.leave();
44
44
  setIsAwaitingResponse(false);
45
45
  } catch (error) {
46
- const logger = getLogger(['ViewerLeaveStreamButton']);
47
- logger('error', 'Error stopping livestream', error);
46
+ const logger = videoLoggerSystem.getLogger('ViewerLeaveStreamButton');
47
+ logger.error('Error stopping livestream', error);
48
48
  }
49
49
  };
50
50
 
@@ -3,7 +3,7 @@ import {
3
3
  ViewerLivestream as DefaultViewerLivestream,
4
4
  type ViewerLivestreamProps,
5
5
  } from '../ViewerLivestream';
6
- import { Call, CallingState, getLogger } from '@stream-io/video-client';
6
+ import { Call, CallingState, videoLoggerSystem } from '@stream-io/video-client';
7
7
  import { StreamCall } from '../../../providers/StreamCall';
8
8
  import { useStreamVideoClient } from '@stream-io/video-react-bindings';
9
9
 
@@ -56,8 +56,8 @@ export const LivestreamPlayer = ({
56
56
  return () => {
57
57
  if (myCall.state.callingState !== CallingState.LEFT) {
58
58
  myCall.leave().catch((e) => {
59
- const logger = getLogger(['LivestreamPlayer']);
60
- logger('error', 'Error leaving call:', e);
59
+ const logger = videoLoggerSystem.getLogger('LivestreamPlayer');
60
+ logger.error('Error leaving call:', e);
61
61
  });
62
62
  }
63
63
  setCall(undefined);
@@ -69,8 +69,8 @@ export const LivestreamPlayer = ({
69
69
  // this handles unmount on metro reloads
70
70
  if (call?.state.callingState !== CallingState.LEFT) {
71
71
  call?.leave().catch((e) => {
72
- const logger = getLogger(['LivestreamPlayer']);
73
- logger('error', 'Error leaving call:', e);
72
+ const logger = videoLoggerSystem.getLogger('LivestreamPlayer');
73
+ logger.error('Error leaving call:', e);
74
74
  });
75
75
  }
76
76
  };
@@ -12,8 +12,7 @@ import {
12
12
  View,
13
13
  } from 'react-native';
14
14
  import { useTheme } from '../../../contexts';
15
- import { CallingState } from '@stream-io/video-client';
16
- import { getLogger } from '@stream-io/video-client';
15
+ import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
17
16
 
18
17
  type LobbyProps = {
19
18
  isLive: boolean;
@@ -68,8 +67,8 @@ export const ViewerLobby = ({ isLive }: LobbyProps) => {
68
67
  await call.get();
69
68
  } catch (err) {
70
69
  if (err instanceof Error) {
71
- const logger = getLogger(['ViewerLobby']);
72
- logger('error', 'Error getting call:', err);
70
+ const logger = videoLoggerSystem.getLogger('ViewerLobby');
71
+ logger.error('Error getting call:', err);
73
72
  setError(err);
74
73
  }
75
74
  }
@@ -14,7 +14,7 @@ import {
14
14
  getClosestSnapAlignment,
15
15
  getSnapAlignments,
16
16
  } from './common';
17
- import { getLogger } from '@stream-io/video-client';
17
+ import { videoLoggerSystem } from '@stream-io/video-client';
18
18
 
19
19
  const AnimatedFloatingView = ({
20
20
  initialAlignment,
@@ -115,9 +115,8 @@ const AnimatedFloatingView = ({
115
115
  ).current;
116
116
 
117
117
  useEffect(() => {
118
- const logger = getLogger(['AnimatedFloatingView']);
119
- logger(
120
- 'info',
118
+ const logger = videoLoggerSystem.getLogger('AnimatedFloatingView');
119
+ logger.info(
121
120
  'react-native-reanimated and/or react-native-gesture-handler libraries are not installed. Please install them to get a more performant draggable local video component',
122
121
  );
123
122
  }, []);
@@ -83,18 +83,17 @@ const TrackSubscriber = forwardRef<TrackSubscriberHandle, TrackSubscriberProps>(
83
83
  dimensions$,
84
84
  isPublishingTrack$,
85
85
  isJoinedState$,
86
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
86
87
  ]).subscribe(([dimension, isPublishing, isJoined]) => {
87
- if (isJoined && isPublishing && !isVisible) {
88
- // the participant is publishing and we are not visible, so we unsubscribe from the video track
89
- requestTrackWithDimensions(DebounceType.FAST, undefined);
90
- } else if (isJoined && isPublishing && isVisible && dimension) {
91
- // the participant is publishing and we are visible and have valid dimensions, so we subscribe to the video track
92
- requestTrackWithDimensions(DebounceType.IMMEDIATE, dimension);
93
- } else if (isJoined && !isPublishing) {
94
- // the participant stopped publishing a track, so we unsubscribe from the video track
95
- requestTrackWithDimensions(DebounceType.FAST, undefined);
88
+ // isPublishing is not used here, but we need to keep it for the subscription
89
+ // to send the dimensions again when the participant starts publishing the track again
90
+ if (isJoined) {
91
+ if (!isVisible) {
92
+ requestTrackWithDimensions(DebounceType.MEDIUM, undefined);
93
+ } else if (dimension) {
94
+ requestTrackWithDimensions(DebounceType.IMMEDIATE, dimension);
95
+ }
96
96
  }
97
- // if isPublishing but no dimension yet, we wait for dimensions
98
97
  });
99
98
 
100
99
  return () => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  StreamVideoParticipant,
3
+ videoLoggerSystem,
3
4
  type VideoTrackType,
4
- getLogger,
5
5
  } from '@stream-io/video-client';
6
6
  import React, {
7
7
  createContext,
@@ -85,20 +85,20 @@ export const ScreenshotIosContextProvider = ({
85
85
  `${participant.userId}-${videoTrackType}`,
86
86
  );
87
87
  if (!ref || !ref.current) {
88
- getLogger(['ScreenshotIosContextProvider'])(
89
- 'error',
90
- 'Cannot take snapshot: No registered view for this participant',
91
- );
88
+ videoLoggerSystem
89
+ .getLogger('ScreenshotIosContextProvider')
90
+ .error(
91
+ 'Cannot take snapshot: No registered view for this participant',
92
+ );
92
93
  return null;
93
94
  }
94
95
 
95
96
  // Get the native handle for the view
96
97
  const tag = findNodeHandle(ref.current);
97
98
  if (!tag) {
98
- getLogger(['ScreenshotIosContextProvider'])(
99
- 'error',
100
- 'Cannot take snapshot: Cannot get native handle for view',
101
- );
99
+ videoLoggerSystem
100
+ .getLogger('ScreenshotIosContextProvider')
101
+ .error('Cannot take snapshot: Cannot get native handle for view');
102
102
  return null;
103
103
  }
104
104
 
@@ -107,11 +107,9 @@ export const ScreenshotIosContextProvider = ({
107
107
 
108
108
  return base64Image;
109
109
  } catch (error) {
110
- getLogger(['ScreenshotIosContextProvider'])(
111
- 'error',
112
- 'Error taking participant snapshot:',
113
- error,
114
- );
110
+ videoLoggerSystem
111
+ .getLogger('ScreenshotIosContextProvider')
112
+ .error('Error taking participant snapshot:', error);
115
113
  return null;
116
114
  }
117
115
  },
@@ -5,7 +5,7 @@ import {
5
5
  import { useEffect } from 'react';
6
6
  import { StreamVideoRN } from '../../utils';
7
7
  import { initAndroidPushToken } from '../../utils/push/android';
8
- import { getLogger } from '@stream-io/video-client';
8
+ import { videoLoggerSystem } from '@stream-io/video-client';
9
9
 
10
10
  /**
11
11
  * This hook is used to initialize the push token for Android.
@@ -23,11 +23,9 @@ export const useInitAndroidTokenAndRest = () => {
23
23
  initAndroidPushToken(client, pushConfig, (unsubscribeListener) => {
24
24
  unsubscribe = unsubscribeListener;
25
25
  }).catch((error) => {
26
- getLogger(['useInitAndroidTokenAndRest'])(
27
- 'warn',
28
- 'Error in initializing android push token',
29
- error,
30
- );
26
+ videoLoggerSystem
27
+ .getLogger('useInitAndroidTokenAndRest')
28
+ .warn('Error in initializing android push token', error);
31
29
  });
32
30
  return () => {
33
31
  unsubscribe();
@@ -1,4 +1,8 @@
1
- import { CallingState, getLogger, RxUtils } from '@stream-io/video-client';
1
+ import {
2
+ CallingState,
3
+ RxUtils,
4
+ videoLoggerSystem,
5
+ } from '@stream-io/video-client';
2
6
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
3
7
  import { NativeModules, Platform } from 'react-native';
4
8
  import { useEffect, useState } from 'react';
@@ -38,9 +42,11 @@ const unsubscribeCallkeepEvents = async (activeCallCid: string | undefined) => {
38
42
  );
39
43
  };
40
44
 
41
- const logger = getLogger(['useIosCallkeepWithCallingStateEffect']);
45
+ const logger = videoLoggerSystem.getLogger(
46
+ 'useIosCallkeepWithCallingStateEffect',
47
+ );
42
48
  const log = (message: string) => {
43
- logger('warn', message);
49
+ logger.warn(message);
44
50
  };
45
51
 
46
52
  /**