@100mslive/react-native-room-kit 1.0.2 → 1.0.4-beta.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 (623) hide show
  1. package/lib/commonjs/Icons/100ms/index.js +4 -5
  2. package/lib/commonjs/Icons/100ms/index.js.map +1 -1
  3. package/lib/commonjs/Icons/Alert/index.js +4 -5
  4. package/lib/commonjs/Icons/Alert/index.js.map +1 -1
  5. package/lib/commonjs/Icons/AlertTriangle/index.js +5 -6
  6. package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
  7. package/lib/commonjs/Icons/AnswerPhone/index.js +4 -5
  8. package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
  9. package/lib/commonjs/Icons/BRB/index.js +4 -5
  10. package/lib/commonjs/Icons/BRB/index.js.map +1 -1
  11. package/lib/commonjs/Icons/Bluetooth/index.js +4 -5
  12. package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
  13. package/lib/commonjs/Icons/Camera/index.js +5 -6
  14. package/lib/commonjs/Icons/Camera/index.js.map +1 -1
  15. package/lib/commonjs/Icons/Chat/index.js +4 -5
  16. package/lib/commonjs/Icons/Chat/index.js.map +1 -1
  17. package/lib/commonjs/Icons/Check/index.js +4 -5
  18. package/lib/commonjs/Icons/Check/index.js.map +1 -1
  19. package/lib/commonjs/Icons/Chevron/index.js +5 -6
  20. package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
  21. package/lib/commonjs/Icons/Clock/index.js +4 -5
  22. package/lib/commonjs/Icons/Clock/index.js.map +1 -1
  23. package/lib/commonjs/Icons/Close/index.js +4 -5
  24. package/lib/commonjs/Icons/Close/index.js.map +1 -1
  25. package/lib/commonjs/Icons/CrossCircle/assets/cross-circle.png +0 -0
  26. package/lib/commonjs/Icons/CrossCircle/assets/cross-circle@2x.png +0 -0
  27. package/lib/commonjs/Icons/CrossCircle/assets/cross-circle@3x.png +0 -0
  28. package/lib/commonjs/Icons/CrossCircle/index.js +33 -0
  29. package/lib/commonjs/Icons/CrossCircle/index.js.map +1 -0
  30. package/lib/commonjs/Icons/End/index.js +4 -5
  31. package/lib/commonjs/Icons/End/index.js.map +1 -1
  32. package/lib/commonjs/Icons/Eye/index.js +5 -6
  33. package/lib/commonjs/Icons/Eye/index.js.map +1 -1
  34. package/lib/commonjs/Icons/GenericLogo/index.js +4 -5
  35. package/lib/commonjs/Icons/GenericLogo/index.js.map +1 -1
  36. package/lib/commonjs/Icons/Hamburger/index.js +4 -5
  37. package/lib/commonjs/Icons/Hamburger/index.js.map +1 -1
  38. package/lib/commonjs/Icons/Hand/assets/hand-off.png +0 -0
  39. package/lib/commonjs/Icons/Hand/assets/hand-off@2x.png +0 -0
  40. package/lib/commonjs/Icons/Hand/assets/hand-off@3x.png +0 -0
  41. package/lib/commonjs/Icons/Hand/index.js +5 -6
  42. package/lib/commonjs/Icons/Hand/index.js.map +1 -1
  43. package/lib/commonjs/Icons/Headphones/index.js +4 -5
  44. package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
  45. package/lib/commonjs/Icons/Leave/index.js +4 -5
  46. package/lib/commonjs/Icons/Leave/index.js.map +1 -1
  47. package/lib/commonjs/Icons/Maximize/index.js +4 -5
  48. package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
  49. package/lib/commonjs/Icons/Mic/index.js +5 -6
  50. package/lib/commonjs/Icons/Mic/index.js.map +1 -1
  51. package/lib/commonjs/Icons/Minimize/index.js +4 -5
  52. package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
  53. package/lib/commonjs/Icons/NetworkQuality/index.js +5 -6
  54. package/lib/commonjs/Icons/NetworkQuality/index.js.map +1 -1
  55. package/lib/commonjs/Icons/Participants/index.js +4 -5
  56. package/lib/commonjs/Icons/Participants/index.js.map +1 -1
  57. package/lib/commonjs/Icons/Pencil/index.js +4 -5
  58. package/lib/commonjs/Icons/Pencil/index.js.map +1 -1
  59. package/lib/commonjs/Icons/Person/index.js +5 -6
  60. package/lib/commonjs/Icons/Person/index.js.map +1 -1
  61. package/lib/commonjs/Icons/Pin/index.js +4 -5
  62. package/lib/commonjs/Icons/Pin/index.js.map +1 -1
  63. package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
  64. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  65. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  66. package/lib/commonjs/Icons/Radio/index.js +4 -5
  67. package/lib/commonjs/Icons/Radio/index.js.map +1 -1
  68. package/lib/commonjs/Icons/Recording/assets/recording-off.png +0 -0
  69. package/lib/commonjs/Icons/Recording/assets/recording-off@2x.png +0 -0
  70. package/lib/commonjs/Icons/Recording/assets/recording-off@3x.png +0 -0
  71. package/lib/commonjs/Icons/Recording/index.js +5 -6
  72. package/lib/commonjs/Icons/Recording/index.js.map +1 -1
  73. package/lib/commonjs/Icons/RotateCamera/index.js +4 -5
  74. package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
  75. package/lib/commonjs/Icons/ScreenShare/index.js +4 -5
  76. package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
  77. package/lib/commonjs/Icons/Search/index.js +4 -5
  78. package/lib/commonjs/Icons/Search/index.js.map +1 -1
  79. package/lib/commonjs/Icons/Send/index.js +4 -5
  80. package/lib/commonjs/Icons/Send/index.js.map +1 -1
  81. package/lib/commonjs/Icons/Settings/index.js +4 -5
  82. package/lib/commonjs/Icons/Settings/index.js.map +1 -1
  83. package/lib/commonjs/Icons/Speaker/index.js +6 -7
  84. package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
  85. package/lib/commonjs/Icons/Star/index.js +4 -5
  86. package/lib/commonjs/Icons/Star/index.js.map +1 -1
  87. package/lib/commonjs/Icons/Stop/index.js +4 -5
  88. package/lib/commonjs/Icons/Stop/index.js.map +1 -1
  89. package/lib/commonjs/Icons/ThreeDots/index.js +5 -6
  90. package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
  91. package/lib/commonjs/Icons/Wave/index.js +4 -5
  92. package/lib/commonjs/Icons/Wave/index.js.map +1 -1
  93. package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
  94. package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
  95. package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
  96. package/lib/commonjs/Icons/WelcomeHand/index.js +4 -5
  97. package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -1
  98. package/lib/commonjs/Icons/index.js +11 -0
  99. package/lib/commonjs/Icons/index.js.map +1 -1
  100. package/lib/commonjs/components/AnimatedFooter.js +4 -5
  101. package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
  102. package/lib/commonjs/components/AnimatedHLSFooter.js +5 -6
  103. package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
  104. package/lib/commonjs/components/AnimatedHeader.js +4 -5
  105. package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
  106. package/lib/commonjs/components/AvatarView.js +5 -6
  107. package/lib/commonjs/components/AvatarView.js.map +1 -1
  108. package/lib/commonjs/components/BottomSheet.js +18 -21
  109. package/lib/commonjs/components/BottomSheet.js.map +1 -1
  110. package/lib/commonjs/components/ChangeNameModalContent.js +3 -4
  111. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
  112. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +1 -2
  113. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
  114. package/lib/commonjs/components/Chat/ChatFilterItem.js +6 -7
  115. package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
  116. package/lib/commonjs/components/Chat/ChatFilterView.js +8 -11
  117. package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
  118. package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
  119. package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
  120. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +3 -4
  121. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  122. package/lib/commonjs/components/CompanyLogo.js +4 -5
  123. package/lib/commonjs/components/CompanyLogo.js.map +1 -1
  124. package/lib/commonjs/components/CustomButton.js +10 -11
  125. package/lib/commonjs/components/CustomButton.js.map +1 -1
  126. package/lib/commonjs/components/CustomHLSPlayerControls.js +3 -4
  127. package/lib/commonjs/components/CustomHLSPlayerControls.js.map +1 -1
  128. package/lib/commonjs/components/DefaultModal.js +11 -12
  129. package/lib/commonjs/components/DefaultModal.js.map +1 -1
  130. package/lib/commonjs/components/DisplayView.js +4 -5
  131. package/lib/commonjs/components/DisplayView.js.map +1 -1
  132. package/lib/commonjs/components/EndRoomModalContent.js +3 -4
  133. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
  134. package/lib/commonjs/components/GridView.js +22 -28
  135. package/lib/commonjs/components/GridView.js.map +1 -1
  136. package/lib/commonjs/components/HLSFooter.js +5 -5
  137. package/lib/commonjs/components/HLSFooter.js.map +1 -1
  138. package/lib/commonjs/components/HLSPlayerStatsView.js +3 -4
  139. package/lib/commonjs/components/HLSPlayerStatsView.js.map +1 -1
  140. package/lib/commonjs/components/HLSView.js +59 -9
  141. package/lib/commonjs/components/HLSView.js.map +1 -1
  142. package/lib/commonjs/components/HMSBaseButton.js +12 -13
  143. package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
  144. package/lib/commonjs/components/HMSDangerButton.js +9 -10
  145. package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
  146. package/lib/commonjs/components/HMSHLSMessage.js +3 -4
  147. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
  148. package/lib/commonjs/components/HMSHandRaiseNotification.js +6 -7
  149. package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
  150. package/lib/commonjs/components/HMSKeyboardAvoidingView.js +5 -6
  151. package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
  152. package/lib/commonjs/components/HMSManageAudioOutput.js +116 -34
  153. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  154. package/lib/commonjs/components/HMSNotification.js +13 -14
  155. package/lib/commonjs/components/HMSNotification.js.map +1 -1
  156. package/lib/commonjs/components/HMSPreviewJoinButton.js +4 -5
  157. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  158. package/lib/commonjs/components/HMSPreviewSubtitle.js +3 -4
  159. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  160. package/lib/commonjs/components/HMSPreviewTitle.js +3 -4
  161. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  162. package/lib/commonjs/components/HMSPrimaryButton.js +9 -10
  163. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
  164. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +6 -7
  165. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
  166. package/lib/commonjs/components/HMSSendMessageInput.js +4 -5
  167. package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
  168. package/lib/commonjs/components/HMSTerminalErrorNotification.js +6 -7
  169. package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
  170. package/lib/commonjs/components/HMSTextInput.js +7 -8
  171. package/lib/commonjs/components/HMSTextInput.js.map +1 -1
  172. package/lib/commonjs/components/HMSVideoView.js +5 -6
  173. package/lib/commonjs/components/HMSVideoView.js.map +1 -1
  174. package/lib/commonjs/components/Header.js +4 -5
  175. package/lib/commonjs/components/Header.js.map +1 -1
  176. package/lib/commonjs/components/LocalPeerRegularVideoView.js +3 -4
  177. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
  178. package/lib/commonjs/components/Meeting.js +3 -4
  179. package/lib/commonjs/components/Meeting.js.map +1 -1
  180. package/lib/commonjs/components/MeetingScreenContent.js +3 -4
  181. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  182. package/lib/commonjs/components/MenuModal/MenuDivider.js +3 -4
  183. package/lib/commonjs/components/MenuModal/MenuDivider.js.map +1 -1
  184. package/lib/commonjs/components/MenuModal/MenuItem.js +15 -19
  185. package/lib/commonjs/components/MenuModal/MenuItem.js.map +1 -1
  186. package/lib/commonjs/components/MiniView.js +4 -5
  187. package/lib/commonjs/components/MiniView.js.map +1 -1
  188. package/lib/commonjs/components/Modals.js +47 -60
  189. package/lib/commonjs/components/Modals.js.map +1 -1
  190. package/lib/commonjs/components/OverlayContainer.js +6 -8
  191. package/lib/commonjs/components/OverlayContainer.js.map +1 -1
  192. package/lib/commonjs/components/PIPView.js +7 -9
  193. package/lib/commonjs/components/PIPView.js.map +1 -1
  194. package/lib/commonjs/components/PaginationDots.js +5 -6
  195. package/lib/commonjs/components/PaginationDots.js.map +1 -1
  196. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +4 -5
  197. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
  198. package/lib/commonjs/components/Participants/ParticipantsAccordian.js +7 -8
  199. package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
  200. package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +4 -5
  201. package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
  202. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +4 -5
  203. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
  204. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +7 -8
  205. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  206. package/lib/commonjs/components/Participants/ParticipantsItem.js +4 -5
  207. package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
  208. package/lib/commonjs/components/Participants/ParticipantsItemOption.js +7 -8
  209. package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
  210. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +5 -6
  211. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
  212. package/lib/commonjs/components/Participants/ParticipantsList.js +5 -6
  213. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  214. package/lib/commonjs/components/Participants/ParticipantsListFooter.js +3 -4
  215. package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -1
  216. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -5
  217. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
  218. package/lib/commonjs/components/PeerDisplayView.js +6 -7
  219. package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
  220. package/lib/commonjs/components/PeerMinimizedView.js +4 -5
  221. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
  222. package/lib/commonjs/components/PeerRTCStatsContainer.js +5 -6
  223. package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
  224. package/lib/commonjs/components/PeerRTCStatsView.js +4 -5
  225. package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
  226. package/lib/commonjs/components/PeerSettingsModalContent.js +13 -15
  227. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  228. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +7 -8
  229. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
  230. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +3 -4
  231. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
  232. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +7 -9
  233. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
  234. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +4 -5
  235. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
  236. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +4 -5
  237. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
  238. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +6 -7
  239. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  240. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +6 -7
  241. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  242. package/lib/commonjs/components/PeerVideoTile/VideoView.js +9 -10
  243. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
  244. package/lib/commonjs/components/PressableIcon.js +8 -9
  245. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  246. package/lib/commonjs/components/Preview.js +4 -5
  247. package/lib/commonjs/components/Preview.js.map +1 -1
  248. package/lib/commonjs/components/RoomSettingsModalContent.js +7 -8
  249. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  250. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +18 -21
  251. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  252. package/lib/commonjs/components/StatusBar.js +4 -5
  253. package/lib/commonjs/components/StatusBar.js.map +1 -1
  254. package/lib/commonjs/components/StopRecordingModalContent.js +3 -4
  255. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
  256. package/lib/commonjs/components/StreamingQualityModalContent.js +4 -5
  257. package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
  258. package/lib/commonjs/components/SwitchRow.js +7 -8
  259. package/lib/commonjs/components/SwitchRow.js.map +1 -1
  260. package/lib/commonjs/components/Tile.js +9 -10
  261. package/lib/commonjs/components/Tile.js.map +1 -1
  262. package/lib/commonjs/components/TilesContainer.js +5 -6
  263. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  264. package/lib/commonjs/components/UnmountAfterDelay.js +6 -7
  265. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
  266. package/lib/commonjs/components/WebrtcView.js +4 -5
  267. package/lib/commonjs/components/WebrtcView.js.map +1 -1
  268. package/lib/commonjs/hooks-sdk.js +17 -1
  269. package/lib/commonjs/hooks-sdk.js.map +1 -1
  270. package/lib/commonjs/hooks-util.js +31 -36
  271. package/lib/commonjs/hooks-util.js.map +1 -1
  272. package/lib/commonjs/redux/reducers/appState.js +1 -3
  273. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  274. package/lib/commonjs/redux/reducers/chatWindow.js +1 -3
  275. package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
  276. package/lib/commonjs/redux/reducers/hmsStates.js +1 -3
  277. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  278. package/lib/commonjs/redux/reducers/message.js +1 -3
  279. package/lib/commonjs/redux/reducers/message.js.map +1 -1
  280. package/lib/commonjs/redux/reducers/userState.js +1 -3
  281. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  282. package/lib/commonjs/utils/constants.js +4 -1
  283. package/lib/commonjs/utils/constants.js.map +1 -1
  284. package/lib/commonjs/utils/functions.js +2 -71
  285. package/lib/commonjs/utils/functions.js.map +1 -1
  286. package/lib/commonjs/utils/theme.js +1 -2
  287. package/lib/commonjs/utils/theme.js.map +1 -1
  288. package/lib/module/Icons/100ms/index.js +4 -5
  289. package/lib/module/Icons/100ms/index.js.map +1 -1
  290. package/lib/module/Icons/Alert/index.js +4 -5
  291. package/lib/module/Icons/Alert/index.js.map +1 -1
  292. package/lib/module/Icons/AlertTriangle/index.js +5 -6
  293. package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
  294. package/lib/module/Icons/AnswerPhone/index.js +4 -5
  295. package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
  296. package/lib/module/Icons/BRB/index.js +4 -5
  297. package/lib/module/Icons/BRB/index.js.map +1 -1
  298. package/lib/module/Icons/Bluetooth/index.js +4 -5
  299. package/lib/module/Icons/Bluetooth/index.js.map +1 -1
  300. package/lib/module/Icons/Camera/index.js +5 -6
  301. package/lib/module/Icons/Camera/index.js.map +1 -1
  302. package/lib/module/Icons/Chat/index.js +4 -5
  303. package/lib/module/Icons/Chat/index.js.map +1 -1
  304. package/lib/module/Icons/Check/index.js +4 -5
  305. package/lib/module/Icons/Check/index.js.map +1 -1
  306. package/lib/module/Icons/Chevron/index.js +5 -6
  307. package/lib/module/Icons/Chevron/index.js.map +1 -1
  308. package/lib/module/Icons/Clock/index.js +4 -5
  309. package/lib/module/Icons/Clock/index.js.map +1 -1
  310. package/lib/module/Icons/Close/index.js +4 -5
  311. package/lib/module/Icons/Close/index.js.map +1 -1
  312. package/lib/module/Icons/CrossCircle/assets/cross-circle.png +0 -0
  313. package/lib/module/Icons/CrossCircle/assets/cross-circle@2x.png +0 -0
  314. package/lib/module/Icons/CrossCircle/assets/cross-circle@3x.png +0 -0
  315. package/lib/module/Icons/CrossCircle/index.js +25 -0
  316. package/lib/module/Icons/CrossCircle/index.js.map +1 -0
  317. package/lib/module/Icons/End/index.js +4 -5
  318. package/lib/module/Icons/End/index.js.map +1 -1
  319. package/lib/module/Icons/Eye/index.js +5 -6
  320. package/lib/module/Icons/Eye/index.js.map +1 -1
  321. package/lib/module/Icons/GenericLogo/index.js +4 -5
  322. package/lib/module/Icons/GenericLogo/index.js.map +1 -1
  323. package/lib/module/Icons/Hamburger/index.js +4 -5
  324. package/lib/module/Icons/Hamburger/index.js.map +1 -1
  325. package/lib/module/Icons/Hand/assets/hand-off.png +0 -0
  326. package/lib/module/Icons/Hand/assets/hand-off@2x.png +0 -0
  327. package/lib/module/Icons/Hand/assets/hand-off@3x.png +0 -0
  328. package/lib/module/Icons/Hand/index.js +5 -6
  329. package/lib/module/Icons/Hand/index.js.map +1 -1
  330. package/lib/module/Icons/Headphones/index.js +4 -5
  331. package/lib/module/Icons/Headphones/index.js.map +1 -1
  332. package/lib/module/Icons/Leave/index.js +4 -5
  333. package/lib/module/Icons/Leave/index.js.map +1 -1
  334. package/lib/module/Icons/Maximize/index.js +4 -5
  335. package/lib/module/Icons/Maximize/index.js.map +1 -1
  336. package/lib/module/Icons/Mic/index.js +5 -6
  337. package/lib/module/Icons/Mic/index.js.map +1 -1
  338. package/lib/module/Icons/Minimize/index.js +4 -5
  339. package/lib/module/Icons/Minimize/index.js.map +1 -1
  340. package/lib/module/Icons/NetworkQuality/index.js +5 -6
  341. package/lib/module/Icons/NetworkQuality/index.js.map +1 -1
  342. package/lib/module/Icons/Participants/index.js +4 -5
  343. package/lib/module/Icons/Participants/index.js.map +1 -1
  344. package/lib/module/Icons/Pencil/index.js +4 -5
  345. package/lib/module/Icons/Pencil/index.js.map +1 -1
  346. package/lib/module/Icons/Person/index.js +5 -6
  347. package/lib/module/Icons/Person/index.js.map +1 -1
  348. package/lib/module/Icons/Pin/index.js +4 -5
  349. package/lib/module/Icons/Pin/index.js.map +1 -1
  350. package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
  351. package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  352. package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  353. package/lib/module/Icons/Radio/index.js +4 -5
  354. package/lib/module/Icons/Radio/index.js.map +1 -1
  355. package/lib/module/Icons/Recording/assets/recording-off.png +0 -0
  356. package/lib/module/Icons/Recording/assets/recording-off@2x.png +0 -0
  357. package/lib/module/Icons/Recording/assets/recording-off@3x.png +0 -0
  358. package/lib/module/Icons/Recording/index.js +5 -6
  359. package/lib/module/Icons/Recording/index.js.map +1 -1
  360. package/lib/module/Icons/RotateCamera/index.js +4 -5
  361. package/lib/module/Icons/RotateCamera/index.js.map +1 -1
  362. package/lib/module/Icons/ScreenShare/index.js +4 -5
  363. package/lib/module/Icons/ScreenShare/index.js.map +1 -1
  364. package/lib/module/Icons/Search/index.js +4 -5
  365. package/lib/module/Icons/Search/index.js.map +1 -1
  366. package/lib/module/Icons/Send/index.js +4 -5
  367. package/lib/module/Icons/Send/index.js.map +1 -1
  368. package/lib/module/Icons/Settings/index.js +4 -5
  369. package/lib/module/Icons/Settings/index.js.map +1 -1
  370. package/lib/module/Icons/Speaker/index.js +6 -7
  371. package/lib/module/Icons/Speaker/index.js.map +1 -1
  372. package/lib/module/Icons/Star/index.js +4 -5
  373. package/lib/module/Icons/Star/index.js.map +1 -1
  374. package/lib/module/Icons/Stop/index.js +4 -5
  375. package/lib/module/Icons/Stop/index.js.map +1 -1
  376. package/lib/module/Icons/ThreeDots/index.js +5 -6
  377. package/lib/module/Icons/ThreeDots/index.js.map +1 -1
  378. package/lib/module/Icons/Wave/index.js +4 -5
  379. package/lib/module/Icons/Wave/index.js.map +1 -1
  380. package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
  381. package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
  382. package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
  383. package/lib/module/Icons/WelcomeHand/index.js +4 -5
  384. package/lib/module/Icons/WelcomeHand/index.js.map +1 -1
  385. package/lib/module/Icons/index.js +1 -0
  386. package/lib/module/Icons/index.js.map +1 -1
  387. package/lib/module/components/AnimatedFooter.js +4 -5
  388. package/lib/module/components/AnimatedFooter.js.map +1 -1
  389. package/lib/module/components/AnimatedHLSFooter.js +5 -6
  390. package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
  391. package/lib/module/components/AnimatedHeader.js +4 -5
  392. package/lib/module/components/AnimatedHeader.js.map +1 -1
  393. package/lib/module/components/AvatarView.js +5 -6
  394. package/lib/module/components/AvatarView.js.map +1 -1
  395. package/lib/module/components/BottomSheet.js +18 -21
  396. package/lib/module/components/BottomSheet.js.map +1 -1
  397. package/lib/module/components/ChangeNameModalContent.js +3 -4
  398. package/lib/module/components/ChangeNameModalContent.js.map +1 -1
  399. package/lib/module/components/Chat/ChatFilterBottomSheetView.js +1 -2
  400. package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
  401. package/lib/module/components/Chat/ChatFilterItem.js +6 -7
  402. package/lib/module/components/Chat/ChatFilterItem.js.map +1 -1
  403. package/lib/module/components/Chat/ChatFilterView.js +8 -11
  404. package/lib/module/components/Chat/ChatFilterView.js.map +1 -1
  405. package/lib/module/components/Chat/ChatMessage.js +3 -4
  406. package/lib/module/components/Chat/ChatMessage.js.map +1 -1
  407. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +3 -4
  408. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  409. package/lib/module/components/CompanyLogo.js +4 -5
  410. package/lib/module/components/CompanyLogo.js.map +1 -1
  411. package/lib/module/components/CustomButton.js +10 -11
  412. package/lib/module/components/CustomButton.js.map +1 -1
  413. package/lib/module/components/CustomHLSPlayerControls.js +3 -4
  414. package/lib/module/components/CustomHLSPlayerControls.js.map +1 -1
  415. package/lib/module/components/DefaultModal.js +11 -12
  416. package/lib/module/components/DefaultModal.js.map +1 -1
  417. package/lib/module/components/DisplayView.js +4 -5
  418. package/lib/module/components/DisplayView.js.map +1 -1
  419. package/lib/module/components/EndRoomModalContent.js +3 -4
  420. package/lib/module/components/EndRoomModalContent.js.map +1 -1
  421. package/lib/module/components/GridView.js +22 -28
  422. package/lib/module/components/GridView.js.map +1 -1
  423. package/lib/module/components/HLSFooter.js +5 -5
  424. package/lib/module/components/HLSFooter.js.map +1 -1
  425. package/lib/module/components/HLSPlayerStatsView.js +3 -4
  426. package/lib/module/components/HLSPlayerStatsView.js.map +1 -1
  427. package/lib/module/components/HLSView.js +60 -10
  428. package/lib/module/components/HLSView.js.map +1 -1
  429. package/lib/module/components/HMSBaseButton.js +12 -13
  430. package/lib/module/components/HMSBaseButton.js.map +1 -1
  431. package/lib/module/components/HMSDangerButton.js +9 -10
  432. package/lib/module/components/HMSDangerButton.js.map +1 -1
  433. package/lib/module/components/HMSHLSMessage.js +3 -4
  434. package/lib/module/components/HMSHLSMessage.js.map +1 -1
  435. package/lib/module/components/HMSHandRaiseNotification.js +6 -7
  436. package/lib/module/components/HMSHandRaiseNotification.js.map +1 -1
  437. package/lib/module/components/HMSKeyboardAvoidingView.js +5 -6
  438. package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
  439. package/lib/module/components/HMSManageAudioOutput.js +116 -34
  440. package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
  441. package/lib/module/components/HMSNotification.js +13 -14
  442. package/lib/module/components/HMSNotification.js.map +1 -1
  443. package/lib/module/components/HMSPreviewJoinButton.js +4 -5
  444. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  445. package/lib/module/components/HMSPreviewSubtitle.js +3 -4
  446. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  447. package/lib/module/components/HMSPreviewTitle.js +3 -4
  448. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  449. package/lib/module/components/HMSPrimaryButton.js +9 -10
  450. package/lib/module/components/HMSPrimaryButton.js.map +1 -1
  451. package/lib/module/components/HMSRoleChangeDeclinedNotification.js +6 -7
  452. package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
  453. package/lib/module/components/HMSSendMessageInput.js +4 -5
  454. package/lib/module/components/HMSSendMessageInput.js.map +1 -1
  455. package/lib/module/components/HMSTerminalErrorNotification.js +6 -7
  456. package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -1
  457. package/lib/module/components/HMSTextInput.js +7 -8
  458. package/lib/module/components/HMSTextInput.js.map +1 -1
  459. package/lib/module/components/HMSVideoView.js +5 -6
  460. package/lib/module/components/HMSVideoView.js.map +1 -1
  461. package/lib/module/components/Header.js +4 -5
  462. package/lib/module/components/Header.js.map +1 -1
  463. package/lib/module/components/LocalPeerRegularVideoView.js +3 -4
  464. package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -1
  465. package/lib/module/components/Meeting.js +3 -4
  466. package/lib/module/components/Meeting.js.map +1 -1
  467. package/lib/module/components/MeetingScreenContent.js +3 -4
  468. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  469. package/lib/module/components/MenuModal/MenuDivider.js +3 -4
  470. package/lib/module/components/MenuModal/MenuDivider.js.map +1 -1
  471. package/lib/module/components/MenuModal/MenuItem.js +15 -19
  472. package/lib/module/components/MenuModal/MenuItem.js.map +1 -1
  473. package/lib/module/components/MiniView.js +4 -5
  474. package/lib/module/components/MiniView.js.map +1 -1
  475. package/lib/module/components/Modals.js +47 -60
  476. package/lib/module/components/Modals.js.map +1 -1
  477. package/lib/module/components/OverlayContainer.js +6 -8
  478. package/lib/module/components/OverlayContainer.js.map +1 -1
  479. package/lib/module/components/PIPView.js +7 -9
  480. package/lib/module/components/PIPView.js.map +1 -1
  481. package/lib/module/components/PaginationDots.js +5 -6
  482. package/lib/module/components/PaginationDots.js.map +1 -1
  483. package/lib/module/components/Participants/MultiRoleParticipantsList.js +4 -5
  484. package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -1
  485. package/lib/module/components/Participants/ParticipantsAccordian.js +7 -8
  486. package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -1
  487. package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +4 -5
  488. package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
  489. package/lib/module/components/Participants/ParticipantsGroupFooter.js +4 -5
  490. package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -1
  491. package/lib/module/components/Participants/ParticipantsGroupHeader.js +7 -8
  492. package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  493. package/lib/module/components/Participants/ParticipantsItem.js +4 -5
  494. package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
  495. package/lib/module/components/Participants/ParticipantsItemOption.js +7 -8
  496. package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -1
  497. package/lib/module/components/Participants/ParticipantsItemOptions.js +5 -6
  498. package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
  499. package/lib/module/components/Participants/ParticipantsList.js +5 -6
  500. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  501. package/lib/module/components/Participants/ParticipantsListFooter.js +3 -4
  502. package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -1
  503. package/lib/module/components/Participants/ParticipantsSeachInput.js +4 -5
  504. package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
  505. package/lib/module/components/PeerDisplayView.js +6 -7
  506. package/lib/module/components/PeerDisplayView.js.map +1 -1
  507. package/lib/module/components/PeerMinimizedView.js +4 -5
  508. package/lib/module/components/PeerMinimizedView.js.map +1 -1
  509. package/lib/module/components/PeerRTCStatsContainer.js +5 -6
  510. package/lib/module/components/PeerRTCStatsContainer.js.map +1 -1
  511. package/lib/module/components/PeerRTCStatsView.js +4 -5
  512. package/lib/module/components/PeerRTCStatsView.js.map +1 -1
  513. package/lib/module/components/PeerSettingsModalContent.js +13 -15
  514. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  515. package/lib/module/components/PeerVideoTile/AvatarView.js +7 -8
  516. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
  517. package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +3 -4
  518. package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
  519. package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +7 -9
  520. package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
  521. package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +4 -5
  522. package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
  523. package/lib/module/components/PeerVideoTile/PeerMetadata.js +4 -5
  524. package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
  525. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +6 -7
  526. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  527. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +6 -7
  528. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  529. package/lib/module/components/PeerVideoTile/VideoView.js +9 -10
  530. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
  531. package/lib/module/components/PressableIcon.js +8 -9
  532. package/lib/module/components/PressableIcon.js.map +1 -1
  533. package/lib/module/components/Preview.js +4 -5
  534. package/lib/module/components/Preview.js.map +1 -1
  535. package/lib/module/components/RoomSettingsModalContent.js +7 -8
  536. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  537. package/lib/module/components/RoomSettingsModalDebugModeContent.js +20 -23
  538. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  539. package/lib/module/components/StatusBar.js +4 -5
  540. package/lib/module/components/StatusBar.js.map +1 -1
  541. package/lib/module/components/StopRecordingModalContent.js +3 -4
  542. package/lib/module/components/StopRecordingModalContent.js.map +1 -1
  543. package/lib/module/components/StreamingQualityModalContent.js +4 -5
  544. package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
  545. package/lib/module/components/SwitchRow.js +7 -8
  546. package/lib/module/components/SwitchRow.js.map +1 -1
  547. package/lib/module/components/Tile.js +9 -10
  548. package/lib/module/components/Tile.js.map +1 -1
  549. package/lib/module/components/TilesContainer.js +5 -6
  550. package/lib/module/components/TilesContainer.js.map +1 -1
  551. package/lib/module/components/UnmountAfterDelay.js +6 -7
  552. package/lib/module/components/UnmountAfterDelay.js.map +1 -1
  553. package/lib/module/components/WebrtcView.js +4 -5
  554. package/lib/module/components/WebrtcView.js.map +1 -1
  555. package/lib/module/hooks-sdk.js +18 -2
  556. package/lib/module/hooks-sdk.js.map +1 -1
  557. package/lib/module/hooks-util.js +31 -36
  558. package/lib/module/hooks-util.js.map +1 -1
  559. package/lib/module/redux/reducers/appState.js +1 -3
  560. package/lib/module/redux/reducers/appState.js.map +1 -1
  561. package/lib/module/redux/reducers/chatWindow.js +1 -3
  562. package/lib/module/redux/reducers/chatWindow.js.map +1 -1
  563. package/lib/module/redux/reducers/hmsStates.js +1 -3
  564. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  565. package/lib/module/redux/reducers/message.js +1 -3
  566. package/lib/module/redux/reducers/message.js.map +1 -1
  567. package/lib/module/redux/reducers/userState.js +1 -3
  568. package/lib/module/redux/reducers/userState.js.map +1 -1
  569. package/lib/module/utils/constants.js +4 -1
  570. package/lib/module/utils/constants.js.map +1 -1
  571. package/lib/module/utils/functions.js +0 -67
  572. package/lib/module/utils/functions.js.map +1 -1
  573. package/lib/module/utils/theme.js +1 -2
  574. package/lib/module/utils/theme.js.map +1 -1
  575. package/lib/typescript/Icons/CrossCircle/index.d.ts +7 -0
  576. package/lib/typescript/Icons/CrossCircle/index.d.ts.map +1 -0
  577. package/lib/typescript/Icons/index.d.ts +1 -0
  578. package/lib/typescript/Icons/index.d.ts.map +1 -1
  579. package/lib/typescript/components/HLSFooter.d.ts.map +1 -1
  580. package/lib/typescript/components/HLSView.d.ts +2 -1
  581. package/lib/typescript/components/HLSView.d.ts.map +1 -1
  582. package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
  583. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
  584. package/lib/typescript/hooks-sdk.d.ts +1 -0
  585. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  586. package/lib/typescript/hooks-util.d.ts.map +1 -1
  587. package/lib/typescript/utils/constants.d.ts +3 -0
  588. package/lib/typescript/utils/constants.d.ts.map +1 -1
  589. package/lib/typescript/utils/functions.d.ts +0 -3
  590. package/lib/typescript/utils/functions.d.ts.map +1 -1
  591. package/package.json +2 -3
  592. package/src/Icons/CrossCircle/assets/cross-circle.png +0 -0
  593. package/src/Icons/CrossCircle/assets/cross-circle@2x.png +0 -0
  594. package/src/Icons/CrossCircle/assets/cross-circle@3x.png +0 -0
  595. package/src/Icons/CrossCircle/index.tsx +33 -0
  596. package/src/Icons/Hand/assets/hand-off.png +0 -0
  597. package/src/Icons/Hand/assets/hand-off@2x.png +0 -0
  598. package/src/Icons/Hand/assets/hand-off@3x.png +0 -0
  599. package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
  600. package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  601. package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  602. package/src/Icons/Recording/assets/recording-off.png +0 -0
  603. package/src/Icons/Recording/assets/recording-off@2x.png +0 -0
  604. package/src/Icons/Recording/assets/recording-off@3x.png +0 -0
  605. package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
  606. package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
  607. package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
  608. package/src/Icons/index.ts +1 -0
  609. package/src/components/HLSFooter.tsx +3 -0
  610. package/src/components/HLSView.tsx +85 -4
  611. package/src/components/HMSManageAudioOutput.tsx +164 -48
  612. package/src/components/RoomSettingsModalDebugModeContent.tsx +4 -3
  613. package/src/hooks-sdk.ts +24 -0
  614. package/src/hooks-util.ts +95 -71
  615. package/src/utils/constants.ts +4 -0
  616. package/src/utils/functions.ts +8 -113
  617. package/lib/commonjs/utils/getRoomLinkDetails.js +0 -23
  618. package/lib/commonjs/utils/getRoomLinkDetails.js.map +0 -1
  619. package/lib/module/utils/getRoomLinkDetails.js +0 -16
  620. package/lib/module/utils/getRoomLinkDetails.js.map +0 -1
  621. package/lib/typescript/utils/getRoomLinkDetails.d.ts +0 -5
  622. package/lib/typescript/utils/getRoomLinkDetails.d.ts.map +0 -1
  623. package/src/utils/getRoomLinkDetails.ts +0 -23
