@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
@@ -38,3 +38,4 @@ export * from './Stop';
38
38
  export * from './Eye';
39
39
  export * from './Search';
40
40
  export * from './WelcomeHand';
41
+ export * from './CrossCircle';
@@ -6,6 +6,7 @@ import { Footer } from './Footer';
6
6
  import { AnimatedHLSFooter } from './AnimatedHLSFooter';
7
7
  import { HLSChatView } from './HMSOverlayChatView';
8
8
  import { useShowChatAndParticipants } from '../hooks-util';
9
+ import { HMSNotifications } from './HMSNotifications';
9
10
 
10
11
  interface HLSFooterProps {
11
12
  offset: SharedValue<number>;
@@ -18,6 +19,8 @@ export const HLSFooter: React.FC<HLSFooterProps> = ({ offset }) => {
18
19
  <AnimatedHLSFooter offset={offset} style={styles.animatedContainer}>
19
20
  {overlayChatVisible ? <HLSChatView /> : null}
20
21
 
22
+ <HMSNotifications />
23
+
21
24
  <Footer />
22
25
  </AnimatedHLSFooter>
23
26
  );
@@ -1,18 +1,24 @@
1
1
  import React, { useRef } from 'react';
2
2
  import type { ComponentRef } from 'react';
3
3
  import { useDispatch, useSelector } from 'react-redux';
4
- import { View, Text, StyleSheet } from 'react-native';
5
- import { HMSHLSPlayer } from '@100mslive/react-native-hms';
4
+ import { View, Text, StyleSheet, Platform } from 'react-native';
5
+ import {
6
+ HMSHLSPlayer,
7
+ HMSHLSPlayerPlaybackState,
8
+ useHMSHLSPlayerPlaybackState,
9
+ } from '@100mslive/react-native-hms';
6
10
 
7
11
  import type { RootState } from '../redux';
8
12
  import { changeShowHLSStats } from '../redux/actions';
9
13
  import { HLSPlayerStatsView } from './HLSPlayerStatsView';
10
14
  import { HLSPlayerEmoticons } from './HLSPlayerEmoticons';
11
15
  import { CustomControls } from './CustomHLSPlayerControls';
12
- import { COLORS } from '../utils/theme';
16
+ import { COLORS, hexToRgbA } from '../utils/theme';
13
17
  import { HMSHLSNotStarted } from './HMSHLSNotStarted';
18
+ import { CrossCircleIcon } from '../Icons';
19
+ import { useHMSRoomStyleSheet } from '../hooks-util';
14
20
 
15
- export const HLSView: React.FC = () => {
21
+ export const _HLSView: React.FC = () => {
16
22
  const dispatch = useDispatch();
17
23
  const room = useSelector((state: RootState) => state.hmsStates.room);
18
24
  const hmsHlsPlayerRef = useRef<ComponentRef<typeof HMSHLSPlayer>>(null);
@@ -80,6 +86,46 @@ export const HLSView: React.FC = () => {
80
86
  }
81
87
  };
82
88
 
89
+ const [playerKey, setPlayerKey] = React.useState(1);
90
+
91
+ const prevReconnectingRef = React.useRef<null | boolean>(null);
92
+ const reconnecting = useSelector(
93
+ (state: RootState) => state.hmsStates.reconnecting
94
+ );
95
+
96
+ const hlsPlayerPlaybackState = useHMSHLSPlayerPlaybackState();
97
+
98
+ const isPlaybackFailed =
99
+ hlsPlayerPlaybackState === HMSHLSPlayerPlaybackState.FAILED;
100
+
101
+ React.useEffect(() => {
102
+ const prevReconnecting = prevReconnectingRef.current;
103
+
104
+ if (
105
+ Platform.OS === 'android' &&
106
+ prevReconnecting && // previously were in reconnection state
107
+ reconnecting === false && // now in reconnected state
108
+ isPlaybackFailed // and player playback is in failed state
109
+ ) {
110
+ // Recreate the HLS PLayer instance
111
+ setPlayerKey((prevKey) => (prevKey += 1));
112
+ }
113
+
114
+ prevReconnectingRef.current = reconnecting;
115
+ }, [reconnecting, isPlaybackFailed]);
116
+
117
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
118
+ failedContainer: {
119
+ backgroundColor: theme.palette.background_dim
120
+ ? hexToRgbA(theme.palette.background_dim, 0.7)
121
+ : COLORS.LOADING_BACKDROP,
122
+ },
123
+ failedText: {
124
+ color: theme.palette.on_surface_high,
125
+ fontFamily: `${typography.font_family}-Regular`,
126
+ },
127
+ }));
128
+
83
129
  return (
84
130
  <View style={styles.hlsView}>
85
131
  {room?.hlsStreamingState?.running ? (
@@ -87,6 +133,7 @@ export const HLSView: React.FC = () => {
87
133
  variant?.hlsStreamUrl ? (
88
134
  <View key={index} style={styles.hlsPlayerContainer}>
89
135
  <HMSHLSPlayer
136
+ key={playerKey}
90
137
  ref={hmsHlsPlayerRef}
91
138
  enableStats={showHLSStats}
92
139
  enableControls={enableHLSPlayerControls}
@@ -101,6 +148,23 @@ export const HLSView: React.FC = () => {
101
148
  {showCustomHLSPlayerControls ? (
102
149
  <CustomControls handleControlPress={hlsPlayerActions} />
103
150
  ) : null}
151
+
152
+ {isPlaybackFailed ? (
153
+ <View
154
+ style={[
155
+ styles.playbackFailedContainer,
156
+ hmsRoomStyles.failedContainer,
157
+ ]}
158
+ >
159
+ <CrossCircleIcon />
160
+
161
+ <Text
162
+ style={[styles.playbackFailed, hmsRoomStyles.failedText]}
163
+ >
164
+ Playback Failed
165
+ </Text>
166
+ </View>
167
+ ) : null}
104
168
  </View>
105
169
  ) : (
106
170
  <View key={index} style={styles.textContainer}>
@@ -115,6 +179,8 @@ export const HLSView: React.FC = () => {
115
179
  );
116
180
  };
117
181
 
182
+ export const HLSView = React.memo(_HLSView);
183
+
118
184
  const styles = StyleSheet.create({
119
185
  hlsView: {
120
186
  flex: 1,
@@ -140,4 +206,19 @@ const styles = StyleSheet.create({
140
206
  taleLessSpaceAsYouCan: {
141
207
  flex: 0,
142
208
  },
209
+ playbackFailedContainer: {
210
+ flex: 1,
211
+ width: '100%',
212
+ height: '100%',
213
+ alignItems: 'center',
214
+ justifyContent: 'center',
215
+ position: 'absolute',
216
+ },
217
+ playbackFailed: {
218
+ fontSize: 24,
219
+ lineHeight: 32,
220
+ letterSpacing: 0.5,
221
+ textAlign: 'center',
222
+ marginTop: 8,
223
+ },
143
224
  });
@@ -31,11 +31,13 @@ import {
31
31
  import type { RootState } from '../redux';
32
32
  import { BottomSheet } from './BottomSheet';
33
33
  import { TestIds } from '../utils/constants';
34
+ import { useHMSActions } from '../hooks-sdk';
34
35
 
35
36
  export const HMSManageAudioOutput: React.FC = () => {
36
37
  const hmsInstance = useHMSInstance();
37
38
  const isHLSViewer = useIsHLSViewer();
38
39
  const [settingsModalVisible, setSettingsModalVisible] = React.useState(false);
40
+ const { setRoomMuteLocally } = useHMSActions();
39
41
 
40
42
  const [currentAudioOutputDevice, setCurrentAudioOutputDevice] =
41
43
  React.useState<HMSAudioDevice | null>(null);
@@ -43,6 +45,9 @@ export const HMSManageAudioOutput: React.FC = () => {
43
45
  React.useState<HMSAudioDevice[]>([]);
44
46
 
45
47
  const debugMode = useSelector((state: RootState) => state.user.debugMode);
48
+ const roomLocallyMuted = useSelector(
49
+ (state: RootState) => state.hmsStates.roomLocallyMuted
50
+ );
46
51
 
47
52
  // Fetch current selected audio device and audio devices list on Android
48
53
  React.useEffect(() => {
@@ -79,16 +84,12 @@ export const HMSManageAudioOutput: React.FC = () => {
79
84
 
80
85
  // Handles showing Modal for changing Audio device
81
86
  const handleSpeakerChange = () => {
82
- if (Platform.OS === 'ios') {
83
- hmsInstance.switchAudioOutputUsingIOSUI();
84
- } else {
85
- if (availableAudioOutputDevices.length === 0) {
86
- hmsInstance
87
- .getAudioDevicesList()
88
- .then((devices) => setAvailableAudioOutputDevices(devices)); // TODO(set-state-after-unmount): setting state irrespective of component unmount check
89
- }
90
- setSettingsModalVisible(true);
87
+ if (Platform.OS === 'android' && availableAudioOutputDevices.length === 0) {
88
+ hmsInstance
89
+ .getAudioDevicesList()
90
+ .then((devices) => setAvailableAudioOutputDevices(devices)); // TODO(set-state-after-unmount): setting state irrespective of component unmount check
91
91
  }
92
+ setSettingsModalVisible(true);
92
93
  };
93
94
 
94
95
  // Add audio device change listeners
@@ -120,23 +121,29 @@ export const HMSManageAudioOutput: React.FC = () => {
120
121
  }, [hmsInstance, debugMode]);
121
122
 
122
123
  // Handle changing selected audio device
123
- const handleSelectAudioDevice = (device: HMSAudioDevice) => {
124
- hmsInstance.switchAudioOutput(device);
124
+ const handleSelectAudioDevice = (
125
+ device: HMSAudioDevice | 'mute-audio' | 'ios-audio-device'
126
+ ) => {
127
+ if (device === 'mute-audio') {
128
+ setRoomMuteLocally(true);
129
+ } else {
130
+ if (roomLocallyMuted) {
131
+ setRoomMuteLocally(false);
132
+ }
133
+ if (device === 'ios-audio-device') {
134
+ hmsInstance.switchAudioOutputUsingIOSUI();
135
+ } else {
136
+ hmsInstance.switchAudioOutput(device);
137
+ }
138
+ }
125
139
  setSettingsModalVisible(false);
126
140
  };
127
141
 
128
142
  const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
129
- headerText: {
130
- color: theme.palette.on_surface_high,
131
- fontFamily: `${typography.font_family}-Medium`,
132
- },
133
143
  text: {
134
144
  color: theme.palette.on_surface_high,
135
145
  fontFamily: `${typography.font_family}-SemiBold`,
136
146
  },
137
- divider: {
138
- backgroundColor: theme.palette.border_default,
139
- },
140
147
  }));
141
148
 
142
149
  return (
@@ -146,7 +153,9 @@ export const HMSManageAudioOutput: React.FC = () => {
146
153
  onPress={handleSpeakerChange}
147
154
  style={isHLSViewer ? styles.button : null}
148
155
  >
149
- {Platform.OS === 'ios' ? (
156
+ {roomLocallyMuted ? (
157
+ <SpeakerIcon muted={true} />
158
+ ) : Platform.OS === 'ios' ? (
150
159
  <SpeakerIcon muted={false} />
151
160
  ) : (
152
161
  getIcon(currentAudioOutputDevice || HMSAudioDevice.AUTOMATIC)
@@ -164,7 +173,33 @@ export const HMSManageAudioOutput: React.FC = () => {
164
173
  <BottomSheet.Divider />
165
174
 
166
175
  <View style={styles.contentContainer}>
167
- {availableAudioOutputDevices.length === 0 ? (
176
+ {Platform.OS === 'ios' ? (
177
+ <>
178
+ <AudioOutputDevice
179
+ id={'ios-audio-device'}
180
+ hideDivider={true}
181
+ selected={!roomLocallyMuted}
182
+ text={'Auto'}
183
+ icon={<SpeakerIcon muted={false} />}
184
+ onPress={handleSelectAudioDevice}
185
+ checkTestID={TestIds.automatic_audio_device_active}
186
+ textTestID={TestIds.automatic_audio_device_text}
187
+ buttonTestID={TestIds.automatic_audio_device_btn}
188
+ />
189
+
190
+ <AudioOutputDevice
191
+ id={'mute-audio'}
192
+ hideDivider={false}
193
+ selected={roomLocallyMuted}
194
+ text={'Mute Audio'}
195
+ icon={<SpeakerIcon muted={true} />}
196
+ onPress={handleSelectAudioDevice}
197
+ checkTestID={TestIds.mute_audio_active}
198
+ textTestID={TestIds.mute_audio_text}
199
+ buttonTestID={TestIds.mute_audio_btn}
200
+ />
201
+ </>
202
+ ) : availableAudioOutputDevices.length === 0 ? (
168
203
  <View style={styles.emptyView}>
169
204
  <Text
170
205
  testID={TestIds.audio_modal_empty_text}
@@ -183,36 +218,39 @@ export const HMSManageAudioOutput: React.FC = () => {
183
218
  const isFirst = index === 0;
184
219
 
185
220
  return (
186
- <React.Fragment key={device}>
187
- {isFirst ? null : (
188
- <View style={[styles.divider, hmsRoomStyles.divider]} />
221
+ <AudioOutputDevice
222
+ key={device}
223
+ id={device}
224
+ hideDivider={isFirst}
225
+ selected={
226
+ device === currentAudioOutputDevice && !roomLocallyMuted
227
+ }
228
+ checkTestID={activeAudioDeviceTestIds[device]}
229
+ text={getDescription(device, currentAudioOutputDevice)}
230
+ textTestID={audioDeviceTextTestIds[device]}
231
+ icon={getIcon(
232
+ device === HMSAudioDevice.AUTOMATIC &&
233
+ currentAudioOutputDevice
234
+ ? currentAudioOutputDevice
235
+ : device
189
236
  )}
190
-
191
- <TouchableOpacity
192
- testID={audioDeviceTestIds[device]}
193
- style={styles.audioDeviceItem}
194
- onPress={() => handleSelectAudioDevice(device)}
195
- >
196
- <View style={styles.itemTextWrapper}>
197
- {getIcon(
198
- device === HMSAudioDevice.AUTOMATIC &&
199
- currentAudioOutputDevice
200
- ? currentAudioOutputDevice
201
- : device
202
- )}
203
-
204
- <Text testID={audioDeviceTextTestIds[device]} style={[styles.itemText, hmsRoomStyles.text]}>
205
- {getDescription(device, currentAudioOutputDevice)}
206
- </Text>
207
- </View>
208
-
209
- {device === currentAudioOutputDevice ? (
210
- <CheckIcon testID={activeAudioDeviceTestIds[device]} />
211
- ) : null}
212
- </TouchableOpacity>
213
- </React.Fragment>
237
+ buttonTestID={audioDeviceTestIds[device]}
238
+ onPress={handleSelectAudioDevice}
239
+ />
214
240
  );
215
241
  })}
242
+
243
+ <AudioOutputDevice
244
+ id={'mute-audio'}
245
+ hideDivider={false}
246
+ selected={roomLocallyMuted}
247
+ text={'Mute Audio'}
248
+ icon={<SpeakerIcon muted={true} />}
249
+ onPress={handleSelectAudioDevice}
250
+ checkTestID={TestIds.mute_audio_active}
251
+ textTestID={TestIds.mute_audio_text}
252
+ buttonTestID={TestIds.mute_audio_btn}
253
+ />
216
254
  </ScrollView>
217
255
  )}
218
256
  </View>
@@ -221,6 +259,84 @@ export const HMSManageAudioOutput: React.FC = () => {
221
259
  );
222
260
  };
223
261
 
262
+ interface AudioOutputDeviceProps {
263
+ id: HMSAudioDevice | 'mute-audio' | 'ios-audio-device';
264
+ hideDivider: boolean;
265
+ selected: boolean;
266
+ checkTestID: string;
267
+ text: string;
268
+ textTestID: string;
269
+ icon: React.ReactElement;
270
+ buttonTestID: string;
271
+ onPress(selected: HMSAudioDevice | 'mute-audio' | 'ios-audio-device'): void;
272
+ }
273
+
274
+ const AudioOutputDevice: React.FC<AudioOutputDeviceProps> = (props) => {
275
+ const {
276
+ id,
277
+ hideDivider,
278
+ selected,
279
+ checkTestID,
280
+ text,
281
+ textTestID,
282
+ icon,
283
+ buttonTestID,
284
+ onPress,
285
+ } = props;
286
+
287
+ const hmsRoomStyles = useHMSRoomStyleSheet(
288
+ (theme, typography) => ({
289
+ text: {
290
+ color: selected
291
+ ? theme.palette.primary_bright
292
+ : theme.palette.on_surface_high,
293
+ fontFamily: `${typography.font_family}-SemiBold`,
294
+ },
295
+ divider: {
296
+ backgroundColor: theme.palette.border_default,
297
+ },
298
+ checkIcon: {
299
+ tintColor: theme.palette.primary_bright,
300
+ },
301
+ }),
302
+ [selected]
303
+ );
304
+
305
+ return (
306
+ <React.Fragment>
307
+ {hideDivider ? null : (
308
+ <View style={[styles.divider, hmsRoomStyles.divider]} />
309
+ )}
310
+
311
+ <TouchableOpacity
312
+ testID={buttonTestID}
313
+ disabled={selected}
314
+ style={styles.audioDeviceItem}
315
+ onPress={() => onPress(id)}
316
+ >
317
+ <View style={styles.itemTextWrapper}>
318
+ {icon
319
+ ? React.cloneElement(icon, {
320
+ style: selected ? hmsRoomStyles.checkIcon : null,
321
+ })
322
+ : null}
323
+
324
+ <Text
325
+ testID={textTestID}
326
+ style={[styles.itemText, hmsRoomStyles.text]}
327
+ >
328
+ {text}
329
+ </Text>
330
+ </View>
331
+
332
+ {selected ? (
333
+ <CheckIcon testID={checkTestID} style={hmsRoomStyles.checkIcon} />
334
+ ) : null}
335
+ </TouchableOpacity>
336
+ </React.Fragment>
337
+ );
338
+ };
339
+
224
340
  const styles = StyleSheet.create({
225
341
  button: {
226
342
  backgroundColor: 'transparent',
@@ -321,4 +437,4 @@ const activeAudioDeviceTestIds = {
321
437
  [HMSAudioDevice.WIRED_HEADSET]: TestIds.wired_headset_audio_device_active,
322
438
  [HMSAudioDevice.EARPIECE]: TestIds.earpiece_audio_device_active,
323
439
  [HMSAudioDevice.BLUETOOTH]: TestIds.bluetooth_audio_device_active,
324
- } as const;
440
+ } as const;
@@ -6,14 +6,15 @@ import {
6
6
  ScrollView,
7
7
  TouchableOpacity,
8
8
  Alert,
9
+ Linking,
9
10
  } from 'react-native';
10
11
  import {
11
12
  HMSAudioMixingMode,
12
13
  HMSUpdateListenerActions,
14
+ checkNotifications,
13
15
  } from '@100mslive/react-native-hms';
14
16
  import { useDispatch, useSelector } from 'react-redux';
15
17
  import Toast from 'react-native-simple-toast';
16
- import { openSettings, requestNotifications } from 'react-native-permissions';
17
18
 
18
19
  import { COLORS } from '../utils/theme';
19
20
  import type { RootState } from '../redux';
@@ -210,7 +211,7 @@ export const RoomSettingsModalDebugModeContent: React.FC<
210
211
  // check notification permission on android platform
211
212
  // Audio share feature needs foreground service running. for Foreground service to keep running, we need active notification.
212
213
  if (Platform.OS === 'android') {
213
- const result = await requestNotifications(['alert', 'sound']);
214
+ const result = await checkNotifications();
214
215
 
215
216
  console.log('Notification Permission Result: ', result);
216
217
 
@@ -220,7 +221,7 @@ export const RoomSettingsModalDebugModeContent: React.FC<
220
221
  '100ms SDK needs notification permission to start audio share. Please allow notification from settings and try again!',
221
222
  [
222
223
  { text: 'cancel' },
223
- { text: 'Go to Settings', onPress: () => openSettings() },
224
+ { text: 'Go to Settings', onPress: () => Linking.openSettings() },
224
225
  ],
225
226
  { cancelable: true }
226
227
  );
package/src/hooks-sdk.ts CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  setIsLocalAudioMutedState,
6
6
  setIsLocalScreenSharedState,
7
7
  setIsLocalVideoMutedState,
8
+ setRoomLocallyMuted,
8
9
  } from './redux/actions';
9
10
  import {
10
11
  selectAllowedTracksToPublish,
@@ -218,6 +219,28 @@ export const useHMSActions = () => {
218
219
  []
219
220
  );
220
221
 
222
+ const setRoomMuteLocally = useCallback(
223
+ async (mute: boolean): Promise<void> => {
224
+ const state: RootState = store.getState();
225
+ const hmsInstance = state.user.hmsInstance;
226
+
227
+ if (!hmsInstance) {
228
+ return Promise.reject('HMSSDK Instance is not available!');
229
+ }
230
+
231
+ try {
232
+ const result = await hmsInstance.setPlaybackForAllAudio(mute);
233
+ console.log('Set Room Mute Locally Success: ', result);
234
+
235
+ dispatch(setRoomLocallyMuted(mute));
236
+ } catch (error) {
237
+ console.log('Set Room Mute Locally Error: ', error);
238
+ return Promise.reject(error);
239
+ }
240
+ },
241
+ []
242
+ );
243
+
221
244
  return {
222
245
  setLocalAudioEnabled,
223
246
  setLocalVideoEnabled,
@@ -228,5 +251,6 @@ export const useHMSActions = () => {
228
251
  raiseLocalPeerHand,
229
252
  lowerLocalPeerHand,
230
253
  lowerRemotePeerHand,
254
+ setRoomMuteLocally,
231
255
  };
232
256
  };