@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,176 @@
1
+ import * as React from 'react';
2
+ import { interpolate } from 'react-native-reanimated';
3
+ import type { SharedValue } from 'react-native-reanimated';
4
+ import { useSelector } from 'react-redux';
5
+ import { View, Text, StyleSheet, Platform } from 'react-native';
6
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
+
8
+ import {
9
+ useHMSInstance,
10
+ useHMSRoomStyleSheet,
11
+ useShowChatAndParticipants,
12
+ } from '../hooks-util';
13
+ import { useIsPortraitOrientation } from '../utils/dimension';
14
+ import { COLORS, hexToRgbA } from '../utils/theme';
15
+ import type { RootState } from '../redux';
16
+ import {
17
+ HMSUpdateListenerActions,
18
+ TranscriptionState,
19
+ } from '@100mslive/react-native-hms';
20
+ import type { HMSTranscript } from '@100mslive/react-native-hms';
21
+
22
+ export type WebrtcTranscriptOverlayViewProps = {
23
+ offset: SharedValue<number>;
24
+ };
25
+
26
+ const _WebrtcTranscriptOverlayView: React.FC<
27
+ WebrtcTranscriptOverlayViewProps
28
+ > = ({ offset }) => {
29
+ const hmsInstance = useHMSInstance();
30
+ const isPortrait = useIsPortraitOrientation();
31
+ const { overlayChatVisible } = useShowChatAndParticipants();
32
+ const { bottom } = useSafeAreaInsets();
33
+ let timerId = React.useRef<NodeJS.Timeout | null>(null);
34
+
35
+ const [transcripts, setTranscripts] =
36
+ React.useState<Array<HMSTranscript> | null>(null);
37
+ const ccEnabledForSelf = useSelector(
38
+ (state: RootState) => state.app.showClosedCaptions
39
+ );
40
+ const ccEnabledForEveryone = useSelector((state: RootState) => {
41
+ return (
42
+ state.hmsStates.room?.transcriptions?.some(
43
+ (transcription) => transcription.state === TranscriptionState.STARTED
44
+ ) || false
45
+ );
46
+ });
47
+
48
+ React.useEffect(() => {
49
+ if (!ccEnabledForSelf) return;
50
+
51
+ let mounted = true;
52
+
53
+ const onTranscriptsListener = (data: any) => {
54
+ if (timerId.current != null) {
55
+ clearTimeout(timerId.current);
56
+ }
57
+ setTranscripts(data.transcripts);
58
+
59
+ timerId.current = setTimeout(() => {
60
+ if (mounted) {
61
+ setTranscripts(null);
62
+ }
63
+ timerId.current = null;
64
+ }, 4000);
65
+ };
66
+
67
+ hmsInstance.addEventListener(
68
+ HMSUpdateListenerActions.ON_TRANSCRIPTS,
69
+ onTranscriptsListener
70
+ );
71
+
72
+ return () => {
73
+ mounted = false;
74
+ if (timerId.current !== null) {
75
+ clearTimeout(timerId.current);
76
+ timerId.current = null;
77
+ }
78
+ hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_TRANSCRIPTS);
79
+ };
80
+ }, [ccEnabledForSelf, hmsInstance]);
81
+
82
+ const notificationsCount = useSelector((state: RootState) => {
83
+ const isLocalScreenShared = state.hmsStates.isLocalScreenShared;
84
+ return Math.min(
85
+ state.app.notifications.length + (isLocalScreenShared ? 1 : 0),
86
+ 3
87
+ );
88
+ });
89
+
90
+ const hmsRoomStyles = useHMSRoomStyleSheet(
91
+ (theme, typography) => ({
92
+ container: {
93
+ backgroundColor:
94
+ theme.palette.background_dim &&
95
+ hexToRgbA(theme.palette.background_dim, 0.64),
96
+ },
97
+ regularWhite: {
98
+ color: COLORS.WHITE,
99
+ fontFamily: `${typography.font_family}-Regular`,
100
+ },
101
+ semiBoldWhite: {
102
+ color: COLORS.WHITE,
103
+ fontFamily: `${typography.font_family}-SemiBold`,
104
+ },
105
+ }),
106
+ []
107
+ );
108
+
109
+ const extraBottomOffset =
110
+ notificationsCount > 0 ? 44 + notificationsCount * 16 : 32;
111
+
112
+ const dynamicStyles = {
113
+ top: overlayChatVisible ? 0 : undefined,
114
+ bottom: overlayChatVisible
115
+ ? undefined
116
+ : interpolate(
117
+ offset.value,
118
+ [0, 1],
119
+ [(!isPortrait ? bottom : 0) + extraBottomOffset, extraBottomOffset]
120
+ ),
121
+ };
122
+
123
+ if (ccEnabledForEveryone && ccEnabledForSelf && transcripts !== null) {
124
+ return (
125
+ <View
126
+ pointerEvents="box-none"
127
+ style={[styles.absoluteContainer, dynamicStyles]}
128
+ >
129
+ <View style={[styles.container, hmsRoomStyles.container]}>
130
+ {transcripts.map((transcript, idx) => {
131
+ const isFirst = idx === 0;
132
+ return (
133
+ <Text
134
+ key={transcript.transcript}
135
+ style={[
136
+ styles.transcriptText,
137
+ hmsRoomStyles.regularWhite,
138
+ isFirst ? null : { marginTop: 8 },
139
+ ]}
140
+ >
141
+ <Text style={hmsRoomStyles.semiBoldWhite}>
142
+ {transcript.peer.name}:
143
+ </Text>{' '}
144
+ {transcript.transcript}
145
+ </Text>
146
+ );
147
+ })}
148
+ </View>
149
+ </View>
150
+ );
151
+ }
152
+
153
+ return null;
154
+ };
155
+
156
+ const styles = StyleSheet.create({
157
+ absoluteContainer: {
158
+ position: 'absolute',
159
+ width: '100%',
160
+ bottom: 0,
161
+ zIndex: 1,
162
+ },
163
+ container: {
164
+ margin: 8,
165
+ padding: 12,
166
+ borderRadius: 8,
167
+ },
168
+ transcriptText: {
169
+ fontSize: 14,
170
+ lineHeight: Platform.OS === 'android' ? 20 : undefined,
171
+ },
172
+ });
173
+
174
+ export const WebrtcTranscriptOverlayView = React.memo(
175
+ _WebrtcTranscriptOverlayView
176
+ );
@@ -24,7 +24,8 @@ import { OverlayContainer } from './OverlayContainer';
24
24
  import { OverlayedViews } from './OverlayedViews';