package/src/hooks-util.ts CHANGED
@@ -56,7 +56,11 @@ import {
56
56
  PeerListRefreshInterval,
57
57
  PipModes,
58
58
  } from './utils/types';
59
- import type { ChatBroadcastFilter, OnLeaveHandler, PeerTrackNode } from './utils/types';
59
+ import type {
60
+ ChatBroadcastFilter,
61
+ OnLeaveHandler,
62
+ PeerTrackNode,
63
+ } from './utils/types';
60
64
  import { createPeerTrackNode } from './utils/functions';
61
65
  import {
62
66
  batch,
@@ -1256,10 +1260,12 @@ export const useHMSReconnection = () => {
1256
1260
  if (mounted) {
1257
1261
  batch(() => {
1258
1262
  dispatch(setReconnecting(true));
1259
- dispatch(addNotification({
1260
- id: NotificationTypes.RECONNECTING,
1261
- type: NotificationTypes.RECONNECTING
1262
- }))
1263
+ dispatch(
1264
+ addNotification({
1265
+ id: NotificationTypes.RECONNECTING,
1266
+ type: NotificationTypes.RECONNECTING,
1267
+ })
1268
+ );
1263
1269
  });
1264
1270
  }
1265
1271
  });
@@ -1268,7 +1274,7 @@ export const useHMSReconnection = () => {
1268
1274
  batch(() => {
1269
1275
  dispatch(setReconnecting(false));
1270
1276
  dispatch(removeNotification(NotificationTypes.RECONNECTING));
1271
- })
1277
+ });
1272
1278
  }
