@100mslive/react-native-room-kit 1.1.9 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (578) hide show
  1. package/lib/commonjs/HMSRoomSetup.js +1 -1
  2. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  3. package/lib/commonjs/Icons/100ms/index.js +2 -2
  4. package/lib/commonjs/Icons/100ms/index.js.map +1 -1
  5. package/lib/commonjs/Icons/Add/index.js +2 -2
  6. package/lib/commonjs/Icons/Add/index.js.map +1 -1
  7. package/lib/commonjs/Icons/AddImage/index.js +2 -2
  8. package/lib/commonjs/Icons/AddImage/index.js.map +1 -1
  9. package/lib/commonjs/Icons/Alert/index.js +2 -2
  10. package/lib/commonjs/Icons/Alert/index.js.map +1 -1
  11. package/lib/commonjs/Icons/AlertTriangle/index.js +2 -2
  12. package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
  13. package/lib/commonjs/Icons/AnswerPhone/index.js +2 -2
  14. package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
  15. package/lib/commonjs/Icons/BRB/index.js +2 -2
  16. package/lib/commonjs/Icons/BRB/index.js.map +1 -1
  17. package/lib/commonjs/Icons/Bluetooth/index.js +2 -2
  18. package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
  19. package/lib/commonjs/Icons/BlurPeople/index.js +2 -2
  20. package/lib/commonjs/Icons/BlurPeople/index.js.map +1 -1
  21. package/lib/commonjs/Icons/CC/index.js +2 -2
  22. package/lib/commonjs/Icons/CC/index.js.map +1 -1
  23. package/lib/commonjs/Icons/Camera/index.js +2 -2
  24. package/lib/commonjs/Icons/Camera/index.js.map +1 -1
  25. package/lib/commonjs/Icons/Chat/index.js +2 -2
  26. package/lib/commonjs/Icons/Chat/index.js.map +1 -1
  27. package/lib/commonjs/Icons/Check/index.js +2 -2
  28. package/lib/commonjs/Icons/Check/index.js.map +1 -1
  29. package/lib/commonjs/Icons/CheckBox/index.js +2 -2
  30. package/lib/commonjs/Icons/CheckBox/index.js.map +1 -1
  31. package/lib/commonjs/Icons/Chevron/index.js +2 -2
  32. package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
  33. package/lib/commonjs/Icons/Clock/index.js +2 -2
  34. package/lib/commonjs/Icons/Clock/index.js.map +1 -1
  35. package/lib/commonjs/Icons/Close/index.js +2 -2
  36. package/lib/commonjs/Icons/Close/index.js.map +1 -1
  37. package/lib/commonjs/Icons/CrossCircle/index.js +2 -2
  38. package/lib/commonjs/Icons/CrossCircle/index.js.map +1 -1
  39. package/lib/commonjs/Icons/End/index.js +2 -2
  40. package/lib/commonjs/Icons/End/index.js.map +1 -1
  41. package/lib/commonjs/Icons/Eye/index.js +2 -2
  42. package/lib/commonjs/Icons/Eye/index.js.map +1 -1
  43. package/lib/commonjs/Icons/GenericLogo/index.js +2 -2
  44. package/lib/commonjs/Icons/GenericLogo/index.js.map +1 -1
  45. package/lib/commonjs/Icons/Hamburger/index.js +2 -2
  46. package/lib/commonjs/Icons/Hamburger/index.js.map +1 -1
  47. package/lib/commonjs/Icons/Hand/index.js +2 -2
  48. package/lib/commonjs/Icons/Hand/index.js.map +1 -1
  49. package/lib/commonjs/Icons/Headphones/index.js +2 -2
  50. package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
  51. package/lib/commonjs/Icons/Leave/index.js +2 -2
  52. package/lib/commonjs/Icons/Leave/index.js.map +1 -1
  53. package/lib/commonjs/Icons/Maximize/index.js +2 -2
  54. package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
  55. package/lib/commonjs/Icons/Mic/index.js +2 -2
  56. package/lib/commonjs/Icons/Mic/index.js.map +1 -1
  57. package/lib/commonjs/Icons/Minimize/index.js +2 -2
  58. package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
  59. package/lib/commonjs/Icons/NetworkQuality/index.js +2 -2
  60. package/lib/commonjs/Icons/NetworkQuality/index.js.map +1 -1
  61. package/lib/commonjs/Icons/NoEntry/index.js +2 -2
  62. package/lib/commonjs/Icons/NoEntry/index.js.map +1 -1
  63. package/lib/commonjs/Icons/Participants/index.js +2 -2
  64. package/lib/commonjs/Icons/Participants/index.js.map +1 -1
  65. package/lib/commonjs/Icons/Pause/index.js +2 -2
  66. package/lib/commonjs/Icons/Pause/index.js.map +1 -1
  67. package/lib/commonjs/Icons/PauseCircle/index.js +2 -2
  68. package/lib/commonjs/Icons/PauseCircle/index.js.map +1 -1
  69. package/lib/commonjs/Icons/Pencil/index.js +2 -2
  70. package/lib/commonjs/Icons/Pencil/index.js.map +1 -1
  71. package/lib/commonjs/Icons/Person/index.js +2 -2
  72. package/lib/commonjs/Icons/Person/index.js.map +1 -1
  73. package/lib/commonjs/Icons/Pin/index.js +2 -2
  74. package/lib/commonjs/Icons/Pin/index.js.map +1 -1
  75. package/lib/commonjs/Icons/Play/index.js +2 -2
  76. package/lib/commonjs/Icons/Play/index.js.map +1 -1
  77. package/lib/commonjs/Icons/Poll/index.js +2 -2
  78. package/lib/commonjs/Icons/Poll/index.js.map +1 -1
  79. package/lib/commonjs/Icons/PollVote/index.js +2 -2
  80. package/lib/commonjs/Icons/PollVote/index.js.map +1 -1
  81. package/lib/commonjs/Icons/Quiz/index.js +2 -2
  82. package/lib/commonjs/Icons/Quiz/index.js.map +1 -1
  83. package/lib/commonjs/Icons/Radio/index.js +2 -2
  84. package/lib/commonjs/Icons/Radio/index.js.map +1 -1
  85. package/lib/commonjs/Icons/Recording/index.js +2 -2
  86. package/lib/commonjs/Icons/Recording/index.js.map +1 -1
  87. package/lib/commonjs/Icons/RotateCamera/index.js +2 -2
  88. package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
  89. package/lib/commonjs/Icons/ScreenShare/index.js +2 -2
  90. package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
  91. package/lib/commonjs/Icons/Search/index.js +2 -2
  92. package/lib/commonjs/Icons/Search/index.js.map +1 -1
  93. package/lib/commonjs/Icons/SeekArrow/index.js +2 -2
  94. package/lib/commonjs/Icons/SeekArrow/index.js.map +1 -1
  95. package/lib/commonjs/Icons/Send/index.js +2 -2
  96. package/lib/commonjs/Icons/Send/index.js.map +1 -1
  97. package/lib/commonjs/Icons/Settings/index.js +2 -2
  98. package/lib/commonjs/Icons/Settings/index.js.map +1 -1
  99. package/lib/commonjs/Icons/Speaker/index.js +2 -2
  100. package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
  101. package/lib/commonjs/Icons/Star/index.js +2 -2
  102. package/lib/commonjs/Icons/Star/index.js.map +1 -1
  103. package/lib/commonjs/Icons/Stop/index.js +2 -2
  104. package/lib/commonjs/Icons/Stop/index.js.map +1 -1
  105. package/lib/commonjs/Icons/ThreeDots/index.js +2 -2
  106. package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
  107. package/lib/commonjs/Icons/TrashBin/index.js +2 -2
  108. package/lib/commonjs/Icons/TrashBin/index.js.map +1 -1
  109. package/lib/commonjs/Icons/VirtualBackground/index.js +2 -2
  110. package/lib/commonjs/Icons/VirtualBackground/index.js.map +1 -1
  111. package/lib/commonjs/Icons/Wave/index.js +2 -2
  112. package/lib/commonjs/Icons/Wave/index.js.map +1 -1
  113. package/lib/commonjs/Icons/WelcomeHand/index.js +2 -2
  114. package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -1
  115. package/lib/commonjs/components/BottomSheet.js +2 -2
  116. package/lib/commonjs/components/BottomSheet.js.map +1 -1
  117. package/lib/commonjs/components/CaptionsModalContent.js +163 -0
  118. package/lib/commonjs/components/CaptionsModalContent.js.map +1 -0
  119. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
  120. package/lib/commonjs/components/Chat/ChatBanner.js +8 -7
  121. package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
  122. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  123. package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
  124. package/lib/commonjs/components/Chat/ChatFilterView.js +4 -1
  125. package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
  126. package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
  127. package/lib/commonjs/components/Chat/ChatMoreActionsView.js.map +1 -1
  128. package/lib/commonjs/components/Chat/ChatPaused.js.map +1 -1
  129. package/lib/commonjs/components/Chat/MessageOptionsView.js.map +1 -1
  130. package/lib/commonjs/components/Chat/PeerBlockedFromChat.js.map +1 -1
  131. package/lib/commonjs/components/Chat/PinnedMessages.js.map +1 -1
  132. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  133. package/lib/commonjs/components/CheckboxInputRow.js +1 -1
  134. package/lib/commonjs/components/CheckboxInputRow.js.map +1 -1
  135. package/lib/commonjs/components/CompanyLogo.js +2 -2
  136. package/lib/commonjs/components/CompanyLogo.js.map +1 -1
  137. package/lib/commonjs/components/CreatePoll.js.map +1 -1
  138. package/lib/commonjs/components/CustomButton.js +3 -1
  139. package/lib/commonjs/components/CustomButton.js.map +1 -1
  140. package/lib/commonjs/components/DefaultModal.js +1 -1
  141. package/lib/commonjs/components/DefaultModal.js.map +1 -1
  142. package/lib/commonjs/components/DisplayView.js +1 -1
  143. package/lib/commonjs/components/DisplayView.js.map +1 -1
  144. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
  145. package/lib/commonjs/components/FullScreenIndicator.js +1 -1
  146. package/lib/commonjs/components/FullScreenIndicator.js.map +1 -1
  147. package/lib/commonjs/components/FullScreenVideoView.js +1 -1
  148. package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
  149. package/lib/commonjs/components/FullScreenWhiteboard.js +1 -1
  150. package/lib/commonjs/components/FullScreenWhiteboard.js.map +1 -1
  151. package/lib/commonjs/components/GridView.js.map +1 -1
  152. package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -1
  153. package/lib/commonjs/components/HLSCloseMeetingControl.js +1 -1
  154. package/lib/commonjs/components/HLSCloseMeetingControl.js.map +1 -1
  155. package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -1
  156. package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -1
  157. package/lib/commonjs/components/HLSDistanceFromLive.js +1 -1
  158. package/lib/commonjs/components/HLSDistanceFromLive.js.map +1 -1
  159. package/lib/commonjs/components/HLSFullScreenControl.js +1 -1
  160. package/lib/commonjs/components/HLSFullScreenControl.js.map +1 -1
  161. package/lib/commonjs/components/HLSGoLiveControl.js +1 -1
  162. package/lib/commonjs/components/HLSGoLiveControl.js.map +1 -1
  163. package/lib/commonjs/components/HLSPlayer.js +1 -1
  164. package/lib/commonjs/components/HLSPlayer.js.map +1 -1
  165. package/lib/commonjs/components/HLSPlayerContainer.js +1 -1
  166. package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -1
  167. package/lib/commonjs/components/HLSPlayerControls.js +1 -1
  168. package/lib/commonjs/components/HLSPlayerControls.js.map +1 -1
  169. package/lib/commonjs/components/HLSPlayerEmoticons.js +1 -1
  170. package/lib/commonjs/components/HLSPlayerEmoticons.js.map +1 -1
  171. package/lib/commonjs/components/HLSPlayerStatsView.js +1 -1
  172. package/lib/commonjs/components/HLSPlayerStatsView.js.map +1 -1
  173. package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -1
  174. package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -1
  175. package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -1
  176. package/lib/commonjs/components/HLSViewerScreenContent.js +1 -1
  177. package/lib/commonjs/components/HLSViewerScreenContent.js.map +1 -1
  178. package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
  179. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
  180. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  181. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
  182. package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
  183. package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +1 -1
  184. package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -1
  185. package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
  186. package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
  187. package/lib/commonjs/components/HMSManageAudioOutput.js +1 -1
  188. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  189. package/lib/commonjs/components/HMSManageNoiseCancellation.js +1 -1
  190. package/lib/commonjs/components/HMSManageNoiseCancellation.js.map +1 -1
  191. package/lib/commonjs/components/HMSNotification.js +7 -0
  192. package/lib/commonjs/components/HMSNotification.js.map +1 -1
  193. package/lib/commonjs/components/HMSNotifications.js +1 -1
  194. package/lib/commonjs/components/HMSNotifications.js.map +1 -1
  195. package/lib/commonjs/components/HMSOverlayChatView.js +1 -1
  196. package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
  197. package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -1
  198. package/lib/commonjs/components/HMSPollsQuizzesNotification.js.map +1 -1
  199. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +2 -0
  200. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  201. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  202. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  203. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  204. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  205. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
  206. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
  207. package/lib/commonjs/components/HMSRoomOptions.js +6 -0
  208. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  209. package/lib/commonjs/components/HMSSecondaryButton.js.map +1 -1
  210. package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
  211. package/lib/commonjs/components/HMSTextInput.js +1 -1
  212. package/lib/commonjs/components/HMSTextInput.js.map +1 -1
  213. package/lib/commonjs/components/HMSVideoView.js +1 -1
  214. package/lib/commonjs/components/HMSVideoView.js.map +1 -1
  215. package/lib/commonjs/components/LeaderboardEntry.js.map +1 -1
  216. package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
  217. package/lib/commonjs/components/MeetingScreenContent.js +18 -2
  218. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  219. package/lib/commonjs/components/MenuModal/Menu.js +1 -1
  220. package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
  221. package/lib/commonjs/components/MenuModal/MenuDivider.js +3 -1
  222. package/lib/commonjs/components/MenuModal/MenuDivider.js.map +1 -1
  223. package/lib/commonjs/components/MenuModal/MenuItem.js +2 -2
  224. package/lib/commonjs/components/MenuModal/MenuItem.js.map +1 -1
  225. package/lib/commonjs/components/Modals.js +1 -1
  226. package/lib/commonjs/components/Modals.js.map +1 -1
  227. package/lib/commonjs/components/OverlayContainer.js +1 -1
  228. package/lib/commonjs/components/OverlayContainer.js.map +1 -1
  229. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
  230. package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
  231. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
  232. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  233. package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
  234. package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
  235. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
  236. package/lib/commonjs/components/Participants/ParticipantsList.js +4 -1
  237. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  238. package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
  239. package/lib/commonjs/components/PeerDisplayView.js +2 -2
  240. package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
  241. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
  242. package/lib/commonjs/components/PeerRTCStatsContainer.js +1 -1
  243. package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
  244. package/lib/commonjs/components/PeerRTCStatsView.js +1 -1
  245. package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
  246. package/lib/commonjs/components/PeerSettingsModalContent.js +1 -1
  247. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  248. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
  249. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +1 -1
  250. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
  251. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  252. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +2 -2
  253. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  254. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
  255. package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js.map +1 -1
  256. package/lib/commonjs/components/PollAndQuizVoting.js.map +1 -1
  257. package/lib/commonjs/components/PollAndQuizzStateLabel.js.map +1 -1
  258. package/lib/commonjs/components/PollQuestion.js.map +1 -1
  259. package/lib/commonjs/components/PollQuestionDeleteConfirmation.js.map +1 -1
  260. package/lib/commonjs/components/PollQuestions.js.map +1 -1
  261. package/lib/commonjs/components/PollResponseProgressView.js.map +1 -1
  262. package/lib/commonjs/components/PollsAndQuizzesCard.js.map +1 -1
  263. package/lib/commonjs/components/PollsConfigAndList.js.map +1 -1
  264. package/lib/commonjs/components/PressableIcon.js +1 -1
  265. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  266. package/lib/commonjs/components/Preview.js +1 -1
  267. package/lib/commonjs/components/Preview.js.map +1 -1
  268. package/lib/commonjs/components/PreviewForRoleChangeModal.js +1 -1
  269. package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
  270. package/lib/commonjs/components/PreviousPollsAndQuizzesList.js.map +1 -1
  271. package/lib/commonjs/components/QuizEndOptionsView.js.map +1 -1
  272. package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js.map +1 -1
  273. package/lib/commonjs/components/QuizLeaderboardScreen.js.map +1 -1
  274. package/lib/commonjs/components/QuizLeaderboardSummary.js.map +1 -1
  275. package/lib/commonjs/components/RadioInput.js +1 -1
  276. package/lib/commonjs/components/RadioInput.js.map +1 -1
  277. package/lib/commonjs/components/RadioInputRow.js +1 -1
  278. package/lib/commonjs/components/RadioInputRow.js.map +1 -1
  279. package/lib/commonjs/components/ReconnectionView.js.map +1 -1
  280. package/lib/commonjs/components/RoomSettingsModalContent.js +42 -0
  281. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  282. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
  283. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  284. package/lib/commonjs/components/StatusBar.js +1 -1
  285. package/lib/commonjs/components/StatusBar.js.map +1 -1
  286. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
  287. package/lib/commonjs/components/SwitchRow.js +1 -1
  288. package/lib/commonjs/components/SwitchRow.js.map +1 -1
  289. package/lib/commonjs/components/Tile.js +1 -1
  290. package/lib/commonjs/components/Tile.js.map +1 -1
  291. package/lib/commonjs/components/TilesContainer.js +1 -1
  292. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  293. package/lib/commonjs/components/VirtualBackgroundModalContent.js +1 -1
  294. package/lib/commonjs/components/VirtualBackgroundModalContent.js.map +1 -1
  295. package/lib/commonjs/components/VoterParticipationSummary.js.map +1 -1
  296. package/lib/commonjs/components/WebrtcTranscriptOverlayView.js +121 -0
  297. package/lib/commonjs/components/WebrtcTranscriptOverlayView.js.map +1 -0
  298. package/lib/commonjs/components/WebrtcView.js +5 -2
  299. package/lib/commonjs/components/WebrtcView.js.map +1 -1
  300. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
  301. package/lib/commonjs/components/Whiteboard.js +1 -1
  302. package/lib/commonjs/components/Whiteboard.js.map +1 -1
  303. package/lib/commonjs/hooks-util.js +65 -8
  304. package/lib/commonjs/hooks-util.js.map +1 -1
  305. package/lib/commonjs/redux/actionTypes.js +3 -1
  306. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  307. package/lib/commonjs/redux/actions/index.js +9 -2
  308. package/lib/commonjs/redux/actions/index.js.map +1 -1
  309. package/lib/commonjs/redux/index.js +1 -1
  310. package/lib/commonjs/redux/index.js.map +1 -1
  311. package/lib/commonjs/redux/reducers/appState.js +9 -1
  312. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  313. package/lib/commonjs/redux/reducers/index.js +1 -1
  314. package/lib/commonjs/redux/reducers/index.js.map +1 -1
  315. package/lib/commonjs/utils/functions.js +1 -1
  316. package/lib/commonjs/utils/functions.js.map +1 -1
  317. package/lib/commonjs/utils/hooks.js.map +1 -1
  318. package/lib/commonjs/utils/theme.js.map +1 -1
  319. package/lib/commonjs/utils/types.js +1 -0
  320. package/lib/commonjs/utils/types.js.map +1 -1
  321. package/lib/module/HMSRoomSetup.js.map +1 -1
  322. package/lib/module/Icons/100ms/index.js +1 -1
  323. package/lib/module/Icons/Add/index.js +1 -1
  324. package/lib/module/Icons/AddImage/index.js +1 -1
  325. package/lib/module/Icons/Alert/index.js +1 -1
  326. package/lib/module/Icons/AlertTriangle/index.js +1 -1
  327. package/lib/module/Icons/AnswerPhone/index.js +1 -1
  328. package/lib/module/Icons/BRB/index.js +1 -1
  329. package/lib/module/Icons/Bluetooth/index.js +1 -1
  330. package/lib/module/Icons/BlurPeople/index.js +1 -1
  331. package/lib/module/Icons/CC/index.js +1 -1
  332. package/lib/module/Icons/Camera/index.js +1 -1
  333. package/lib/module/Icons/Chat/index.js +1 -1
  334. package/lib/module/Icons/Check/index.js +1 -1
  335. package/lib/module/Icons/CheckBox/index.js +1 -1
  336. package/lib/module/Icons/Chevron/index.js +1 -1
  337. package/lib/module/Icons/Clock/index.js +1 -1
  338. package/lib/module/Icons/Close/index.js +1 -1
  339. package/lib/module/Icons/CrossCircle/index.js +1 -1
  340. package/lib/module/Icons/End/index.js +1 -1
  341. package/lib/module/Icons/Eye/index.js +1 -1
  342. package/lib/module/Icons/GenericLogo/index.js +1 -1
  343. package/lib/module/Icons/Hamburger/index.js +1 -1
  344. package/lib/module/Icons/Hand/index.js +1 -1
  345. package/lib/module/Icons/Headphones/index.js +1 -1
  346. package/lib/module/Icons/Leave/index.js +1 -1
  347. package/lib/module/Icons/Maximize/index.js +1 -1
  348. package/lib/module/Icons/Mic/index.js +1 -1
  349. package/lib/module/Icons/Minimize/index.js +1 -1
  350. package/lib/module/Icons/NetworkQuality/index.js +1 -1
  351. package/lib/module/Icons/NoEntry/index.js +1 -1
  352. package/lib/module/Icons/Participants/index.js +1 -1
  353. package/lib/module/Icons/Pause/index.js +1 -1
  354. package/lib/module/Icons/PauseCircle/index.js +1 -1
  355. package/lib/module/Icons/Pencil/index.js +1 -1
  356. package/lib/module/Icons/Person/index.js +1 -1
  357. package/lib/module/Icons/Pin/index.js +1 -1
  358. package/lib/module/Icons/Play/index.js +1 -1
  359. package/lib/module/Icons/Poll/index.js +1 -1
  360. package/lib/module/Icons/PollVote/index.js +1 -1
  361. package/lib/module/Icons/Quiz/index.js +1 -1
  362. package/lib/module/Icons/Radio/index.js +1 -1
  363. package/lib/module/Icons/Recording/index.js +1 -1
  364. package/lib/module/Icons/RotateCamera/index.js +1 -1
  365. package/lib/module/Icons/ScreenShare/index.js +1 -1
  366. package/lib/module/Icons/Search/index.js +1 -1
  367. package/lib/module/Icons/SeekArrow/index.js +1 -1
  368. package/lib/module/Icons/Send/index.js +1 -1
  369. package/lib/module/Icons/Settings/index.js +1 -1
  370. package/lib/module/Icons/Speaker/index.js +1 -1
  371. package/lib/module/Icons/Star/index.js +1 -1
  372. package/lib/module/Icons/Stop/index.js +1 -1
  373. package/lib/module/Icons/ThreeDots/index.js +1 -1
  374. package/lib/module/Icons/TrashBin/index.js +1 -1
  375. package/lib/module/Icons/VirtualBackground/index.js +1 -1
  376. package/lib/module/Icons/Wave/index.js +1 -1
  377. package/lib/module/Icons/WelcomeHand/index.js +1 -1
  378. package/lib/module/components/BottomSheet.js +1 -1
  379. package/lib/module/components/BottomSheet.js.map +1 -1
  380. package/lib/module/components/CaptionsModalContent.js +154 -0
  381. package/lib/module/components/CaptionsModalContent.js.map +1 -0
  382. package/lib/module/components/ChangeNameModalContent.js.map +1 -1
  383. package/lib/module/components/Chat/ChatBanner.js +2 -1
  384. package/lib/module/components/Chat/ChatBanner.js.map +1 -1
  385. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  386. package/lib/module/components/Chat/ChatFilterItem.js.map +1 -1
  387. package/lib/module/components/Chat/ChatFilterView.js +4 -1
  388. package/lib/module/components/Chat/ChatFilterView.js.map +1 -1
  389. package/lib/module/components/Chat/ChatMessage.js.map +1 -1
  390. package/lib/module/components/Chat/ChatMoreActionsView.js.map +1 -1
  391. package/lib/module/components/Chat/ChatPaused.js.map +1 -1
  392. package/lib/module/components/Chat/MessageOptionsView.js.map +1 -1
  393. package/lib/module/components/Chat/PeerBlockedFromChat.js.map +1 -1
  394. package/lib/module/components/Chat/PinnedMessages.js.map +1 -1
  395. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  396. package/lib/module/components/CheckboxInputRow.js.map +1 -1
  397. package/lib/module/components/CompanyLogo.js +1 -1
  398. package/lib/module/components/CreatePoll.js.map +1 -1
  399. package/lib/module/components/CustomButton.js +1 -0
  400. package/lib/module/components/CustomButton.js.map +1 -1
  401. package/lib/module/components/DisplayView.js +2 -2
  402. package/lib/module/components/DisplayView.js.map +1 -1
  403. package/lib/module/components/EndRoomModalContent.js.map +1 -1
  404. package/lib/module/components/GridView.js.map +1 -1
  405. package/lib/module/components/HLSChatHeaderView.js.map +1 -1
  406. package/lib/module/components/HLSDescriptionPane.js.map +1 -1
  407. package/lib/module/components/HLSDescriptionPaneHeader.js.map +1 -1
  408. package/lib/module/components/HLSDistanceFromLive.js.map +1 -1
  409. package/lib/module/components/HLSGoLiveControl.js.map +1 -1
  410. package/lib/module/components/HLSPlayer.js.map +1 -1
  411. package/lib/module/components/HLSPlayerEmoticons.js.map +1 -1
  412. package/lib/module/components/HLSSeekbackwardControl.js.map +1 -1
  413. package/lib/module/components/HLSSeekforwardControl.js.map +1 -1
  414. package/lib/module/components/HLSStreamStartedTime.js.map +1 -1
  415. package/lib/module/components/HMSDangerButton.js.map +1 -1
  416. package/lib/module/components/HMSHLSMessage.js.map +1 -1
  417. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  418. package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
  419. package/lib/module/components/HMSHandRaiseNotification.js.map +1 -1
  420. package/lib/module/components/HMSLiveIndicator.js.map +1 -1
  421. package/lib/module/components/HMSLiveViewerCount.js.map +1 -1
  422. package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
  423. package/lib/module/components/HMSNotification.js +8 -1
  424. package/lib/module/components/HMSNotification.js.map +1 -1
  425. package/lib/module/components/HMSNotifications.js +1 -1
  426. package/lib/module/components/HMSNotifications.js.map +1 -1
  427. package/lib/module/components/HMSOverlayMessageView.js.map +1 -1
  428. package/lib/module/components/HMSPollsQuizzesNotification.js.map +1 -1
  429. package/lib/module/components/HMSPreviewHLSLiveIndicator.js +1 -0
  430. package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  431. package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
  432. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  433. package/lib/module/components/HMSPreviewTile.js.map +1 -1
  434. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  435. package/lib/module/components/HMSPrimaryButton.js.map +1 -1
  436. package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
  437. package/lib/module/components/HMSRoomOptions.js +6 -0
  438. package/lib/module/components/HMSRoomOptions.js.map +1 -1
  439. package/lib/module/components/HMSSecondaryButton.js.map +1 -1
  440. package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -1
  441. package/lib/module/components/HMSTextInput.js +1 -1
  442. package/lib/module/components/HMSTextInput.js.map +1 -1
  443. package/lib/module/components/HMSVideoView.js +1 -1
  444. package/lib/module/components/LeaderboardEntry.js.map +1 -1
  445. package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -1
  446. package/lib/module/components/MeetingScreenContent.js +18 -2
  447. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  448. package/lib/module/components/MenuModal/MenuDivider.js +1 -0
  449. package/lib/module/components/MenuModal/MenuDivider.js.map +1 -1
  450. package/lib/module/components/MenuModal/MenuItem.js +1 -1
  451. package/lib/module/components/Modals.js.map +1 -1
  452. package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -1
  453. package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -1
  454. package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -1
  455. package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  456. package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
  457. package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -1
  458. package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
  459. package/lib/module/components/Participants/ParticipantsList.js +4 -1
  460. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  461. package/lib/module/components/ParticipantsCount.js.map +1 -1
  462. package/lib/module/components/PeerDisplayView.js +1 -1
  463. package/lib/module/components/PeerDisplayView.js.map +1 -1
  464. package/lib/module/components/PeerMinimizedView.js.map +1 -1
  465. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  466. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
  467. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  468. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +2 -2
  469. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  470. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
  471. package/lib/module/components/PollAndQuizQuestionResponseCard.js.map +1 -1
  472. package/lib/module/components/PollAndQuizVoting.js.map +1 -1
  473. package/lib/module/components/PollAndQuizzStateLabel.js.map +1 -1
  474. package/lib/module/components/PollQuestion.js.map +1 -1
  475. package/lib/module/components/PollQuestionDeleteConfirmation.js.map +1 -1
  476. package/lib/module/components/PollQuestions.js.map +1 -1
  477. package/lib/module/components/PollResponseProgressView.js.map +1 -1
  478. package/lib/module/components/PollsAndQuizzesCard.js.map +1 -1
  479. package/lib/module/components/PollsConfigAndList.js.map +1 -1
  480. package/lib/module/components/PressableIcon.js +1 -1
  481. package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
  482. package/lib/module/components/PreviousPollsAndQuizzesList.js.map +1 -1
  483. package/lib/module/components/QuizEndOptionsView.js.map +1 -1
  484. package/lib/module/components/QuizLeaderboardEntriesScreen.js.map +1 -1
  485. package/lib/module/components/QuizLeaderboardScreen.js.map +1 -1
  486. package/lib/module/components/QuizLeaderboardSummary.js.map +1 -1
  487. package/lib/module/components/RadioInputRow.js.map +1 -1
  488. package/lib/module/components/ReconnectionView.js.map +1 -1
  489. package/lib/module/components/RoomSettingsModalContent.js +45 -3
  490. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  491. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  492. package/lib/module/components/StatusBar.js +1 -1
  493. package/lib/module/components/StopRecordingModalContent.js.map +1 -1
  494. package/lib/module/components/VirtualBackgroundModalContent.js +1 -1
  495. package/lib/module/components/VirtualBackgroundModalContent.js.map +1 -1
  496. package/lib/module/components/VoterParticipationSummary.js.map +1 -1
  497. package/lib/module/components/WebrtcTranscriptOverlayView.js +113 -0
  498. package/lib/module/components/WebrtcTranscriptOverlayView.js.map +1 -0
  499. package/lib/module/components/WebrtcView.js +5 -2
  500. package/lib/module/components/WebrtcView.js.map +1 -1
  501. package/lib/module/components/WelcomeInMeeting.js.map +1 -1
  502. package/lib/module/components/Whiteboard.js +1 -1
  503. package/lib/module/hooks-util.js +69 -15
  504. package/lib/module/hooks-util.js.map +1 -1
  505. package/lib/module/redux/actionTypes.js +3 -1
  506. package/lib/module/redux/actionTypes.js.map +1 -1
  507. package/lib/module/redux/actions/index.js +6 -0
  508. package/lib/module/redux/actions/index.js.map +1 -1
  509. package/lib/module/redux/reducers/appState.js +9 -1
  510. package/lib/module/redux/reducers/appState.js.map +1 -1
  511. package/lib/module/utils/hooks.js.map +1 -1
  512. package/lib/module/utils/theme.js.map +1 -1
  513. package/lib/module/utils/types.js +1 -0
  514. package/lib/module/utils/types.js.map +1 -1
  515. package/lib/typescript/components/CaptionsModalContent.d.ts +6 -0
  516. package/lib/typescript/components/CaptionsModalContent.d.ts.map +1 -0
  517. package/lib/typescript/components/Chat/ChatBanner.d.ts +1 -1
  518. package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
  519. package/lib/typescript/components/CustomButton.d.ts.map +1 -1
  520. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
  521. package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
  522. package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
  523. package/lib/typescript/components/MenuModal/MenuDivider.d.ts.map +1 -1
  524. package/lib/typescript/components/Modals.d.ts +1 -1
  525. package/lib/typescript/components/Modals.d.ts.map +1 -1
  526. package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
  527. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  528. package/lib/typescript/components/WebrtcTranscriptOverlayView.d.ts +7 -0
  529. package/lib/typescript/components/WebrtcTranscriptOverlayView.d.ts.map +1 -0
  530. package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
  531. package/lib/typescript/hooks-sdk-selectors.d.ts +2 -2
  532. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  533. package/lib/typescript/hooks-util.d.ts +8 -9
  534. package/lib/typescript/hooks-util.d.ts.map +1 -1
  535. package/lib/typescript/redux/actionTypes.d.ts +1 -0
  536. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  537. package/lib/typescript/redux/actions/index.d.ts +45 -39
  538. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  539. package/lib/typescript/redux/index.d.ts +14 -15
  540. package/lib/typescript/redux/index.d.ts.map +1 -1
  541. package/lib/typescript/redux/reducers/appState.d.ts +1 -0
  542. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  543. package/lib/typescript/redux/reducers/index.d.ts +14 -15
  544. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  545. package/lib/typescript/types.d.ts +3 -3
  546. package/lib/typescript/types.d.ts.map +1 -1
  547. package/lib/typescript/utils/dimension.d.ts.map +1 -1
  548. package/lib/typescript/utils/functions.d.ts +1 -1
  549. package/lib/typescript/utils/functions.d.ts.map +1 -1
  550. package/lib/typescript/utils/hooks.d.ts +2 -2
  551. package/lib/typescript/utils/types.d.ts +1 -0
  552. package/lib/typescript/utils/types.d.ts.map +1 -1
  553. package/lib/typescript/utils.d.ts.map +1 -1
  554. package/package.json +2 -2
  555. package/src/components/CaptionsModalContent.tsx +217 -0
  556. package/src/components/Chat/ChatBanner.tsx +2 -2
  557. package/src/components/Chat/ChatFilterView.tsx +1 -1
  558. package/src/components/CustomButton.tsx +1 -0
  559. package/src/components/DisplayView.tsx +2 -2
  560. package/src/components/HMSNotification.tsx +3 -2
  561. package/src/components/HMSNotifications.tsx +1 -1
  562. package/src/components/HMSPreviewHLSLiveIndicator.tsx +1 -0
  563. package/src/components/HMSRoomOptions.tsx +8 -0
  564. package/src/components/MeetingScreenContent.tsx +23 -2
  565. package/src/components/MenuModal/MenuDivider.tsx +1 -0
  566. package/src/components/Participants/ParticipantsList.tsx +3 -1
  567. package/src/components/PeerDisplayView.tsx +1 -1
  568. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +2 -2
  569. package/src/components/RoomSettingsModalContent.tsx +61 -2
  570. package/src/components/VirtualBackgroundModalContent.tsx +1 -1
  571. package/src/components/WebrtcTranscriptOverlayView.tsx +176 -0
  572. package/src/components/WebrtcView.tsx +5 -2
  573. package/src/hooks-util.ts +113 -40
  574. package/src/redux/actionTypes.ts +3 -0
  575. package/src/redux/actions/index.ts +5 -0
  576. package/src/redux/reducers/appState.ts +8 -0
  577. package/src/types.ts +8 -3
  578. package/src/utils/types.ts +1 -0