25
25
  import { useFooterHeight } from './Footer';
26
26
  import { useHeaderHeight } from './Header';
27
- import { View } from 'react-native';
27
+ import { Platform, View } from 'react-native';
28
+ import { WebrtcTranscriptOverlayView } from './WebrtcTranscriptOverlayView';
28
29
 
29
30
  interface WebrtcViewProps {
30
31
  offset: SharedValue<number>;
@@ -110,7 +111,7 @@ export const WebrtcView = React.forwardRef<GridViewRefAttrs, WebrtcViewProps>(
110
111
  };
111
112
  }, [isPortrait, bottom]);
112
113
 
113
- if (isPipModeActive) {
114
+ if (isPipModeActive && Platform.OS === 'android') {
114
115
  return (
115
116
  <PIPView
116
117
  peerTrackNodes={peerTrackNodes}
@@ -145,6 +146,8 @@ export const WebrtcView = React.forwardRef<GridViewRefAttrs, WebrtcViewProps>(
145
146
  />
146
147
  )}
147
148
 
149
+ <WebrtcTranscriptOverlayView offset={offset} />
150
+
148
151
  <OverlayedViews
149
152
  animatedStyle={overlayedAnimatedStyles}
150
153
  offset={offset}
package/src/hooks-util.ts CHANGED
@@ -1,12 +1,24 @@
1
+ import type {
2
+ HMSHLSPlayer,
3
+ HMSPIPConfig,
4
+ HMSRole,
5
+ HMSSessionStore,
6
+ HMSSpeaker,
7
+ JsonValue,
8
+ } from '@100mslive/react-native-hms';
1
9
  import {
10
+ getSoftInputMode,
2
11
  HMSChangeTrackStateRequest,
3
12
  HMSConfig,
13
+ HMSHLSPlayerPlaybackState,
4
14
  HMSLocalPeer,
5
15
  HMSMessage,
16
+ HMSMessageRecipient,
6
17
  HMSMessageRecipientType,
7
- HMSPIPListenerActions,
8
18
  HMSPeer,
9
19
  HMSPeerUpdate,
20
+ HMSPIPListenerActions,
21
+ HMSPollUpdateType,
10
22
  HMSRoleChangeRequest,
11
23
  HMSRoom,
12
24
  HMSRoomUpdate,
@@ -16,27 +28,18 @@ import {
16
28
  HMSTrackType,
17
29
  HMSTrackUpdate,
18
30
  HMSUpdateListenerActions,
19
- HMSMessageRecipient,
20
- useHMSHLSPlayerResolution,
21
- useHmsViewsResolutionsState,
31
+ HMSVideoViewMode,
22
32
  setSoftInputMode,
23
- getSoftInputMode,
24
- WindowController,
33
+ SoftInputModes,
34
+ TranscriptionsMode,
35
+ TranscriptionState,
25
36
  useHMSHLSPlayerCue,
26
- HMSPollUpdateType,
27
37
  useHMSHLSPlayerPlaybackState,
28
- HMSHLSPlayerPlaybackState,
38
+ useHMSHLSPlayerResolution,
39
+ useHmsViewsResolutionsState,
40
+ WindowController,
29
41
  } from '@100mslive/react-native-hms';
30
42
  import type { Chat as ChatConfig } from '@100mslive/types-prebuilt/elements/chat';
31
- import { SoftInputModes } from '@100mslive/react-native-hms';
32
- import type {
33
- HMSHLSPlayer,
34
- HMSPIPConfig,
35
- HMSRole,
36
- HMSSessionStore,
37
- HMSSpeaker,
38
- JsonValue,
39
- } from '@100mslive/react-native-hms';
40
43
  import type {
41
44
  ColorPalette,
42
45
  DefaultConferencingScreen,
@@ -46,25 +49,25 @@ import type {
46
49
  Typography,
47
50
  } from '@100mslive/types-prebuilt';
48
51
  import Toast from 'react-native-simple-toast';
52
+ import type { DependencyList } from 'react';
49
53
  import {
50
- useRef,
51
54
  useCallback,
55
+ useContext,
52
56
  useEffect,
53
- useState,
54
57
  useMemo,
55
- useContext,
58
+ useRef,
59
+ useState,
56
60
  } from 'react';
57
- import type { DependencyList } from 'react';
58
61
 
62
+ import type { OnLeaveHandler, PeerTrackNode } from './utils/types';
59
63
  import {
64
+ ChatBroadcastFilter,
60
65
  MaxTilesInOnePage,
61
66
  ModalTypes,
62
67
  OnLeaveReason,
63
68
  PeerListRefreshInterval,
64
69
  PipModes,
65
70
  } from './utils/types';
66
- import { ChatBroadcastFilter } from './utils/types';
67
- import type { OnLeaveHandler, PeerTrackNode } from './utils/types';
68
71
  import { createPeerTrackNode, parseMetadata } from './utils/functions';
69
72
  import {
70
73
  batch,
@@ -102,10 +105,10 @@ import {
102
105
  setChatState,
103
106
  setEditUsernameDisabled,
104
107
  setFullScreenPeerTrackNode,
108
+ setHandleBackButton,
105
109
  setHMSLocalPeerState,
106
110
  setHMSRoleState,
107
111
  setHMSRoomState,
108
- setHandleBackButton,
109
112
  setIsLocalAudioMutedState,
110
113
  setIsLocalVideoMutedState,
111
114
  setLayoutConfig,
@@ -132,15 +135,15 @@ import {
132
135
  replacePeerTrackNodes,
133
136
  replacePeerTrackNodesWithTrack,
134
137
  } from './peerTrackNodeUtils';
135
- import { MeetingState } from './types';
136
138
  import type { ChatState, HMSPrebuiltProps, PinnedMessage } from './types';
139
+ import { MeetingState, NotificationTypes } from './types';
140
+ import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
137
141
  import {
138
142
  BackHandler,
139
143
  InteractionManager,
140
144
  Keyboard,
141
145
  Platform,
142
146
  } from 'react-native';
143
- import type { ImageStyle, StyleProp, ViewStyle, TextStyle } from 'react-native';
144
147
  import { NavigationContext } from '@react-navigation/native';
145
148
  import {
146
149
  useIsLandscapeOrientation,
@@ -157,7 +160,6 @@ import {
157
160
  import type { GridViewRefAttrs } from './components/GridView';
158
161
  import { getRoomLayout } from './modules/HMSManager';
159
162
  import { DEFAULT_THEME, DEFAULT_TYPOGRAPHY } from './utils/theme';
160
- import { NotificationTypes } from './types';
161
163
  import { KeyboardState, useSharedValue } from 'react-native-reanimated';
162
164
  import {
163
165
  useCanPublishAudio,
@@ -207,6 +209,53 @@ const useHMSRoomUpdate = (hmsInstance: HMSSDK) => {
207
209
  }
208
210
  } else if (type === HMSRoomUpdate.HLS_STREAMING_STATE_UPDATED) {
209
211
  dispatch(changeStartingHLSStream(false));
212
+ } else if (type === HMSRoomUpdate.TRANSCRIPTIONS_UPDATED) {
213
+ const captionTranscription = room.transcriptions?.find(
214
+ (transcription) => transcription.mode === TranscriptionsMode.CAPTION
215
+ );
216
+
217
+ if (captionTranscription?.state === TranscriptionState.STARTED) {
218
+ batch(() => {
219
+ dispatch(removeNotification('enable-cc'));
220
+ dispatch(
221
+ addNotification({
222
+ id: Math.random().toString(16).slice(2),
223
+ type: NotificationTypes.INFO,
224
+ icon: 'cc',
225
+ title: 'Closed Captioning enabled for everyone',
226
+ })
227
+ );
228
+ });
229
+ } else if (captionTranscription?.state === TranscriptionState.STOPPED) {
230
+ batch(() => {
231
+ dispatch(removeNotification('disable-cc'));
232
+ dispatch(
233
+ addNotification({
234
+ id: Math.random().toString(16).slice(2),
235
+ type: NotificationTypes.INFO,
236
+ icon: 'cc',
237
+ title: 'Closed Captioning disabled for everyone',
238
+ })
239
+ );
240
+ });
241
+ } else if (captionTranscription?.state === TranscriptionState.FAILED) {
242
+ const transcriptionError = captionTranscription.error;
243
+ batch(() => {
244
+ dispatch(removeNotification('enable-cc'));
245
+ dispatch(removeNotification('disable-cc'));
246
+ if (transcriptionError !== undefined) {
247
+ dispatch(
248
+ addNotification({
249
+ id: Math.random().toString(16).slice(2),
250
+ title:
251
+ transcriptionError.message ||
252
+ 'Failed to enable/disable Closed Captions',
253
+ type: NotificationTypes.ERROR,
254
+ })
255
+ );
256
+ }
257
+ });
258
+ }
210
259
  }
211
260
  };
212
261
 
@@ -736,6 +785,7 @@ const useHMSTrackUpdate = (
736
785
  if (type === HMSTrackUpdate.TRACK_REMOVED) {
737
786
  if (track.source === HMSTrackSource.SCREEN) {
738
787
  if (!peer.isLocal && track.type === HMSTrackType.VIDEO) {
788
+ hmsInstance.setActiveSpeakerInIOSPIP(true);
739
789
  const screensharePeerTrackNodes =
740
790
  reduxState.app.screensharePeerTrackNodes;
741
791
  const nodeToRemove = screensharePeerTrackNodes.find(
@@ -1528,14 +1578,26 @@ export const useHMSNetworkQualityUpdate = () => {
1528
1578
  }, [hmsInstance]);
1529
1579
  };
1530
1580
 
1531
- export type PIPConfig = Omit<HMSPIPConfig, 'autoEnterPipMode'>;
1581
+ const pipConfig: HMSPIPConfig = {
1582
+ scaleType: HMSVideoViewMode.ASPECT_FILL,
1583
+ aspectRatio: [9, 16],
1584
+ autoEnterPipMode: true,
1585
+ useActiveSpeaker: true,
1586
+ endButton: false,
1587
+ audioButton: false,
1588
+ videoButton: false,
1589
+ };
1532
1590
 
1533
1591
  export const useEnableAutoPip = () => {
1534
1592
  const hmsInstance = useHMSInstance();
1535
1593
 
1536
1594
  const enableAutoPip = useCallback(
1537
- (data?: PIPConfig) => {
1538
- hmsInstance.setPipParams({ ...data, autoEnterPipMode: true });
1595
+ (data: HMSPIPConfig) => {
1596
+ hmsInstance.setPipParams({
1597
+ ...pipConfig,
1598
+ ...data,
1599
+ autoEnterPipMode: true,
1600
+ });
1539
1601
  },
1540
1602
  [hmsInstance]
1541
1603
  );
@@ -1547,8 +1609,12 @@ export const useDisableAutoPip = () => {
1547
1609
  const hmsInstance = useHMSInstance();
1548
1610
 
1549
1611
  const disableAutoPip = useCallback(
1550
- (data?: PIPConfig) => {
1551
- hmsInstance.setPipParams({ ...data, autoEnterPipMode: false });
1612
+ (data: HMSPIPConfig) => {
1613
+ hmsInstance.setPipParams({
1614
+ ...pipConfig,
1615
+ ...data,
1616
+ autoEnterPipMode: false,
1617
+ });
1552
1618
  },
1553
1619
  [hmsInstance]
1554
1620
  );
@@ -1572,9 +1638,14 @@ export const useAutoPip = (oneToOneCall: boolean) => {
1572
1638
 
1573
1639
  useEffect(() => {
1574
1640
  if (autoEnterPipMode && remotePeersPresent) {
1575
- enableAutoPip({ aspectRatio: [numerator, denominator] });
1641
+ enableAutoPip({
1642
+ scaleType: HMSVideoViewMode.ASPECT_FILL,
1643
+ aspectRatio: [numerator, denominator],
1644
+ });
1576
1645
 
1577
- return disableAutoPip;
1646
+ return () => {
1647
+ disableAutoPip({});
1648
+ };
1578
1649
  }
1579
1650
  }, [
1580
1651
  remotePeersPresent,
@@ -1602,7 +1673,7 @@ export const usePipAspectRatio = (oneToOneCall: boolean): [number, number] => {
1602
1673
  if (isHLSViewer && hlsPlayerResolution) {
1603
1674
  return [hlsPlayerResolution.width, hlsPlayerResolution.height];
1604
1675
  }
1605
- // When user is hlsviewer and we don't have stream resolution
1676
+ // When user is hlsviewer, and we don't have stream resolution
1606
1677
  if (isHLSViewer) {
1607
1678
  return [9, 16];
1608
1679
  }
@@ -1615,7 +1686,11 @@ export const usePipAspectRatio = (oneToOneCall: boolean): [number, number] => {
1615
1686
  return [9, 16];
1616
1687
  }
1617
1688
  // default aspect ratio
1618
- return [16, 9];
1689
+ return Platform.select({
1690
+ ios: [9, 16],
1691
+ android: [16, 9],
1692
+ default: [16, 9],
1693
+ });
1619
1694
  }, [
1620
1695
  isHLSViewer,
1621
1696
  firstSSNodeId,
@@ -2096,7 +2171,7 @@ export const useFilteredParticipants = (filterText: string) => {
2096
2171
  const filteredList =
2097
2172
  Array.isArray(list) && formattedSearchText.length > 0
2098
2173
  ? list.filter((peer) =>
2099
- peer.name.toLowerCase().includes(formattedSearchText)
2174
+ peer.name?.toLowerCase().includes(formattedSearchText)
2100
2175
  )
2101
2176
  : list;
2102
2177
 
@@ -2670,9 +2745,7 @@ export const useSavePropsToStore = (
2670
2745
  }, [handleBackButton]);
2671
2746
 
2672
2747
  useEffect(() => {
2673
- if (Platform.OS === 'android') {
2674
- dispatch(setAutoEnterPipMode(autoEnterPipMode));
2675
- }
2748
+ dispatch(setAutoEnterPipMode(autoEnterPipMode));
2676
2749
  }, [autoEnterPipMode]);
2677
2750
  };
2678
2751
 
@@ -115,6 +115,8 @@ const SET_HLS_DESC_PANE_VISIBLE = 'SET_HLS_DESC_PANE_VISIBLE';
115
115
 
116
116
  const SET_HLS_FULL_SCREEN = 'SET_HLS_FULL_SCREEN';
117
117
 
118
+ const SET_SHOW_CLOSED_CAPTIONS = 'SET_SHOW_CLOSED_CAPTIONS';
119
+
118
120
  const SET_ANDROID_HLS_STREAM_PAUSED = 'SET_ANDROID_HLS_STREAM_PAUSED';
119
121
 
120
122
  const SET_SELECTED_VIRTUAL_BG = 'SET_SELECTED_VIRTUAL_BG';
@@ -174,6 +176,7 @@ export default {
174
176
  SET_ANDROID_HLS_STREAM_PAUSED,
175
177
  SET_SELECTED_VIRTUAL_BG,
176
178
  FILTER_OUT_BLOCKED_MSGS,
179
+ SET_SHOW_CLOSED_CAPTIONS,
177
180
  };
178
181
 
179
182
  export enum HmsStateActionTypes {
@@ -513,6 +513,11 @@ export const setSelectedVirtualBackground = (vb: string | null) => ({
513
513
  payload: { selectedVirtualBackground: vb },
514
514
  });
515
515
 
516
+ export const setShowClosedCaptions = (showClosedCaptions: boolean) => ({
517
+ type: actionTypes.SET_SHOW_CLOSED_CAPTIONS,
518
+ payload: { showClosedCaptions },
519
+ });
520
+
516
521
  /**
517
522
  * POLLS
518
523
  */
@@ -67,6 +67,7 @@ type IntialStateType = {
67
67
  hlsFullScreen: boolean;
68
68
  hlsStreamPaused_android: boolean;
69
69
  selectedVirtualBackground: string | null;
70
+ showClosedCaptions: boolean;
70
71
  };
71
72
 
72
73
  const INITIAL_STATE: IntialStateType = {
@@ -109,6 +110,7 @@ const INITIAL_STATE: IntialStateType = {
109
110
  hlsFullScreen: false,
110
111
  hlsStreamPaused_android: false,
111
112
  selectedVirtualBackground: null,
113
+ showClosedCaptions: false,
112
114
  };
113
115
 
114
116
  const appReducer = (
@@ -397,6 +399,12 @@ const appReducer = (
397
399
  selectedVirtualBackground: action.payload.selectedVirtualBackground,
398
400
  };
399
401
  }
402
+ case ActionTypes.SET_SHOW_CLOSED_CAPTIONS: {
403
+ return {
404
+ ...state,
405
+ showClosedCaptions: action.payload.showClosedCaptions,
406
+ };
407
+ }
400
408
  case HmsStateActionTypes.CLEAR_STATES:
401
409
  return INITIAL_STATE;
402
410
  default:
package/src/types.ts CHANGED
@@ -91,16 +91,21 @@ export type Notification =
91
91
  | {
92
92
  id: string;
93
93
  type: NotificationTypes;
94
- icon?: string;
94
+ icon?: string | React.ReactElement;
95
95
  message?: string;
96
96
  title: string;
97
97
  payload?: any;
98
98
  }
99
- | { id: string; type: NotificationTypes; icon?: string; peer: HMSPeer }
100
99
  | {
101
100
  id: string;
102
101
  type: NotificationTypes;
103
- icon?: string;
102
+ icon?: string | React.ReactElement;
103
+ peer: HMSPeer;
104
+ }
105
+ | {
106
+ id: string;
107
+ type: NotificationTypes;
108
+ icon?: string | React.ReactElement;
104
109
  exception: HMSException;
105
110
  };
106
111
 
@@ -60,6 +60,7 @@ export enum ModalTypes {
60
60
  MESSAGE_OPTIONS = 'messageOptions',
61
61
  POLLS_AND_QUIZZES = 'pollsAndQuizzes',
62
62
  VIRTUAL_BACKGROUND = 'virtualBackground',
63
+ CLOSED_CAPTIONS_CONTROL = 'closedCaptionsControl',
63
64
  DEFAULT = '',
64
65
  }
65
66