1273
1279
  });
1274
1280
 
@@ -1426,13 +1432,19 @@ export const useAutoPip = (oneToOneCall: boolean) => {
1426
1432
  );
1427
1433
  const [numerator, denominator] = usePipAspectRatio(oneToOneCall);
1428
1434
 
1435
+ const remotePeersPresent = useSelector((state: RootState) => {
1436
+ const room = state.hmsStates.room;
1437
+ return room && room.peerCount !== null ? room.peerCount > 1 : false; // `peerCount` includes local peer
1438
+ });
1439
+
1429
1440
  useEffect(() => {
1430
- if (autoEnterPipMode) {
1441
+ if (autoEnterPipMode && remotePeersPresent) {
1431
1442
  enableAutoPip({ aspectRatio: [numerator, denominator] });
1432
1443
 
1433
1444
  return disableAutoPip;
1434
1445
  }
1435
1446
  }, [
1447
+ remotePeersPresent,
1436
1448
  numerator,
1437
1449
  denominator,
1438
1450
  autoEnterPipMode,
@@ -1471,10 +1483,16 @@ export const usePipAspectRatio = (oneToOneCall: boolean): [number, number] => {
1471
1483
  }
1472
1484
  // default aspect ratio
1473
1485
  return [16, 9];
1474
- }, [isHLSViewer, firstSSNodeId, oneToOneCall, ssResolution, hlsPlayerResolution]);
1486
+ }, [
1487
+ isHLSViewer,
1488
+ firstSSNodeId,
1489
+ oneToOneCall,
1490
+ ssResolution,
1491
+ hlsPlayerResolution,
1492
+ ]);
1475
1493
 