@@ -0,0 +1,217 @@
1
+ import * as React from 'react';
2
+ import {
3
+ View,
4
+ Text,
5
+ StyleSheet,
6
+ TouchableOpacity,
7
+ ActivityIndicator,
8
+ } from 'react-native';
9
+ import { batch, useDispatch, useSelector } from 'react-redux';
10
+ import {
11
+ TranscriptionState,
12
+ TranscriptionsMode,
13
+ } from '@100mslive/react-native-hms';
14
+
15
+ import {
16
+ useHMSInstance,
17
+ useHMSRoomColorPalette,
18
+ useHMSRoomStyleSheet,
19
+ } from '../hooks-util';
20
+ import { CloseIcon } from '../Icons';
21
+ import { HMSPrimaryButton } from './HMSPrimaryButton';
22
+ import { TestIds } from '../utils/constants';
23
+ import { HMSDangerButton } from './HMSDangerButton';
24
+ import { HMSSecondaryButton } from './HMSSecondaryButton';
25
+ import type { RootState } from '../redux';
26
+ import { addNotification, setShowClosedCaptions } from '../redux/actions';
27
+ import { NotificationTypes } from '../types';
28
+
29
+ export interface CaptionsModalContentProps {
30
+ dismissModal(): void;
31
+ }
32
+
33
+ export const CaptionsModalContent: React.FC<CaptionsModalContentProps> = ({
34
+ dismissModal,
35
+ }) => {
36
+ const hmsInstance = useHMSInstance();
37
+ const dispatch = useDispatch();
38
+
39
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
40
+ semiBoldSurfaceHigh: {
41
+ color: theme.palette.on_surface_high,
42
+ fontFamily: `${typography.font_family}-SemiBold`,
43
+ },
44
+ regularSurfaceMedium: {
45
+ color: theme.palette.on_surface_medium,
46
+ fontFamily: `${typography.font_family}-Regular`,
47
+ },
48
+ }));
49
+
50
+ const { on_surface_high: OnSurfaceHighColor } = useHMSRoomColorPalette();
51
+
52
+ const isCCAdmin = useSelector((state: RootState) => {
53
+ const captionPermission =
54
+ state.hmsStates.localPeer?.role?.permissions?.transcriptions?.find(
55
+ (element) => element.mode === TranscriptionsMode.CAPTION
56
+ );
57
+ return captionPermission?.admin || false;
58
+ });
59
+
60
+ const ccEnabledForEveryone = useSelector((state: RootState) => {
61
+ return (
62
+ state.hmsStates.room?.transcriptions?.some(
63
+ (transcription) => transcription.state === TranscriptionState.STARTED
64
+ ) || false
65
+ );
66
+ });
67
+
68
+ const ccEnabledForSelf = useSelector(
69
+ (state: RootState) => state.app.showClosedCaptions
70
+ );
71
+
72
+ const handleClosePress = () => {
73
+ dismissModal();
74
+ };
75
+
76
+ const enableCCForEveryone = async () => {
77
+ if (!isCCAdmin) return;
78
+ hmsInstance.startRealTimeTranscription();
79
+ batch(() => {
80
+ dispatch(setShowClosedCaptions(true));
81
+ dispatch(
82
+ addNotification({
83
+ id: 'enable-cc',
84
+ title: 'Enabling Closed Captioning for everyone',
85
+ icon: <ActivityIndicator size={'small'} color={OnSurfaceHighColor} />,
86
+ type: NotificationTypes.INFO,
87
+ })
88
+ );
89
+ });
90
+ dismissModal();
91
+ };
92
+
93
+ const disableCCForEveryone = async () => {
94
+ if (!isCCAdmin) return;
95
+ hmsInstance.stopRealTimeTranscription();
96
+ dispatch(
97
+ addNotification({
98
+ id: 'disable-cc',
99
+ title: 'Disabling Closed Captioning for everyone',
100
+ icon: <ActivityIndicator size={'small'} color={OnSurfaceHighColor} />,
101
+ type: NotificationTypes.INFO,
102
+ })
103
+ );
104
+ dismissModal();
105
+ };
106
+
107
+ const handleCCForSelf = async () => {
108
+ dispatch(setShowClosedCaptions(!ccEnabledForSelf));
109
+ dismissModal();
110
+ };
111
+
112
+ return (
113
+ <View>
114
+ {/* Header */}
115
+ <View style={styles.header}>
116
+ {ccEnabledForEveryone ? (
117
+ <Text
118
+ testID={TestIds.change_name_modal_heading}
119
+ style={[styles.headerText, hmsRoomStyles.semiBoldSurfaceHigh]}
120
+ >
121
+ Closed Captions (CC)
122
+ </Text>
123
+ ) : (
124
+ <Text
125
+ testID={TestIds.change_name_modal_heading}
126
+ style={[styles.headerText, hmsRoomStyles.semiBoldSurfaceHigh]}
127
+ >
128
+ Enable Closed Captions (CC) {'\n'}for this session?
129
+ </Text>
130
+ )}
131
+
132
+ <TouchableOpacity
133
+ testID={TestIds.change_name_modal_close_btn}
134
+ onPress={handleClosePress}
135
+ hitSlop={styles.closeIconHitSlop}
136
+ >
137
+ <CloseIcon />
138
+ </TouchableOpacity>
139
+ </View>
140
+
141
+ {/* Content */}
142
+ <View style={styles.contentContainer}>
143
+ {ccEnabledForEveryone ? (
144
+ <>
145
+ <HMSSecondaryButton
146
+ style={{ marginBottom: 16 }}
147
+ loading={false}
148
+ onPress={handleCCForSelf}
149
+ title={ccEnabledForSelf ? 'Hide for Me' : 'Show for Me'}
150
+ />
151
+
152
+ <HMSDangerButton
153
+ loading={false}
154
+ onPress={disableCCForEveryone}
155
+ title="Disable for Everyone"
156
+ />
157
+ </>
158
+ ) : (
159
+ <HMSPrimaryButton
160
+ loading={false}
161
+ onPress={enableCCForEveryone}
162
+ title="Enable for Everyone"
163
+ />
164
+ )}
165
+
166
+ <Text style={[styles.subtitle, hmsRoomStyles.regularSurfaceMedium]}>
167
+ This will {ccEnabledForEveryone ? 'disable' : 'enable'} Closed
168
+ Captions for everyone in this room. You can{' '}
169
+ {ccEnabledForEveryone ? 'enable' : 'disable'} it later.
170
+ </Text>
171
+ </View>
172
+ </View>
173
+ );
174
+ };
175
+
176
+ const styles = StyleSheet.create({
177
+ header: {
178
+ flexDirection: 'row',
179
+ alignItems: 'flex-start',
180
+ justifyContent: 'space-between',
181
+ marginTop: 16,
182
+ marginHorizontal: 24,
183
+ },
184
+ headerControls: {
185
+ flexDirection: 'row',
186
+ alignItems: 'center',
187
+ },
188
+ headerText: {
189
+ flexShrink: 1,
190
+ fontSize: 20,
191
+ lineHeight: 24,
192
+ letterSpacing: 0.15,
193
+ },
194
+ subtitle: {
195
+ marginTop: 16,
196
+ fontSize: 14,
197
+ lineHeight: 20,
198
+ letterSpacing: 0.25,
199
+ },
200
+ closeIconHitSlop: {
201
+ bottom: 16,
202
+ left: 16,
203
+ right: 16,
204
+ top: 16,
205
+ },
206
+ backIcon: {
207
+ marginRight: 8,
208
+ },
209
+ contentContainer: {
210
+ paddingTop: 16,
211
+ marginHorizontal: 24,
212
+ },
213
+ textInput: {
214
+ flex: undefined,
215
+ marginBottom: 16,
216
+ },
217
+ });
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
1
+ // @ts-ignore - Ignoring React import as it is generating error while running prepack script
2
+ import React from 'react';
2
3
  import { View, StyleSheet, Text, Image } from 'react-native';