1476
1494
  return aspectRatio;
1477
- }
1495
+ };
1478
1496
 
1479
1497
  export const useHMSActiveSpeakerUpdates = (
1480
1498
  setPeerTrackNodes: React.Dispatch<React.SetStateAction<PeerTrackNode[]>>,
@@ -2008,57 +2026,60 @@ export const useLeaveMethods = () => {
2008
2026
  const dispatch = useDispatch();
2009
2027
  const reduxStore = useStore<RootState>();
2010
2028
 
2011
- const destroy = useCallback((reason: Parameters<OnLeaveHandler>[0]) => {
2012
- try {
2013
- const s = hmsInstance.destroy();
2014
- console.log('Destroy Success: ', s);
2015
- // TODOS:
2016
- // - If show `Meeting_Ended` is true, show Meeting screen by setting state to MEETING_ENDED
2017
- // - Reset Redux States
2018
- // - HMSInstance will not be available now
2019
- // - When your presses "Re Join" Action button, restart process from root component
2020
- // - When your presses "Done" Action button
2021
- // - If we have callback fn, call it
2022
- // - Otherwise try our best to navigate away from current screen
2023
- //
2024
- // - No screen to show
2025
- // - No need to reset redux state?
2026
- // - HMSInstance will be available till this point
2027
- // - If we have callback fn, call it
2028
- // - Otherwise try our best to navigate away from current screen
2029
- // - When we are navigated away from screen, HMSInstance will be not available
2030
-
2031
- // dispatch(clearMessageData());
2032
- // dispatch(clearPeerData());
2033
- // dispatch(clearHmsReference());
2034
-
2035
- const onLeave = reduxStore.getState().user.onLeave;
2036
-
2037
- if (typeof onLeave === 'function') {
2038
- onLeave(reason);
2039
- dispatch(clearStore());
2040
- } else if (
2041
- navigation &&
2042
- typeof navigation.canGoBack === 'function' &&
2043
- navigation.canGoBack()
2044
- ) {
2045
- navigation.goBack();
2046
- dispatch(clearStore());
2047
- } else {
2048
- // Otherwise default action is to show "Meeting Ended" screen
2049
- dispatch(clearStore()); // TODO: We need different clearStore for MeetingEnded
2050
- dispatch(changeMeetingState(MeetingState.MEETING_ENDED));
2029
+ const destroy = useCallback(
2030
+ (reason: Parameters<OnLeaveHandler>[0]) => {
2031
+ try {
2032
+ const s = hmsInstance.destroy();
2033
+ console.log('Destroy Success: ', s);
2034
+ // TODOS:
2035
+ // - If show `Meeting_Ended` is true, show Meeting screen by setting state to MEETING_ENDED
2036
+ // - Reset Redux States
2037
+ // - HMSInstance will not be available now
2038
+ // - When your presses "Re Join" Action button, restart process from root component
2039
+ // - When your presses "Done" Action button
2040
+ // - If we have callback fn, call it
2041
+ // - Otherwise try our best to navigate away from current screen
2042
+ //
2043
+ // - No screen to show
2044
+ // - No need to reset redux state?
2045
+ // - HMSInstance will be available till this point
2046
+ // - If we have callback fn, call it
2047
+ // - Otherwise try our best to navigate away from current screen
2048
+ // - When we are navigated away from screen, HMSInstance will be not available
2049
+
2050
+ // dispatch(clearMessageData());
2051
+ // dispatch(clearPeerData());
2052
+ // dispatch(clearHmsReference());
2053
+
2054
+ const onLeave = reduxStore.getState().user.onLeave;
2055
+
2056
+ if (typeof onLeave === 'function') {
2057
+ onLeave(reason);
2058
+ dispatch(clearStore());
2059
+ } else if (
2060
+ navigation &&
2061
+ typeof navigation.canGoBack === 'function' &&
2062
+ navigation.canGoBack()
2063
+ ) {
2064
+ navigation.goBack();
2065
+ dispatch(clearStore());
2066
+ } else {
2067
+ // Otherwise default action is to show "Meeting Ended" screen
2068
+ dispatch(clearStore()); // TODO: We need different clearStore for MeetingEnded
2069
+ dispatch(changeMeetingState(MeetingState.MEETING_ENDED));
2070
+ }
2071
+ } catch (e) {
2072
+ console.log(`Destroy HMS instance Error: ${e}`);
2073
+ Toast.showWithGravity(
2074
+ `Destroy HMS instance Error: ${e}`,
2075
+ Toast.LONG,
2076
+ Toast.TOP
2077
+ );
2078
+ return Promise.reject(e);
2051
2079
  }
2052
- } catch (e) {
2053
- console.log(`Destroy HMS instance Error: ${e}`);
2054
- Toast.showWithGravity(
2055
- `Destroy HMS instance Error: ${e}`,
2056
- Toast.LONG,
2057
- Toast.TOP
2058
- );
2059
- return Promise.reject(e);
2060
- }
2061
- }, [hmsInstance]);
2080
+ },
2081
+ [hmsInstance]
2082
+ );
2062
2083
 
2063
2084
  const leave = useCallback(
2064
2085
  async (reason: OnLeaveReason, shouldEndStream: boolean = false) => {
@@ -2093,15 +2114,18 @@ export const useLeaveMethods = () => {
2093
2114
  }
2094
2115
  }, [hmsInstance]);
2095
2116
 
2096
- const endRoom = useCallback(async (reason: OnLeaveReason) => {
2097
- try {
2098
- const d = await hmsInstance.endRoom('Host ended the room');
2099
- console.log('EndRoom Success: ', d);
2100
- await destroy(reason);
2101
- } catch (e) {
2102
- console.log('EndRoom Error: ', e);
2103
- }
2104
- }, [destroy, hmsInstance]);
2117
+ const endRoom = useCallback(
2118
+ async (reason: OnLeaveReason) => {
2119
+ try {
2120
+ const d = await hmsInstance.endRoom('Host ended the room');
2121
+ console.log('EndRoom Success: ', d);
2122
+ await destroy(reason);
2123
+ } catch (e) {
2124
+ console.log('EndRoom Error: ', e);
2125
+ }
2126
+ },
2127
+ [destroy, hmsInstance]
2128
+ );
2105
2129
 
2106
2130
  return { destroy, leave, endRoom, prebuiltCleanUp };
2107
2131
  };
@@ -2227,8 +2251,8 @@ export const useSendMessage = () => {
2227
2251
  'publishSettings' in sendingTo
2228
2252
  ? HMSMessageRecipientType.ROLES
2229
2253
  : 'peerID' in sendingTo
2230
- ? HMSMessageRecipientType.PEER
2231
- : HMSMessageRecipientType.BROADCAST,
2254
+ ? HMSMessageRecipientType.PEER
2255
+ : HMSMessageRecipientType.BROADCAST,
2232
2256
  recipientPeer: 'peerID' in sendingTo ? sendingTo : undefined,
2233
2257
  recipientRoles: 'publishSettings' in sendingTo ? [sendingTo] : undefined,
2234
2258
  });
@@ -2396,7 +2420,7 @@ export const useStartRecording = () => {
2396
2420
  addNotification({
2397
2421
  id: Math.random().toString(16).slice(2),
2398
2422
  type: NotificationTypes.ERROR,
2399
- message: error.message
2423
+ message: error.message,
2400
2424
  })
2401
2425
  );
2402
2426
  });
@@ -143,4 +143,8 @@ export const TestIds = {
143
143
  bluetooth_audio_device_btn: 'bluetooth-audio-device-button',
144
144
  bluetooth_audio_device_text: 'bluetooth-audio-device-text',
145
145
  bluetooth_audio_device_active: 'bluetooth-audio-device--active',
146
+
147
+ mute_audio_btn: 'mute-audio-button',
148
+ mute_audio_text: 'mute-audio-text',
149
+ mute_audio_active: 'mute-audio--active',
146
150
  } as const;
@@ -15,13 +15,6 @@ import {
15
15
  } from '@100mslive/react-native-hms';
16
16
 
17
17
  import type { PeerTrackNode } from './types';
18
- import {
19
- PERMISSIONS,
20
- request,
21
- requestMultiple,
22
- RESULTS,
23
- } from 'react-native-permissions';
24
- import { getRoomLinkDetails } from './getRoomLinkDetails';
25
18
 
26
19
  export const getMeetingUrl = () =>
27
20
  'https://yogi.app.100ms.live/streaming/meeting/nih-bkn-vek';
@@ -102,57 +95,6 @@ export const requestExternalStoragePermission = async (): Promise<boolean> => {
102
95
  return false;
103
96
  };
104
97
 
105
- export const callService = async (
106
- roomID: string,
107
- success: Function,
108
- failure: Function
109
- ) => {
110
- let roomCode;
111
- let subdomain;
112
- try {
113
- if (validateUrl(roomID)) {
114
- const { roomCode: code, roomDomain: domain } = getRoomLinkDetails(roomID);
115
- roomCode = code;
116
- subdomain = domain;
117
-
118
- if (!code || !domain) {
119
- failure('code, domain not found');
120
- return;
121
- }
122
- } else {
123
- failure('Invalid room join link');
124
- return;
125
- }
126
-
127
- const permissions = await checkPermissions([
128
- PERMISSIONS.ANDROID.CAMERA,
129
- PERMISSIONS.ANDROID.RECORD_AUDIO,
130
- PERMISSIONS.ANDROID.BLUETOOTH_CONNECT,
131
- ]);
132
-
133
- if (permissions) {
134
- const userId = getRandomUserId(6);
135
- const isQARoom = subdomain && subdomain.search('.qa-') >= 0;
136
- success(
137
- roomCode,
138
- userId,
139
- isQARoom
140
- ? `https://auth-nonprod.100ms.live${Platform.OS === 'ios' ? '/' : ''}`
141
- : undefined, // Auth Endpoint
142
- isQARoom ? 'https://qa-init.100ms.live/init' : undefined // HMSConfig Endpoint
143
- );
144
- return;
145
- } else {
146
- failure('permission not granted');
147
- return;
148
- }
149
- } catch (error) {
150
- console.log(error);
151
- failure('error in call service');
152
- return;
153
- }
154
- };
155
-
156
98
  /**
157
99
  * @param min minimum range value
158
100
  * @param max maximum range value
@@ -307,53 +249,6 @@ export const validateUrl = (url?: string): boolean => {
307
249
  return false;
308
250
  };
309
251
 
310
- export const checkPermissions = async (
311
- permissions: Array<
312
- (typeof PERMISSIONS.ANDROID)[keyof typeof PERMISSIONS.ANDROID]
313
- >
314
- ): Promise<boolean> => {
315
- if (Platform.OS === 'ios') {
316
- return true;
317
- }
318
-
319
- try {
320
- const requiredPermissions = permissions.filter(
321
- (permission) =>
322
- permission.toString() !== PERMISSIONS.ANDROID.BLUETOOTH_CONNECT
323
- );
324
-
325
- const results = await requestMultiple(requiredPermissions);
326
-
327
- let allPermissionsGranted = true;
328
- requiredPermissions.forEach((permission) => {
329
- if (!(results[permission] === RESULTS.GRANTED)) {
330
- allPermissionsGranted = false;
331
- }
332
- console.log(permission, ':', results[permission]);
333
- });
334
-
335
- // Bluetooth Connect Permission handling
336
- if (
337
- permissions.findIndex(
338
- (permission) =>
339
- permission.toString() === PERMISSIONS.ANDROID.BLUETOOTH_CONNECT
340
- ) >= 0
341
- ) {
342
- const bleConnectResult = await request(
343
- PERMISSIONS.ANDROID.BLUETOOTH_CONNECT
344
- );
345
- console.log(
346
- `${PERMISSIONS.ANDROID.BLUETOOTH_CONNECT} : ${bleConnectResult}`
347
- );
348
- }
349
-
350
- return allPermissionsGranted;
351
- } catch (error) {
352
- console.log(error);
353
- return false;
354
- }
355
- };
356
-
357
252
  export const pairData = (
358
253
  unGroupedPeerTrackNodes: PeerTrackNode[],
359
254
  batch: number,
@@ -448,19 +343,19 @@ export const getDisplayTrackDimensions = (
448
343
  peersInPage === 1
449
344
  ? viewHeight / 1
450
345
  : peersInPage === 2
451
- ? viewHeight / 2
452
- : peersInPage === 3
453
- ? viewHeight / 3
454
- : viewHeight / 2;
346
+ ? viewHeight / 2
347
+ : peersInPage === 3
348
+ ? viewHeight / 3
349
+ : viewHeight / 2;
455
350
 
456
351
  width =
457
352
  peersInPage === 1
458
353
  ? '100%'
459
354
  : peersInPage === 2
460
- ? '100%'
461
- : peersInPage === 3
462
- ? '100%'
463
- : '50%';
355
+ ? '100%'
356
+ : peersInPage === 3
357
+ ? '100%'
358
+ : '50%';
464
359
  } else {
465
360
  height = viewHeight - (StatusBar.currentHeight || 0);
466
361
 
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getRoomLinkDetails = void 0;
7
- const getRoomLinkDetails = roomLink => {
8
- const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
9
- const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(roomLink);
10
- let roomCode = '';
11
- let roomDomain = '';
12
- if (codeObject && domainObject) {
13
- roomCode = codeObject[0];
14
- roomDomain = domainObject[0];
15
- roomDomain = roomDomain.replace('https://', '');
16
- }
17
- return {
18
- roomCode,
19
- roomDomain
20
- };
21
- };
22
- exports.getRoomLinkDetails = getRoomLinkDetails;
23
- //# sourceMappingURL=getRoomLinkDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getRoomLinkDetails","roomLink","codeObject","RegExp","exec","domainObject","roomCode","roomDomain","replace","exports"],"sourceRoot":"../../../src","sources":["utils/getRoomLinkDetails.ts"],"mappings":";;;;;;AAAO,MAAMA,kBAAkB,GAC7BC,QAAgB,IAC6B;EAC7C,MAAMC,UAAU,GAAGC,MAAM,CAAC,wBAAwB,CAAC,CAACC,IAAI,CAACH,QAAQ,CAAC;EAElE,MAAMI,YAAY,GAAGF,MAAM,CAAC,uCAAuC,CAAC,CAACC,IAAI,CACvEH,QACF,CAAC;EAED,IAAIK,QAAQ,GAAG,EAAE;EACjB,IAAIC,UAAU,GAAG,EAAE;EAEnB,IAAIL,UAAU,IAAIG,YAAY,EAAE;IAC9BC,QAAQ,GAAGJ,UAAU,CAAC,CAAC,CAAC;IACxBK,UAAU,GAAGF,YAAY,CAAC,CAAC,CAAC;IAC5BE,UAAU,GAAGA,UAAU,CAACC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;EACjD;EAEA,OAAO;IACLF,QAAQ;IACRC;EACF,CAAC;AACH,CAAC;AAACE,OAAA,CAAAT,kBAAA,GAAAA,kBAAA"}
@@ -1,16 +0,0 @@
1
- export const getRoomLinkDetails = roomLink => {
2
- const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
3
- const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(roomLink);
4
- let roomCode = '';
5
- let roomDomain = '';
6
- if (codeObject && domainObject) {
7
- roomCode = codeObject[0];
8
- roomDomain = domainObject[0];
9
- roomDomain = roomDomain.replace('https://', '');
10
- }
11
- return {
12
- roomCode,
13
- roomDomain
14
- };
15
- };
16
- //# sourceMappingURL=getRoomLinkDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getRoomLinkDetails","roomLink","codeObject","RegExp","exec","domainObject","roomCode","roomDomain","replace"],"sourceRoot":"../../../src","sources":["utils/getRoomLinkDetails.ts"],"mappings":"AAAA,OAAO,MAAMA,kBAAkB,GAC7BC,QAAgB,IAC6B;EAC7C,MAAMC,UAAU,GAAGC,MAAM,CAAC,wBAAwB,CAAC,CAACC,IAAI,CAACH,QAAQ,CAAC;EAElE,MAAMI,YAAY,GAAGF,MAAM,CAAC,uCAAuC,CAAC,CAACC,IAAI,CACvEH,QACF,CAAC;EAED,IAAIK,QAAQ,GAAG,EAAE;EACjB,IAAIC,UAAU,GAAG,EAAE;EAEnB,IAAIL,UAAU,IAAIG,YAAY,EAAE;IAC9BC,QAAQ,GAAGJ,UAAU,CAAC,CAAC,CAAC;IACxBK,UAAU,GAAGF,YAAY,CAAC,CAAC,CAAC;IAC5BE,UAAU,GAAGA,UAAU,CAACC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;EACjD;EAEA,OAAO;IACLF,QAAQ;IACRC;EACF,CAAC;AACH,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const getRoomLinkDetails: (roomLink: string) => {
2
- roomCode: string;
3
- roomDomain: string;
4
- };
5
- //# sourceMappingURL=getRoomLinkDetails.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRoomLinkDetails.d.ts","sourceRoot":"","sources":["../../../src/utils/getRoomLinkDetails.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,aACnB,MAAM;cACH,MAAM;gBAAc,MAAM;CAoBxC,CAAC"}
@@ -1,23 +0,0 @@
1
- export const getRoomLinkDetails = (
2
- roomLink: string
3
- ): { roomCode: string; roomDomain: string } => {
4
- const codeObject = RegExp(/(?!\/)[a-zA-Z\-0-9]*$/g).exec(roomLink);
5
-
6
- const domainObject = RegExp(/(https:\/\/)?(?:[a-zA-Z0-9.-])+(?!\\)/).exec(
7
- roomLink
8
- );
9
-
10
- let roomCode = '';
11
- let roomDomain = '';
12
-
13
- if (codeObject && domainObject) {
14
- roomCode = codeObject[0];
15
- roomDomain = domainObject[0];
16
- roomDomain = roomDomain.replace('https://', '');
17
- }
18
-
19
- return {
20
- roomCode,
21
- roomDomain,
22
- };
23
- };