3
-
4
4
  import { useHMSRoomStyleSheet } from '../../hooks-util';
5
5
  import { useIsLandscapeOrientation } from '../../utils/dimension';
6
6
 
@@ -111,7 +111,7 @@ const _ChatFilterView: React.FC<ChatFilterViewProps> = ({ onDismiss }) => {
111
111
  }
112
112
 
113
113
  return remotePeers.filter((remotePeer) =>
114
- remotePeer.name.toLowerCase().includes(formattedFilterText)
114
+ remotePeer.name?.toLowerCase().includes(formattedFilterText)
115
115
  );
116
116
  }, [formattedFilterText, remotePeers]);
117
117
 
@@ -1,3 +1,4 @@
1
+ // @ts-ignore - Ignoring React import as it is generating error while running prepack script
1
2
  import React from 'react';
2
3
  import {
3
4
  StyleSheet,
@@ -1,6 +1,6 @@
1
1
  import React, { useRef, useState } from 'react';
2
2
  import { useSelector } from 'react-redux';
3
- import { InteractionManager, View } from 'react-native';
3
+ import { InteractionManager, Platform, View } from 'react-native';
4
4
  import { HMSTrack, HMSCameraControl } from '@100mslive/react-native-hms';
5
5
  import type { SharedValue } from 'react-native-reanimated';
6
6
 
@@ -134,7 +134,7 @@ export const DisplayView: React.FC<DisplayViewProps> = ({
134
134
  handlePeerTileMorePress={handlePeerTileMorePress}
135
135
  />
136
136
 
137
- {isPipModeActive ? null : (
137
+ {isPipModeActive && Platform.OS === 'android' ? null : (
138
138
  <>
139
139
  <LeaveRoomBottomSheet />
140
140
 
@@ -5,7 +5,7 @@ import type { StyleProp, ViewStyle, TextStyle, TextProps } from 'react-native';
5
5
  import { Gesture, GestureDetector } from 'react-native-gesture-handler';
6
6
 
7
7
  import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
8
- import { ChatIcon, CloseIcon } from '../Icons';
8
+ import { CCIcon, ChatIcon, CloseIcon } from '../Icons';
9
9
  import { UnmountAfterDelay } from './UnmountAfterDelay';
10
10
  import { removeNotification } from '../redux/actions';
11
11
 
@@ -172,7 +172,8 @@ function getIcon(icon: string) {
172
172
  case 'chat-off':
173
173
  case 'chat-on':
174
174
  return <ChatIcon type={icon === 'chat-on' ? 'on' : 'off'} />;
175
-
175
+ case 'cc':
176
+ return <CCIcon style={{ width: 20, height: 20 }} />;
176
177
  default:
177
178
  return null;
178
179
  }
@@ -122,7 +122,7 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
122
122
  'peer' in notification ? (
123
123
  <HMSRoleChangeDeclinedNotification
124
124
  id={notification.id}
125
- peerName={notification.peer.name}
125
+ peerName={notification.peer.name || ''}
126
126
  autoDismiss={atTop}
127
127
  dismissDelay={10000}
128
128
  />
@@ -1,3 +1,4 @@
1
+ // @ts-ignore - Ignoring React import as it is generating error while running prepack script
1
2
  import * as React from 'react';
2
3
  import { View, Text, StyleSheet } from 'react-native';
3
4
 
@@ -24,6 +24,7 @@ import { StopRecordingModalContent } from './StopRecordingModalContent';
24
24
  import { TestIds } from '../utils/constants';
25
25
  import { PollsAndQuizBottomSheet } from './PollsAndQuizBottomSheet';
26
26
  import { VirtualBackgroundBottomSheet } from './VirtualBackgroundBottomSheet';
27
+ import { CaptionsModalContent } from './CaptionsModalContent';
27
28
 
28
29
  interface HMSRoomOptionsProps {}
29
30
 
@@ -77,6 +78,13 @@ export const HMSRoomOptions: React.FC<HMSRoomOptionsProps> = () => {
77
78
 
78
79
  <VirtualBackgroundBottomSheet />
79
80
 
81
+ <BottomSheet
82
+ isVisible={modalVisible === ModalTypes.CLOSED_CAPTIONS_CONTROL}
83
+ dismissModal={dismissModal}
84
+ >
85
+ <CaptionsModalContent dismissModal={dismissModal} />
86
+ </BottomSheet>
87
+
80
88
  <BottomSheet
81
89
  isVisible={modalVisible === ModalTypes.CHANGE_NAME}
82
90
  dismissModal={dismissModal}
@@ -35,6 +35,7 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
35
35
  const timerIdRef = useRef<NodeJS.Timeout | null>(null);
36
36
  const [controlsHidden, setControlsHidden] = useState(false);
37
37
  const isLandscapeOrientation = useIsLandscapeOrientation();
38
+ const prevIsLandscapeOrientation = useRef(isLandscapeOrientation);
38
39
  const isPipModeActive = useSelector(
39
40
  (state: RootState) => state.app.pipModeStatus === PipModes.ACTIVE
40
41
  );
@@ -97,6 +98,26 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
97
98
  );
98
99
  }
99
100
 
101
+ //#region Hiding Header & Footer when user switches from Portrait to Landscape
102
+ if (
103
+ prevIsLandscapeOrientation.current === false &&
104
+ isLandscapeOrientation &&
105
+ offset.value === 1
106
+ ) {
107
+ cancelAnimation(offset);
108
+ offset.value = withTiming(
109
+ 0,
110
+ { duration: 200, easing: Easing.ease },
111
+ (finished) => {
112
+ if (finished) {
113
+ runOnJS(setControlsHidden)(offset.value === 0);
114
+ }
115
+ }
116
+ );
117
+ }
118
+ prevIsLandscapeOrientation.current = isLandscapeOrientation;
119
+ //#endregion
120
+
100
121
  // Handles Auto hiding the controls for the first time
101
122
  // to make this feature discoverable
102
123
  useEffect(() => {
@@ -123,7 +144,7 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
123
144
 
124
145
  <GestureDetector gesture={tapGesture}>
125
146
  <View collapsable={false} style={styles.container}>
126
- {isPipModeActive ? null : (
147
+ {isPipModeActive && Platform.OS === 'android' ? null : (
127
148
  <AnimatedHeader offset={offset}>
128
149
  <Header />
129
150
  </AnimatedHeader>
@@ -131,7 +152,7 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
131
152
 
132
153
  <DisplayView offset={offset} peerTrackNodes={peerTrackNodes} />
133
154
 
134
- {isPipModeActive ? null : (
155
+ {isPipModeActive && Platform.OS === 'android' ? null : (
135
156
  <AnimatedFooter offset={offset}>
136
157
  <Footer />
137
158
  </AnimatedFooter>
@@ -1,3 +1,4 @@
1
+ // @ts-ignore - Ignoring React import as it is generating error while running prepack script
1
2
  import React from 'react';
2
3
 
3
4
  import { StyleSheet, View } from 'react-native';
@@ -124,7 +124,9 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
124
124
  //#region FlashList props
125
125
  const data = React.useMemo(() => {
126
126
  return (isOffStageGroup ? offStageData : dataWithHeader).filter((item) =>
127
- 'id' in item ? true : item.name.toLowerCase().includes(filteredSearchText)
127
+ 'id' in item
128
+ ? true
129
+ : item.name?.toLowerCase().includes(filteredSearchText)
128
130
  );
129
131
  }, [filteredSearchText, offStageData, dataWithHeader, isOffStageGroup]);
130
132
 
@@ -55,7 +55,7 @@ const PeerDisplayViewUnmemoized = React.forwardRef<
55
55
  <View style={peerDisplayViewStyles.container}>
56
56
  {videoTrack?.isMute() || videoTrack?.trackId === undefined ? (
57
57
  <View style={styles.avatarContainer}>
58
- <AvatarView userName={peer.name} />
58
+ <AvatarView userName={peer.name || ''} />
59
59
  </View>
60
60
  ) : (
61
61
  <View style={styles.flex}>
@@ -153,7 +153,7 @@ export const _PeerVideoTileView = React.forwardRef<
153
153
  return (
154
154
  <View style={styles.container}>
155
155
  <AvatarView
156
- name={peer.name}
156
+ name={peer.name || ''}
157
157
  avatarContainerStyles={
158
158
  insetMode ? hmsRoomStyles.avatarContainer : null
159
159
  }
@@ -196,7 +196,7 @@ export const _PeerVideoTileView = React.forwardRef<
196
196
  {insetMode || isPipModeActive ? null : (
197
197
  <PeerNameAndNetwork
198
198
  isSIPPeerType={peer.type === HMSPeerType.SIP}
199
- name={peer.name}
199
+ name={peer.name || ''}
200
200
  isLocal={peer.isLocal}
201
201
  trackSource={trackSource}
202
202
  networkQuality={peer.networkQuality?.downlinkQuality}
@@ -2,7 +2,11 @@ import * as React from 'react';
2
2
  import { View, StyleSheet, Text, TouchableOpacity } from 'react-native';
3
3
  import type { TouchableOpacityProps } from 'react-native';
4
4
  import type { HMSAudioMixingMode } from '@100mslive/react-native-hms';
5
- import { HMSRecordingState } from '@100mslive/react-native-hms';
5
+ import {
6
+ HMSRecordingState,
7
+ TranscriptionState,
8
+ TranscriptionsMode,
9
+ } from '@100mslive/react-native-hms';
6
10
  import { useDispatch, useSelector } from 'react-redux';
7
11
 
8
12
  import type { RootState } from '../redux';
@@ -10,6 +14,7 @@ import { ModalTypes } from '../utils/types';
10
14
  import { groupIntoTriplets, parseMetadata } from '../utils/functions';
11
15
  import {
12
16
  BRBIcon,
17
+ CCIcon,
13
18
  HandIcon,
14
19
  ParticipantsIcon,
15
20
  PencilIcon,
@@ -41,7 +46,7 @@ import { RoomSettingsModalDebugModeContent } from './RoomSettingsModalDebugModeC
41
46
  import { ParticipantsCount } from './ParticipantsCount';
42
47
  import { selectAllowedTracksToPublish } from '../hooks-sdk-selectors';
43
48
  import { TestIds } from '../utils/constants';
44
- import { addNotification } from '../redux/actions';
49
+ import { addNotification, setShowClosedCaptions } from '../redux/actions';
45
50
  import { NotificationTypes } from '../types';
46
51
 
47
52
  interface RoomSettingsModalContentProps {
@@ -285,6 +290,47 @@ export const RoomSettingsModalContent: React.FC<
285
290
  };
286
291
  // #endregion
287
292
 
293
+ // #region Closed Captions
294
+ const isCCAdmin = useSelector((state: RootState) => {
295
+ const captionPermission =
296
+ state.hmsStates.localPeer?.role?.permissions?.transcriptions?.find(
297
+ (element) => element.mode === TranscriptionsMode.CAPTION
298
+ );
299
+ return captionPermission?.admin || false;
300
+ });
301
+
302
+ const ccEnabledForEveryone = useSelector((state: RootState) => {
303
+ const captionTranscription = state.hmsStates.room?.transcriptions?.find(
304
+ (transcription) => transcription.mode === TranscriptionsMode.CAPTION
305
+ );
306
+
307
+ return captionTranscription
308
+ ? captionTranscription.state === TranscriptionState.STARTED
309
+ : false;
310
+ });
311
+
312
+ const ccEnabledForSelf = useSelector(
313
+ (state: RootState) => state.app.showClosedCaptions
314
+ );
315
+
316
+ const handleCCForSelf = () => {
317
+ dispatch(setShowClosedCaptions(!ccEnabledForSelf));
318
+
319
+ // Close the current bottom sheet
320
+ closeRoomSettingsModal();
321
+ };
322
+
323
+ const handleCCForEveryone = () => {
324
+ // Register callback to be called when bottom sheet is hiddden
325
+ registerOnModalHideAction(() => {
326
+ setModalVisible(ModalTypes.CLOSED_CAPTIONS_CONTROL);
327
+ });
328
+
329
+ // Close the current bottom sheet
330
+ closeRoomSettingsModal();
331
+ };
332
+ // #endregion
333
+
288
334
  const changeName = () => {
289
335
  // Register callback to be called when bottom sheet is hiddden
290
336
  registerOnModalHideAction(() => {
@@ -513,6 +559,19 @@ export const RoomSettingsModalContent: React.FC<
513
559
  hide: !videoPlugin || !canPublishVideo,
514
560
  disabled: isLocalVideoMuted,
515
561
  },
562
+ {
563
+ id: 'closed-captions',
564
+ icon: <CCIcon style={{ width: 20, height: 20 }} />,
565
+ label: isCCAdmin
566
+ ? 'Closed Captions'
567
+ : ccEnabledForSelf
568
+ ? 'Hide Captions'
569
+ : 'Show Captions',
570
+ pressHandler: isCCAdmin ? handleCCForEveryone : handleCCForSelf,
571
+ isActive: !isCCAdmin && ccEnabledForSelf,
572
+ hide: !isCCAdmin && !ccEnabledForEveryone,
573
+ disabled: false,
574
+ },
516
575
  ].filter((itm) => !itm.hide),
517
576
  true
518
577
  ).map((itm, idx) => {
@@ -109,7 +109,7 @@ export const VirtualBackgroundModalContent: React.FC<
109
109
  // If PIP is enabled, disable it
110
110
  if (pipModeEnabled) {
111
111
  dispatch(setAutoEnterPipMode(false));
112
- disableAutoPip();
112
+ disableAutoPip({});
113
113
  }
114
114
 
115
115
  const imageLibraryResponse = await ImagePicker.launchImageLibrary({