@100mslive/react-native-room-kit 1.1.5 → 1.1.7

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 (504) hide show
  1. package/lib/commonjs/Icons/CC/assets/cc-off-med.png +0 -0
  2. package/lib/commonjs/Icons/CC/assets/cc-off-med@2x.png +0 -0
  3. package/lib/commonjs/Icons/CC/assets/cc-off-med@3x.png +0 -0
  4. package/lib/commonjs/Icons/CC/assets/cc-on-med.png +0 -0
  5. package/lib/commonjs/Icons/CC/assets/cc-on-med@2x.png +0 -0
  6. package/lib/commonjs/Icons/CC/assets/cc-on-med@3x.png +0 -0
  7. package/lib/commonjs/Icons/CC/index.js +39 -0
  8. package/lib/commonjs/Icons/CC/index.js.map +1 -0
  9. package/lib/commonjs/Icons/Close/assets/close-med.png +0 -0
  10. package/lib/commonjs/Icons/Close/assets/close-med@2x.png +0 -0
  11. package/lib/commonjs/Icons/Close/assets/close-med@3x.png +0 -0
  12. package/lib/commonjs/Icons/Close/index.js +7 -2
  13. package/lib/commonjs/Icons/Close/index.js.map +1 -1
  14. package/lib/commonjs/Icons/Maximize/assets/maximize-med.png +0 -0
  15. package/lib/commonjs/Icons/Maximize/assets/maximize-med@2x.png +0 -0
  16. package/lib/commonjs/Icons/Maximize/assets/maximize-med@3x.png +0 -0
  17. package/lib/commonjs/Icons/Maximize/index.js +7 -2
  18. package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
  19. package/lib/commonjs/Icons/Minimize/assets/minimize-med.png +0 -0
  20. package/lib/commonjs/Icons/Minimize/assets/minimize-med@2x.png +0 -0
  21. package/lib/commonjs/Icons/Minimize/assets/minimize-med@3x.png +0 -0
  22. package/lib/commonjs/Icons/Minimize/index.js +7 -2
  23. package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
  24. package/lib/commonjs/Icons/Pause/assets/pause-med.png +0 -0
  25. package/lib/commonjs/Icons/Pause/assets/pause-med@2x.png +0 -0
  26. package/lib/commonjs/Icons/Pause/assets/pause-med@3x.png +0 -0
  27. package/lib/commonjs/Icons/Pause/index.js +35 -0
  28. package/lib/commonjs/Icons/Pause/index.js.map +1 -0
  29. package/lib/commonjs/Icons/Play/assets/play-med.png +0 -0
  30. package/lib/commonjs/Icons/Play/assets/play-med@2x.png +0 -0
  31. package/lib/commonjs/Icons/Play/assets/play-med@3x.png +0 -0
  32. package/lib/commonjs/Icons/Play/index.js +35 -0
  33. package/lib/commonjs/Icons/Play/index.js.map +1 -0
  34. package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
  35. package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
  36. package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
  37. package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
  38. package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
  39. package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
  40. package/lib/commonjs/Icons/SeekArrow/index.js +34 -0
  41. package/lib/commonjs/Icons/SeekArrow/index.js.map +1 -0
  42. package/lib/commonjs/Icons/index.js +44 -0
  43. package/lib/commonjs/Icons/index.js.map +1 -1
  44. package/lib/commonjs/components/AnimatedHeader.js +1 -11
  45. package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
  46. package/lib/commonjs/components/Chat/ChatBanner.js +1 -0
  47. package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
  48. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
  49. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  50. package/lib/commonjs/components/Chat/ChatList.js +4 -2
  51. package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
  52. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +2 -1
  53. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
  54. package/lib/commonjs/components/DisplayView.js +1 -9
  55. package/lib/commonjs/components/DisplayView.js.map +1 -1
  56. package/lib/commonjs/components/Footer.js +7 -44
  57. package/lib/commonjs/components/Footer.js.map +1 -1
  58. package/lib/commonjs/components/HLSAnimatedDescriptionPane.js +30 -0
  59. package/lib/commonjs/components/HLSAnimatedDescriptionPane.js.map +1 -0
  60. package/lib/commonjs/components/HLSChatFooterView.js +51 -0
  61. package/lib/commonjs/components/HLSChatFooterView.js.map +1 -0
  62. package/lib/commonjs/components/HLSChatHeaderView.js +130 -0
  63. package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -0
  64. package/lib/commonjs/components/HLSChatMessages.js +54 -0
  65. package/lib/commonjs/components/HLSChatMessages.js.map +1 -0
  66. package/lib/commonjs/components/HLSChatView.js +49 -0
  67. package/lib/commonjs/components/HLSChatView.js.map +1 -0
  68. package/lib/commonjs/components/HLSCloseMeetingControl.js +41 -0
  69. package/lib/commonjs/components/HLSCloseMeetingControl.js.map +1 -0
  70. package/lib/commonjs/components/HLSClosedCaptionControl.js +109 -0
  71. package/lib/commonjs/components/HLSClosedCaptionControl.js.map +1 -0
  72. package/lib/commonjs/components/HLSDescriptionPane.js +145 -0
  73. package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -0
  74. package/lib/commonjs/components/HLSDescriptionPaneHeader.js +70 -0
  75. package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -0
  76. package/lib/commonjs/components/HLSDistanceFromLive.js +56 -0
  77. package/lib/commonjs/components/HLSDistanceFromLive.js.map +1 -0
  78. package/lib/commonjs/components/HLSFooter.js +1 -1
  79. package/lib/commonjs/components/HLSFooter.js.map +1 -1
  80. package/lib/commonjs/components/HLSFullScreenControl.js +42 -0
  81. package/lib/commonjs/components/HLSFullScreenControl.js.map +1 -0
  82. package/lib/commonjs/components/HLSGoLiveControl.js +78 -0
  83. package/lib/commonjs/components/HLSGoLiveControl.js.map +1 -0
  84. package/lib/commonjs/components/HLSHandRaiseButton.js +38 -0
  85. package/lib/commonjs/components/HLSHandRaiseButton.js.map +1 -0
  86. package/lib/commonjs/components/HLSManageChatTextInput.js +90 -0
  87. package/lib/commonjs/components/HLSManageChatTextInput.js.map +1 -0
  88. package/lib/commonjs/components/HLSNotifications.js +32 -0
  89. package/lib/commonjs/components/HLSNotifications.js.map +1 -0
  90. package/lib/commonjs/components/HLSPlayPauseControl.js +62 -0
  91. package/lib/commonjs/components/HLSPlayPauseControl.js.map +1 -0
  92. package/lib/commonjs/components/HLSPlayer.js +193 -0
  93. package/lib/commonjs/components/HLSPlayer.js.map +1 -0
  94. package/lib/commonjs/components/HLSPlayerContainer.js +123 -0
  95. package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -0
  96. package/lib/commonjs/components/HLSPlayerControls.js +130 -0
  97. package/lib/commonjs/components/HLSPlayerControls.js.map +1 -0
  98. package/lib/commonjs/components/HLSRecordingStatusText.js +31 -0
  99. package/lib/commonjs/components/HLSRecordingStatusText.js.map +1 -0
  100. package/lib/commonjs/components/HLSRoomOptionsButton.js +25 -0
  101. package/lib/commonjs/components/HLSRoomOptionsButton.js.map +1 -0
  102. package/lib/commonjs/components/HLSSeekbackwardControl.js +67 -0
  103. package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -0
  104. package/lib/commonjs/components/HLSSeekbar.js +285 -0
  105. package/lib/commonjs/components/HLSSeekbar.js.map +1 -0
  106. package/lib/commonjs/components/HLSSeekforwardControl.js +71 -0
  107. package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -0
  108. package/lib/commonjs/components/HLSStreamStartedTime.js +69 -0
  109. package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -0
  110. package/lib/commonjs/components/HLSViewerScreenContent.js +61 -0
  111. package/lib/commonjs/components/HLSViewerScreenContent.js.map +1 -0
  112. package/lib/commonjs/components/HMSHLSMessage.js +19 -41
  113. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
  114. package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
  115. package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
  116. package/lib/commonjs/components/HMSHLSNotStarted.js +15 -7
  117. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  118. package/lib/commonjs/components/HMSKeyboardAvoidingView.js +5 -1
  119. package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
  120. package/lib/commonjs/components/HMSLiveViewerCount.js +2 -4
  121. package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
  122. package/lib/commonjs/components/HMSNotification.js +3 -2
  123. package/lib/commonjs/components/HMSNotification.js.map +1 -1
  124. package/lib/commonjs/components/HMSNotifications.js +3 -1
  125. package/lib/commonjs/components/HMSNotifications.js.map +1 -1
  126. package/lib/commonjs/components/HMSOverlayChatView.js +7 -4
  127. package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
  128. package/lib/commonjs/components/HMSOverlayMessageView.js +150 -0
  129. package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -0
  130. package/lib/commonjs/components/Meeting.js +3 -1
  131. package/lib/commonjs/components/Meeting.js.map +1 -1
  132. package/lib/commonjs/components/MeetingScreenContent.js +2 -9
  133. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  134. package/lib/commonjs/components/OverlayedViews.js +1 -1
  135. package/lib/commonjs/components/OverlayedViews.js.map +1 -1
  136. package/lib/commonjs/components/Participants/ParticipantsList.js +4 -4
  137. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  138. package/lib/commonjs/components/PressableIcon.js +1 -2
  139. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  140. package/lib/commonjs/hooks-util.js +156 -5
  141. package/lib/commonjs/hooks-util.js.map +1 -1
  142. package/lib/commonjs/redux/actionTypes.js +6 -0
  143. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  144. package/lib/commonjs/redux/actions/index.js +24 -3
  145. package/lib/commonjs/redux/actions/index.js.map +1 -1
  146. package/lib/commonjs/redux/reducers/appState.js +25 -1
  147. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  148. package/lib/module/Icons/CC/assets/cc-off-med.png +0 -0
  149. package/lib/module/Icons/CC/assets/cc-off-med@2x.png +0 -0
  150. package/lib/module/Icons/CC/assets/cc-off-med@3x.png +0 -0
  151. package/lib/module/Icons/CC/assets/cc-on-med.png +0 -0
  152. package/lib/module/Icons/CC/assets/cc-on-med@2x.png +0 -0
  153. package/lib/module/Icons/CC/assets/cc-on-med@3x.png +0 -0
  154. package/lib/module/Icons/CC/index.js +31 -0
  155. package/lib/module/Icons/CC/index.js.map +1 -0
  156. package/lib/module/Icons/Close/assets/close-med.png +0 -0
  157. package/lib/module/Icons/Close/assets/close-med@2x.png +0 -0
  158. package/lib/module/Icons/Close/assets/close-med@3x.png +0 -0
  159. package/lib/module/Icons/Close/index.js +7 -2
  160. package/lib/module/Icons/Close/index.js.map +1 -1
  161. package/lib/module/Icons/Maximize/assets/maximize-med.png +0 -0
  162. package/lib/module/Icons/Maximize/assets/maximize-med@2x.png +0 -0
  163. package/lib/module/Icons/Maximize/assets/maximize-med@3x.png +0 -0
  164. package/lib/module/Icons/Maximize/index.js +7 -2
  165. package/lib/module/Icons/Maximize/index.js.map +1 -1
  166. package/lib/module/Icons/Minimize/assets/minimize-med.png +0 -0
  167. package/lib/module/Icons/Minimize/assets/minimize-med@2x.png +0 -0
  168. package/lib/module/Icons/Minimize/assets/minimize-med@3x.png +0 -0
  169. package/lib/module/Icons/Minimize/index.js +7 -2
  170. package/lib/module/Icons/Minimize/index.js.map +1 -1
  171. package/lib/module/Icons/Pause/assets/pause-med.png +0 -0
  172. package/lib/module/Icons/Pause/assets/pause-med@2x.png +0 -0
  173. package/lib/module/Icons/Pause/assets/pause-med@3x.png +0 -0
  174. package/lib/module/Icons/Pause/index.js +27 -0
  175. package/lib/module/Icons/Pause/index.js.map +1 -0
  176. package/lib/module/Icons/Play/assets/play-med.png +0 -0
  177. package/lib/module/Icons/Play/assets/play-med@2x.png +0 -0
  178. package/lib/module/Icons/Play/assets/play-med@3x.png +0 -0
  179. package/lib/module/Icons/Play/index.js +27 -0
  180. package/lib/module/Icons/Play/index.js.map +1 -0
  181. package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
  182. package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
  183. package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
  184. package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
  185. package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
  186. package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
  187. package/lib/module/Icons/SeekArrow/index.js +26 -0
  188. package/lib/module/Icons/SeekArrow/index.js.map +1 -0
  189. package/lib/module/Icons/index.js +4 -0
  190. package/lib/module/Icons/index.js.map +1 -1
  191. package/lib/module/components/AnimatedHeader.js +1 -11
  192. package/lib/module/components/AnimatedHeader.js.map +1 -1
  193. package/lib/module/components/Chat/ChatBanner.js +1 -0
  194. package/lib/module/components/Chat/ChatBanner.js.map +1 -1
  195. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
  196. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  197. package/lib/module/components/Chat/ChatList.js +4 -2
  198. package/lib/module/components/Chat/ChatList.js.map +1 -1
  199. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -2
  200. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
  201. package/lib/module/components/DisplayView.js +3 -11
  202. package/lib/module/components/DisplayView.js.map +1 -1
  203. package/lib/module/components/Footer.js +9 -46
  204. package/lib/module/components/Footer.js.map +1 -1
  205. package/lib/module/components/HLSAnimatedDescriptionPane.js +21 -0
  206. package/lib/module/components/HLSAnimatedDescriptionPane.js.map +1 -0
  207. package/lib/module/components/HLSChatFooterView.js +42 -0
  208. package/lib/module/components/HLSChatFooterView.js.map +1 -0
  209. package/lib/module/components/HLSChatHeaderView.js +121 -0
  210. package/lib/module/components/HLSChatHeaderView.js.map +1 -0
  211. package/lib/module/components/HLSChatMessages.js +45 -0
  212. package/lib/module/components/HLSChatMessages.js.map +1 -0
  213. package/lib/module/components/HLSChatView.js +40 -0
  214. package/lib/module/components/HLSChatView.js.map +1 -0
  215. package/lib/module/components/HLSCloseMeetingControl.js +33 -0
  216. package/lib/module/components/HLSCloseMeetingControl.js.map +1 -0
  217. package/lib/module/components/HLSClosedCaptionControl.js +100 -0
  218. package/lib/module/components/HLSClosedCaptionControl.js.map +1 -0
  219. package/lib/module/components/HLSDescriptionPane.js +136 -0
  220. package/lib/module/components/HLSDescriptionPane.js.map +1 -0
  221. package/lib/module/components/HLSDescriptionPaneHeader.js +61 -0
  222. package/lib/module/components/HLSDescriptionPaneHeader.js.map +1 -0
  223. package/lib/module/components/HLSDistanceFromLive.js +48 -0
  224. package/lib/module/components/HLSDistanceFromLive.js.map +1 -0
  225. package/lib/module/components/HLSFooter.js +2 -2
  226. package/lib/module/components/HLSFooter.js.map +1 -1
  227. package/lib/module/components/HLSFullScreenControl.js +34 -0
  228. package/lib/module/components/HLSFullScreenControl.js.map +1 -0
  229. package/lib/module/components/HLSGoLiveControl.js +70 -0
  230. package/lib/module/components/HLSGoLiveControl.js.map +1 -0
  231. package/lib/module/components/HLSHandRaiseButton.js +29 -0
  232. package/lib/module/components/HLSHandRaiseButton.js.map +1 -0
  233. package/lib/module/components/HLSManageChatTextInput.js +81 -0
  234. package/lib/module/components/HLSManageChatTextInput.js.map +1 -0
  235. package/lib/module/components/HLSNotifications.js +24 -0
  236. package/lib/module/components/HLSNotifications.js.map +1 -0
  237. package/lib/module/components/HLSPlayPauseControl.js +54 -0
  238. package/lib/module/components/HLSPlayPauseControl.js.map +1 -0
  239. package/lib/module/components/HLSPlayer.js +185 -0
  240. package/lib/module/components/HLSPlayer.js.map +1 -0
  241. package/lib/module/components/HLSPlayerContainer.js +115 -0
  242. package/lib/module/components/HLSPlayerContainer.js.map +1 -0
  243. package/lib/module/components/HLSPlayerControls.js +120 -0
  244. package/lib/module/components/HLSPlayerControls.js.map +1 -0
  245. package/lib/module/components/HLSRecordingStatusText.js +22 -0
  246. package/lib/module/components/HLSRecordingStatusText.js.map +1 -0
  247. package/lib/module/components/HLSRoomOptionsButton.js +16 -0
  248. package/lib/module/components/HLSRoomOptionsButton.js.map +1 -0
  249. package/lib/module/components/HLSSeekbackwardControl.js +59 -0
  250. package/lib/module/components/HLSSeekbackwardControl.js.map +1 -0
  251. package/lib/module/components/HLSSeekbar.js +276 -0
  252. package/lib/module/components/HLSSeekbar.js.map +1 -0
  253. package/lib/module/components/HLSSeekforwardControl.js +63 -0
  254. package/lib/module/components/HLSSeekforwardControl.js.map +1 -0
  255. package/lib/module/components/HLSStreamStartedTime.js +60 -0
  256. package/lib/module/components/HLSStreamStartedTime.js.map +1 -0
  257. package/lib/module/components/HLSViewerScreenContent.js +53 -0
  258. package/lib/module/components/HLSViewerScreenContent.js.map +1 -0
  259. package/lib/module/components/HMSHLSMessage.js +19 -41
  260. package/lib/module/components/HMSHLSMessage.js.map +1 -1
  261. package/lib/module/components/HMSHLSMessageList.js +2 -2
  262. package/lib/module/components/HMSHLSMessageList.js.map +1 -1
  263. package/lib/module/components/HMSHLSNotStarted.js +15 -7
  264. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  265. package/lib/module/components/HMSKeyboardAvoidingView.js +5 -1
  266. package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
  267. package/lib/module/components/HMSLiveViewerCount.js +3 -5
  268. package/lib/module/components/HMSLiveViewerCount.js.map +1 -1
  269. package/lib/module/components/HMSNotification.js +4 -3
  270. package/lib/module/components/HMSNotification.js.map +1 -1
  271. package/lib/module/components/HMSNotifications.js +3 -1
  272. package/lib/module/components/HMSNotifications.js.map +1 -1
  273. package/lib/module/components/HMSOverlayChatView.js +5 -2
  274. package/lib/module/components/HMSOverlayChatView.js.map +1 -1
  275. package/lib/module/components/HMSOverlayMessageView.js +142 -0
  276. package/lib/module/components/HMSOverlayMessageView.js.map +1 -0
  277. package/lib/module/components/Meeting.js +4 -2
  278. package/lib/module/components/Meeting.js.map +1 -1
  279. package/lib/module/components/MeetingScreenContent.js +3 -10
  280. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  281. package/lib/module/components/OverlayedViews.js +2 -2
  282. package/lib/module/components/OverlayedViews.js.map +1 -1
  283. package/lib/module/components/Participants/ParticipantsList.js +4 -4
  284. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  285. package/lib/module/components/PressableIcon.js +1 -2
  286. package/lib/module/components/PressableIcon.js.map +1 -1
  287. package/lib/module/hooks-util.js +154 -7
  288. package/lib/module/hooks-util.js.map +1 -1
  289. package/lib/module/redux/actionTypes.js +6 -0
  290. package/lib/module/redux/actionTypes.js.map +1 -1
  291. package/lib/module/redux/actions/index.js +18 -0
  292. package/lib/module/redux/actions/index.js.map +1 -1
  293. package/lib/module/redux/reducers/appState.js +25 -1
  294. package/lib/module/redux/reducers/appState.js.map +1 -1
  295. package/lib/typescript/Icons/CC/index.d.ts +9 -0
  296. package/lib/typescript/Icons/CC/index.d.ts.map +1 -0
  297. package/lib/typescript/Icons/Close/index.d.ts +1 -0
  298. package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
  299. package/lib/typescript/Icons/Maximize/index.d.ts +1 -0
  300. package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -1
  301. package/lib/typescript/Icons/Minimize/index.d.ts +1 -0
  302. package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -1
  303. package/lib/typescript/Icons/Pause/index.d.ts +8 -0
  304. package/lib/typescript/Icons/Pause/index.d.ts.map +1 -0
  305. package/lib/typescript/Icons/Play/index.d.ts +8 -0
  306. package/lib/typescript/Icons/Play/index.d.ts.map +1 -0
  307. package/lib/typescript/Icons/SeekArrow/index.d.ts +8 -0
  308. package/lib/typescript/Icons/SeekArrow/index.d.ts.map +1 -0
  309. package/lib/typescript/Icons/index.d.ts +4 -0
  310. package/lib/typescript/Icons/index.d.ts.map +1 -1
  311. package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
  312. package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +4 -1
  313. package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -1
  314. package/lib/typescript/components/Chat/ChatList.d.ts +4 -1
  315. package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
  316. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
  317. package/lib/typescript/components/CustomButton.d.ts +5 -5
  318. package/lib/typescript/components/CustomButton.d.ts.map +1 -1
  319. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  320. package/lib/typescript/components/Footer.d.ts.map +1 -1
  321. package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts +10 -0
  322. package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts.map +1 -0
  323. package/lib/typescript/components/HLSChatFooterView.d.ts +3 -0
  324. package/lib/typescript/components/HLSChatFooterView.d.ts.map +1 -0
  325. package/lib/typescript/components/HLSChatHeaderView.d.ts +7 -0
  326. package/lib/typescript/components/HLSChatHeaderView.d.ts.map +1 -0
  327. package/lib/typescript/components/HLSChatMessages.d.ts +3 -0
  328. package/lib/typescript/components/HLSChatMessages.d.ts.map +1 -0
  329. package/lib/typescript/components/HLSChatView.d.ts +3 -0
  330. package/lib/typescript/components/HLSChatView.d.ts.map +1 -0
  331. package/lib/typescript/components/HLSCloseMeetingControl.d.ts +8 -0
  332. package/lib/typescript/components/HLSCloseMeetingControl.d.ts.map +1 -0
  333. package/lib/typescript/components/HLSClosedCaptionControl.d.ts +10 -0
  334. package/lib/typescript/components/HLSClosedCaptionControl.d.ts.map +1 -0
  335. package/lib/typescript/components/HLSDescriptionPane.d.ts +6 -0
  336. package/lib/typescript/components/HLSDescriptionPane.d.ts.map +1 -0
  337. package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts +9 -0
  338. package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts.map +1 -0
  339. package/lib/typescript/components/HLSDistanceFromLive.d.ts +8 -0
  340. package/lib/typescript/components/HLSDistanceFromLive.d.ts.map +1 -0
  341. package/lib/typescript/components/HLSFullScreenControl.d.ts +8 -0
  342. package/lib/typescript/components/HLSFullScreenControl.d.ts.map +1 -0
  343. package/lib/typescript/components/HLSGoLiveControl.d.ts +10 -0
  344. package/lib/typescript/components/HLSGoLiveControl.d.ts.map +1 -0
  345. package/lib/typescript/components/HLSHandRaiseButton.d.ts +3 -0
  346. package/lib/typescript/components/HLSHandRaiseButton.d.ts.map +1 -0
  347. package/lib/typescript/components/HLSManageChatTextInput.d.ts +3 -0
  348. package/lib/typescript/components/HLSManageChatTextInput.d.ts.map +1 -0
  349. package/lib/typescript/components/HLSNotifications.d.ts +3 -0
  350. package/lib/typescript/components/HLSNotifications.d.ts.map +1 -0
  351. package/lib/typescript/components/HLSPlayPauseControl.d.ts +8 -0
  352. package/lib/typescript/components/HLSPlayPauseControl.d.ts.map +1 -0
  353. package/lib/typescript/components/HLSPlayer.d.ts +6 -0
  354. package/lib/typescript/components/HLSPlayer.d.ts.map +1 -0
  355. package/lib/typescript/components/HLSPlayerContainer.d.ts +4 -0
  356. package/lib/typescript/components/HLSPlayerContainer.d.ts.map +1 -0
  357. package/lib/typescript/components/HLSPlayerControls.d.ts +14 -0
  358. package/lib/typescript/components/HLSPlayerControls.d.ts.map +1 -0
  359. package/lib/typescript/components/HLSRecordingStatusText.d.ts +9 -0
  360. package/lib/typescript/components/HLSRecordingStatusText.d.ts.map +1 -0
  361. package/lib/typescript/components/HLSRoomOptionsButton.d.ts +3 -0
  362. package/lib/typescript/components/HLSRoomOptionsButton.d.ts.map +1 -0
  363. package/lib/typescript/components/HLSSeekbackwardControl.d.ts +8 -0
  364. package/lib/typescript/components/HLSSeekbackwardControl.d.ts.map +1 -0
  365. package/lib/typescript/components/HLSSeekbar.d.ts +66 -0
  366. package/lib/typescript/components/HLSSeekbar.d.ts.map +1 -0
  367. package/lib/typescript/components/HLSSeekforwardControl.d.ts +8 -0
  368. package/lib/typescript/components/HLSSeekforwardControl.d.ts.map +1 -0
  369. package/lib/typescript/components/HLSStreamStartedTime.d.ts +6 -0
  370. package/lib/typescript/components/HLSStreamStartedTime.d.ts.map +1 -0
  371. package/lib/typescript/components/HLSViewerScreenContent.d.ts +6 -0
  372. package/lib/typescript/components/HLSViewerScreenContent.d.ts.map +1 -0
  373. package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -1
  374. package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
  375. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -0
  376. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
  377. package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -1
  378. package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
  379. package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
  380. package/lib/typescript/components/HMSOverlayChatView.d.ts +2 -2
  381. package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
  382. package/lib/typescript/components/HMSOverlayMessageView.d.ts +8 -0
  383. package/lib/typescript/components/HMSOverlayMessageView.d.ts.map +1 -0
  384. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  385. package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
  386. package/lib/typescript/components/Modals.d.ts +3 -3
  387. package/lib/typescript/components/Modals.d.ts.map +1 -1
  388. package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
  389. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  390. package/lib/typescript/components/Preview.d.ts.map +1 -1
  391. package/lib/typescript/hooks-util.d.ts +32 -8
  392. package/lib/typescript/hooks-util.d.ts.map +1 -1
  393. package/lib/typescript/redux/actionTypes.d.ts +3 -0
  394. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  395. package/lib/typescript/redux/actions/index.d.ts +18 -0
  396. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  397. package/lib/typescript/redux/index.d.ts +19 -16
  398. package/lib/typescript/redux/index.d.ts.map +1 -1
  399. package/lib/typescript/redux/reducers/appState.d.ts +3 -0
  400. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  401. package/lib/typescript/redux/reducers/index.d.ts +19 -16
  402. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  403. package/package.json +3 -3
  404. package/src/Icons/CC/assets/cc-off-med.png +0 -0
  405. package/src/Icons/CC/assets/cc-off-med@2x.png +0 -0
  406. package/src/Icons/CC/assets/cc-off-med@3x.png +0 -0
  407. package/src/Icons/CC/assets/cc-on-med.png +0 -0
  408. package/src/Icons/CC/assets/cc-on-med@2x.png +0 -0
  409. package/src/Icons/CC/assets/cc-on-med@3x.png +0 -0
  410. package/src/Icons/CC/index.tsx +51 -0
  411. package/src/Icons/Close/assets/close-med.png +0 -0
  412. package/src/Icons/Close/assets/close-med@2x.png +0 -0
  413. package/src/Icons/Close/assets/close-med@3x.png +0 -0
  414. package/src/Icons/Close/index.tsx +19 -3
  415. package/src/Icons/Maximize/assets/maximize-med.png +0 -0
  416. package/src/Icons/Maximize/assets/maximize-med@2x.png +0 -0
  417. package/src/Icons/Maximize/assets/maximize-med@3x.png +0 -0
  418. package/src/Icons/Maximize/index.tsx +19 -3
  419. package/src/Icons/Minimize/assets/minimize-med.png +0 -0
  420. package/src/Icons/Minimize/assets/minimize-med@2x.png +0 -0
  421. package/src/Icons/Minimize/assets/minimize-med@3x.png +0 -0
  422. package/src/Icons/Minimize/index.tsx +19 -3
  423. package/src/Icons/Pause/assets/pause-med.png +0 -0
  424. package/src/Icons/Pause/assets/pause-med@2x.png +0 -0
  425. package/src/Icons/Pause/assets/pause-med@3x.png +0 -0
  426. package/src/Icons/Pause/index.tsx +36 -0
  427. package/src/Icons/Play/assets/play-med.png +0 -0
  428. package/src/Icons/Play/assets/play-med@2x.png +0 -0
  429. package/src/Icons/Play/assets/play-med@3x.png +0 -0
  430. package/src/Icons/Play/index.tsx +36 -0
  431. package/src/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
  432. package/src/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
  433. package/src/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
  434. package/src/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
  435. package/src/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
  436. package/src/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
  437. package/src/Icons/SeekArrow/index.tsx +40 -0
  438. package/src/Icons/index.ts +4 -0
  439. package/src/components/AnimatedHeader.tsx +1 -9
  440. package/src/components/Chat/ChatBanner.tsx +1 -0
  441. package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +16 -8
  442. package/src/components/Chat/ChatList.tsx +4 -1
  443. package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +6 -1
  444. package/src/components/DisplayView.tsx +9 -23
  445. package/src/components/Footer.tsx +8 -77
  446. package/src/components/HLSAnimatedDescriptionPane.tsx +36 -0
  447. package/src/components/HLSChatFooterView.tsx +53 -0
  448. package/src/components/HLSChatHeaderView.tsx +165 -0
  449. package/src/components/HLSChatMessages.tsx +60 -0
  450. package/src/components/HLSChatView.tsx +55 -0
  451. package/src/components/HLSCloseMeetingControl.tsx +39 -0
  452. package/src/components/HLSClosedCaptionControl.tsx +140 -0
  453. package/src/components/HLSDescriptionPane.tsx +168 -0
  454. package/src/components/HLSDescriptionPaneHeader.tsx +78 -0
  455. package/src/components/HLSDistanceFromLive.tsx +69 -0
  456. package/src/components/HLSFooter.tsx +2 -2
  457. package/src/components/HLSFullScreenControl.tsx +46 -0
  458. package/src/components/HLSGoLiveControl.tsx +104 -0
  459. package/src/components/HLSHandRaiseButton.tsx +41 -0
  460. package/src/components/HLSManageChatTextInput.tsx +98 -0
  461. package/src/components/HLSNotifications.tsx +33 -0
  462. package/src/components/HLSPlayPauseControl.tsx +69 -0
  463. package/src/components/HLSPlayer.tsx +264 -0
  464. package/src/components/HLSPlayerContainer.tsx +134 -0
  465. package/src/components/HLSPlayerControls.tsx +180 -0
  466. package/src/components/HLSRecordingStatusText.tsx +50 -0
  467. package/src/components/HLSRoomOptionsButton.tsx +19 -0
  468. package/src/components/HLSSeekbackwardControl.tsx +88 -0
  469. package/src/components/HLSSeekbar.tsx +381 -0
  470. package/src/components/HLSSeekforwardControl.tsx +97 -0
  471. package/src/components/HLSStreamStartedTime.tsx +79 -0
  472. package/src/components/HLSViewerScreenContent.tsx +96 -0
  473. package/src/components/HMSHLSMessage.tsx +32 -49
  474. package/src/components/HMSHLSMessageList.tsx +2 -2
  475. package/src/components/HMSHLSNotStarted.tsx +18 -7
  476. package/src/components/HMSKeyboardAvoidingView.tsx +16 -6
  477. package/src/components/HMSLiveViewerCount.tsx +2 -8
  478. package/src/components/HMSNotification.tsx +20 -14
  479. package/src/components/HMSNotifications.tsx +3 -1
  480. package/src/components/HMSOverlayChatView.tsx +10 -3
  481. package/src/components/HMSOverlayMessageView.tsx +189 -0
  482. package/src/components/Meeting.tsx +9 -1
  483. package/src/components/MeetingScreenContent.tsx +3 -7
  484. package/src/components/OverlayedViews.tsx +2 -2
  485. package/src/components/Participants/ParticipantsList.tsx +12 -10
  486. package/src/components/PressableIcon.tsx +1 -3
  487. package/src/hooks-util.ts +223 -6
  488. package/src/redux/actionTypes.ts +9 -0
  489. package/src/redux/actions/index.ts +15 -0
  490. package/src/redux/reducers/appState.ts +24 -0
  491. package/lib/commonjs/components/CustomHLSPlayerControls.js +0 -80
  492. package/lib/commonjs/components/CustomHLSPlayerControls.js.map +0 -1
  493. package/lib/commonjs/components/HLSView.js +0 -195
  494. package/lib/commonjs/components/HLSView.js.map +0 -1
  495. package/lib/module/components/CustomHLSPlayerControls.js +0 -72
  496. package/lib/module/components/CustomHLSPlayerControls.js.map +0 -1
  497. package/lib/module/components/HLSView.js +0 -186
  498. package/lib/module/components/HLSView.js.map +0 -1
  499. package/lib/typescript/components/CustomHLSPlayerControls.d.ts +0 -7
  500. package/lib/typescript/components/CustomHLSPlayerControls.d.ts.map +0 -1
  501. package/lib/typescript/components/HLSView.d.ts +0 -4
  502. package/lib/typescript/components/HLSView.d.ts.map +0 -1
  503. package/src/components/CustomHLSPlayerControls.tsx +0 -92
  504. package/src/components/HLSView.tsx +0 -251
@@ -31,7 +31,7 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
31
31
  const fetchedInitialDataRef = React.useRef(false);
32
32
  const hmsInstance = useHMSInstance();
33
33
 
34
- // Currect is current selected group and off-stage gorup
34
+ // Current is current selected group and off-stage group
35
35
  const isOffStageGroup = useHMSLayoutConfig((layoutConfig) => {
36
36
  const offStageRoles =
37
37
  layoutConfig?.screens?.conferencing?.default?.elements?.on_stage_exp
@@ -39,12 +39,12 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
39
39
  return offStageRoles ? offStageRoles.includes(selectedGroupId) : false;
40
40
  });
41
41
 
42
- // Getting initial data for the selected group Id
43
- const dataForGroupId = useSelector(
44
- (state: RootState) => {
45
- return selectedGroupId === 'hand-raised' ? state.hmsStates.groupedParticipants : state.hmsStates.groupedParticipants[selectedGroupId]
46
- }
47
- );
42
+ // Getting initial data for the selected group ID
43
+ const dataForGroupId = useSelector((state: RootState) => {
44
+ return selectedGroupId === 'hand-raised'
45
+ ? state.hmsStates.groupedParticipants
46
+ : state.hmsStates.groupedParticipants[selectedGroupId];
47
+ });
48
48
 
49
49
  const finalDataForGroupId = React.useMemo(() => {
50
50
  if (Array.isArray(dataForGroupId)) {
@@ -52,7 +52,9 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
52
52
  }
53
53
 
54
54
  if (dataForGroupId && selectedGroupId === 'hand-raised') {
55
- return Object.values(dataForGroupId).flat().filter(peer => peer.isHandRaised);
55
+ return Object.values(dataForGroupId)
56
+ .flat()
57
+ .filter((peer) => peer.isHandRaised);
56
58
  }
57
59
 
58
60
  return null;
@@ -119,7 +121,7 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
119
121
 
120
122
  const filteredSearchText = searchText.trim().toLowerCase();
121
123
 
122
- //#region Flaslist props
124
+ //#region FlashList props
123
125
  const data = React.useMemo(() => {
124
126
  return (isOffStageGroup ? offStageData : dataWithHeader).filter((item) =>
125
127
  'id' in item ? true : item.name.toLowerCase().includes(filteredSearchText)
@@ -186,7 +188,7 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
186
188
  });
187
189
  }
188
190
  }, [loading, peerListIterator]);
189
- //#endregion Flaslist props
191
+ //#endregion FlashList props
190
192
 
191
193
  const searchTextExists = searchText.length > 0;
192
194
 
@@ -4,7 +4,6 @@ import type { TouchableOpacityProps } from 'react-native';
4
4
  import { GestureDetector, Gesture } from 'react-native-gesture-handler';
5
5
 
6
6
  import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
7
- import { hexToRgbA } from '../utils/theme';
8
7
 
9
8
  interface PressableIconProps extends Omit<TouchableOpacityProps, 'children'> {
10
9
  children: Pick<TouchableOpacityProps, 'children'>;
@@ -27,8 +26,7 @@ export const PressableIcon: React.FC<PressableIconProps> = ({
27
26
  (theme) => ({
28
27
  pressable: {
29
28
  backgroundColor: isHLSViewer
30
- ? theme.palette.background_dim &&
31
- hexToRgbA(theme.palette.background_dim, 0.64)
29
+ ? theme.palette.surface_default
32
30
  : undefined,
33
31
  },
34
32
  border: {
package/src/hooks-util.ts CHANGED
@@ -24,10 +24,13 @@ import {
24
24
  WindowController,
25
25
  useHMSHLSPlayerCue,
26
26
  HMSPollUpdateType,
27
+ useHMSHLSPlayerPlaybackState,
28
+ HMSHLSPlayerPlaybackState,
27
29
  } from '@100mslive/react-native-hms';
28
30
  import type { Chat as ChatConfig } from '@100mslive/types-prebuilt/elements/chat';
29
31
  import { SoftInputModes } from '@100mslive/react-native-hms';
30
32
  import type {
33
+ HMSHLSPlayer,
31
34
  HMSPIPConfig,
32
35
  HMSRole,
33
36
  HMSSessionStore,
@@ -93,6 +96,7 @@ import {
93
96
  saveUserData,
94
97
  setActiveChatBottomSheetTab,
95
98
  setActiveSpeakers,
99
+ setAndroidHLSStreamPaused,
96
100
  setAutoEnterPipMode,
97
101
  setChatPeerBlacklist,
98
102
  setChatState,
@@ -155,7 +159,16 @@ import { getRoomLayout } from './modules/HMSManager';
155
159
  import { DEFAULT_THEME, DEFAULT_TYPOGRAPHY } from './utils/theme';
156
160
  import { NotificationTypes } from './types';
157
161
  import { KeyboardState, useSharedValue } from 'react-native-reanimated';
158
- import { useHMSActions } from './hooks-sdk';
162
+ import {
163
+ useCanPublishAudio,
164
+ useCanPublishScreen,
165
+ useCanPublishVideo,
166
+ useHMSActions,
167
+ } from './hooks-sdk';
168
+ import {
169
+ useSafeAreaFrame,
170
+ useSafeAreaInsets,
171
+ } from 'react-native-safe-area-context';
159
172
 
160
173
  export const useHMSListeners = (
161
174
  setPeerTrackNodes: React.Dispatch<React.SetStateAction<PeerTrackNode[]>>
@@ -1033,7 +1046,7 @@ export const useHMSRoleChangeRequest = (
1033
1046
  type SessionStoreListeners = Array<{ remove: () => void }>;
1034
1047
 
1035
1048
  export const useHMSSessionStoreListeners = (
1036
- gridViewRef: React.MutableRefObject<GridViewRefAttrs | null>
1049
+ gridViewRef?: React.MutableRefObject<GridViewRefAttrs | null>
1037
1050
  ) => {
1038
1051
  const store = useStore<RootState>();
1039
1052
  const dispatch = useDispatch();
@@ -1054,7 +1067,7 @@ export const useHMSSessionStoreListeners = (
1054
1067
  // set value to the state to rerender the component to reflect changes
1055
1068
  dispatch(saveUserData({ spotlightTrackId: id }));
1056
1069
  // Scroll to start of the list
1057
- gridViewRef.current
1070
+ gridViewRef?.current
1058
1071
  ?.getRegularTilesFlatlistRef()
1059
1072
  .current?.scrollToOffset({ animated: true, offset: 0 });
1060
1073
  }
@@ -1831,6 +1844,7 @@ export const useHMSConfig = () => {
1831
1844
  };
1832
1845
 
1833
1846
  export const useShowChatAndParticipants = () => {
1847
+ const isHLSViewer = useIsHLSViewer();
1834
1848
  const dispatch = useDispatch();
1835
1849
  const { modalVisibleType, handleModalVisibleType: setModalVisible } =
1836
1850
  useModalType();
@@ -1839,7 +1853,8 @@ export const useShowChatAndParticipants = () => {
1839
1853
  (chatConfig) => chatConfig?.is_overlay
1840
1854
  );
1841
1855
  const canShowChat = useHMSConferencingScreenConfig(
1842
- (conferencingScreenConfig) => !!conferencingScreenConfig?.elements?.chat
1856
+ (conferencingScreenConfig) =>
1857
+ !!conferencingScreenConfig?.elements?.chat && !isHLSViewer
1843
1858
  );
1844
1859
  const canShowParticipants = useHMSConferencingScreenConfig(
1845
1860
  (conferencingScreenConfig) =>
@@ -2551,15 +2566,16 @@ export const useBackButtonPress = () => {
2551
2566
  };
2552
2567
 
2553
2568
  export const useLandscapeImmersiveMode = () => {
2569
+ const isHLSViewer = useIsHLSViewer();
2554
2570
  const isLandscapeOrientation = useIsLandscapeOrientation();
2555
2571
 
2556
2572
  useEffect(() => {
2557
- if (isLandscapeOrientation) {
2573
+ if (!isHLSViewer && isLandscapeOrientation) {
2558
2574
  WindowController.hideSystemBars();
2559
2575
 
2560
2576
  return WindowController.showSystemBars;
2561
2577
  }
2562
- }, [isLandscapeOrientation]);
2578
+ }, [isHLSViewer, isLandscapeOrientation]);
2563
2579
  };
2564
2580
 
2565
2581
  export const useHLSCuedPolls = () => {
@@ -3034,3 +3050,204 @@ export const useAllowBlockingPeerFromChat = () => {
3034
3050
  (config) => config?.real_time_controls?.can_block_user ?? false
3035
3051
  );
3036
3052
  };
3053
+
3054
+ export const useCanShowRoomOptionsButton = () => {
3055
+ const canPublishAudio = useCanPublishAudio();
3056
+ const canPublishVideo = useCanPublishVideo();
3057
+ const canPublishScreen = useCanPublishScreen();
3058
+
3059
+ const isViewer = !(canPublishAudio || canPublishVideo || canPublishScreen);
3060
+
3061
+ const editUsernameDisabled = useSelector(
3062
+ (state: RootState) => state.app.editUsernameDisabled
3063
+ );
3064
+
3065
+ const [isNoiseCancellationAvailable, setIsNoiseCancellationAvailable] =
3066
+ useState(false);
3067
+ const noiseCancellationPlugin = useSelector(
3068
+ (state: RootState) => state.hmsStates.noiseCancellationPlugin
3069
+ );
3070
+ useEffect(() => {
3071
+ if (noiseCancellationPlugin) {
3072
+ let mounted = true;
3073
+
3074
+ noiseCancellationPlugin
3075
+ .isNoiseCancellationAvailable()
3076
+ .then((isAvailable) => {
3077
+ if (mounted) {
3078
+ setIsNoiseCancellationAvailable(isAvailable);
3079
+ }
3080
+ });
3081
+
3082
+ return () => {
3083
+ mounted = false;
3084
+ };
3085
+ }
3086
+ }, [noiseCancellationPlugin]);
3087
+
3088
+ const canShowBRB = useHMSLayoutConfig(
3089
+ (layoutConfig) =>
3090
+ !!layoutConfig?.screens?.conferencing?.default?.elements?.brb
3091
+ );
3092
+
3093
+ const canStartRecording = useSelector(
3094
+ (state: RootState) =>
3095
+ !!state.hmsStates.localPeer?.role?.permissions?.browserRecording
3096
+ );
3097
+
3098
+ const canReadOrWritePoll = useSelector((state: RootState) => {
3099
+ const permissions = state.hmsStates.localPeer?.role?.permissions;
3100
+ return permissions?.pollRead || permissions?.pollWrite;
3101
+ });
3102
+
3103
+ const { canShowParticipants } = useShowChatAndParticipants();
3104
+
3105
+ const canEditUsernameFromRoomModal = isViewer && !editUsernameDisabled;
3106
+
3107
+ const canShowOptions =
3108
+ canShowParticipants ||
3109
+ canPublishScreen ||
3110
+ canShowBRB ||
3111
+ canStartRecording ||
3112
+ canEditUsernameFromRoomModal ||
3113
+ canReadOrWritePoll ||
3114
+ isNoiseCancellationAvailable;
3115
+
3116
+ return canShowOptions;
3117
+ };
3118
+
3119
+ export const useHLSViewsConstraints = () => {
3120
+ const hlsFullScreen = useSelector(
3121
+ (state: RootState) => state.app.hlsFullScreen
3122
+ );
3123
+ const isLandscapeOrientation = useIsLandscapeOrientation();
3124
+ const { width: safeAreaWidthFrame, height: safeAreaHeightFrame } =
3125
+ useSafeAreaFrame();
3126
+ const {
3127
+ top: topInset,
3128
+ bottom: bottomInset,
3129
+ left: leftInset,
3130
+ right: rightInset,
3131
+ } = useSafeAreaInsets();
3132
+
3133
+ const playerWrapperConstraints = hlsFullScreen
3134
+ ? {
3135
+ width: safeAreaWidthFrame - leftInset - rightInset,
3136
+ height: isLandscapeOrientation
3137
+ ? safeAreaHeightFrame
3138
+ : safeAreaHeightFrame - topInset - bottomInset,
3139
+ }
3140
+ : {
3141
+ width: isLandscapeOrientation
3142
+ ? (safeAreaWidthFrame - leftInset - rightInset) * 0.6
3143
+ : safeAreaWidthFrame,
3144
+ height: isLandscapeOrientation
3145
+ ? safeAreaHeightFrame
3146
+ : (safeAreaWidthFrame * 9) / 16,
3147
+ };
3148
+
3149
+ const chatWrapperConstraints = {
3150
+ width: isLandscapeOrientation
3151
+ ? safeAreaWidthFrame - playerWrapperConstraints.width - leftInset
3152
+ : playerWrapperConstraints.width,
3153
+ height: isLandscapeOrientation
3154
+ ? playerWrapperConstraints.height
3155
+ : safeAreaHeightFrame - playerWrapperConstraints.height - topInset,
3156
+ };
3157
+
3158
+ const descriptionPaneConstraints = chatWrapperConstraints;
3159
+
3160
+ return {
3161
+ playerWrapperConstraints,
3162
+ chatWrapperConstraints,
3163
+ descriptionPaneConstraints,
3164
+ };
3165
+ };
3166
+
3167
+ export const useHLSPlayerConstraints = () => {
3168
+ const hlsFullScreen = useSelector(
3169
+ (state: RootState) => state.app.hlsFullScreen
3170
+ );
3171
+ const isLandscapeOrientation = useIsLandscapeOrientation();
3172
+
3173
+ const resolution = useHMSHLSPlayerResolution();
3174
+
3175
+ const { playerWrapperConstraints } = useHLSViewsConstraints();
3176
+
3177
+ const wrapperWidth = playerWrapperConstraints.width;
3178
+ const wrapperHeight = playerWrapperConstraints.height;
3179
+
3180
+ if (!resolution) {
3181
+ return {
3182
+ width: wrapperWidth,
3183
+ height: wrapperHeight,
3184
+ };
3185
+ }
3186
+
3187
+ const sr = resolution.width / resolution.height; // stream width/height ratio
3188
+ const wr = wrapperWidth / wrapperHeight; // Wrapper width/height ratio
3189
+
3190
+ /**
3191
+ * Handling Landscape Orientation for both Full and Normal screen
3192
+ */
3193
+ if (isLandscapeOrientation) {
3194
+ return sr > wr
3195
+ ? {
3196
+ width: wrapperWidth,
3197
+ height: wrapperWidth / sr,
3198
+ }
3199
+ : {
3200
+ width: sr * wrapperHeight,
3201
+ height: wrapperHeight,
3202
+ };
3203
+ }
3204
+
3205
+ /**
3206
+ * Handling Portrait Orientation
3207
+ */
3208
+ if (hlsFullScreen) {
3209
+ return {
3210
+ width: sr > wr ? wrapperWidth : wrapperHeight * sr,
3211
+ height: sr > wr ? wrapperWidth / sr : wrapperHeight,
3212
+ };
3213
+ }
3214
+
3215
+ return {
3216
+ width: wrapperHeight * sr,
3217
+ height: wrapperHeight,
3218
+ };
3219
+ };
3220
+
3221
+ export const useHLSStreamResumePause = (
3222
+ playerRef: React.RefObject<React.ComponentRef<typeof HMSHLSPlayer>>
3223
+ ) => {
3224
+ const dispatch = useDispatch();
3225
+
3226
+ const isPaused = Platform.select({
3227
+ android: useSelector(
3228
+ (state: RootState) => state.app.hlsStreamPaused_android
3229
+ ),
3230
+ ios: useHMSHLSPlayerPlaybackState() === HMSHLSPlayerPlaybackState.PAUSED,
3231
+ default: false,
3232
+ });
3233
+
3234
+ const resumeStream = useCallback(() => {
3235
+ playerRef.current?.resume();
3236
+ if (Platform.OS === 'android') {
3237
+ dispatch(setAndroidHLSStreamPaused(false));
3238
+ }
3239
+ }, []);
3240
+
3241
+ const pauseStream = useCallback(() => {
3242
+ playerRef.current?.pause();
3243
+ if (Platform.OS === 'android') {
3244
+ dispatch(setAndroidHLSStreamPaused(true));
3245
+ }
3246
+ }, []);
3247
+
3248
+ return {
3249
+ isPaused,
3250
+ resumeStream,
3251
+ pauseStream,
3252
+ };
3253
+ };
@@ -109,6 +109,12 @@ const SET_INITIAL_ROLE = 'SET_INITIAL_ROLE';
109
109
 
110
110
  const SET_CHAT_PEER_BLACKLIST = 'SET_CHAT_PEER_BLACKLIST';
111
111
 
112
+ const SET_HLS_DESC_PANE_VISIBLE = 'SET_HLS_DESC_PANE_VISIBLE';
113
+
114
+ const SET_HLS_FULL_SCREEN = 'SET_HLS_FULL_SCREEN';
115
+
116
+ const SET_ANDROID_HLS_STREAM_PAUSED = 'SET_ANDROID_HLS_STREAM_PAUSED';
117
+
112
118
  const FILTER_OUT_BLOCKED_MSGS = 'FILTER_OUT_BLOCKED_MSGS';
113
119
 
114
120
  export default {
@@ -158,6 +164,9 @@ export default {
158
164
  SET_SELECTED_MESSAGE_FOR_ACTION,
159
165
  SET_INITIAL_ROLE,
160
166
  SET_CHAT_PEER_BLACKLIST,
167
+ SET_HLS_DESC_PANE_VISIBLE,
168
+ SET_HLS_FULL_SCREEN,
169
+ SET_ANDROID_HLS_STREAM_PAUSED,
161
170
  FILTER_OUT_BLOCKED_MSGS,
162
171
  };
163
172
 
@@ -476,6 +476,21 @@ export const filterOutMsgsFromBlockedPeers = (chatPeerBlacklist: string[]) => ({
476
476
  payload: chatPeerBlacklist,
477
477
  });
478
478
 
479
+ export const setHlsDescriptionPaneVisible = (visible: boolean) => ({
480
+ type: actionTypes.SET_HLS_DESC_PANE_VISIBLE,
481
+ payload: { visible },
482
+ });
483
+
484
+ export const setHlsFullScreen = (fullScreen: boolean) => ({
485
+ type: actionTypes.SET_HLS_FULL_SCREEN,
486
+ payload: { fullScreen },
487
+ });
488
+
489
+ export const setAndroidHLSStreamPaused = (paused: boolean) => ({
490
+ type: actionTypes.SET_ANDROID_HLS_STREAM_PAUSED,
491
+ payload: { hlsStreamPaused_android: paused },
492
+ });
493
+
479
494
  /**
480
495
  * POLLS
481
496
  */
@@ -62,6 +62,9 @@ type IntialStateType = {
62
62
  selectedMessageForAction: null | HMSMessage;
63
63
  initialRole: HMSRole | null;
64
64
  chatPeerBlacklist: string[]; // list of userIds
65
+ hlsDescriptionPaneVisible: boolean;
66
+ hlsFullScreen: boolean;
67
+ hlsStreamPaused_android: boolean;
65
68
  };
66
69
 
67
70
  const INITIAL_STATE: IntialStateType = {
@@ -99,6 +102,9 @@ const INITIAL_STATE: IntialStateType = {
99
102
  selectedMessageForAction: null,
100
103
  initialRole: null,
101
104
  chatPeerBlacklist: [],
105
+ hlsDescriptionPaneVisible: false,
106
+ hlsFullScreen: false,
107
+ hlsStreamPaused_android: false,
102
108
  };
103
109
 
104
110
  const appReducer = (
@@ -357,6 +363,24 @@ const appReducer = (
357
363
  action.payload.chatPeerBlacklist ?? INITIAL_STATE.chatPeerBlacklist,
358
364
  };
359
365
  }
366
+ case ActionTypes.SET_HLS_DESC_PANE_VISIBLE: {
367
+ return {
368
+ ...state,
369
+ hlsDescriptionPaneVisible: action.payload.visible,
370
+ };
371
+ }
372
+ case ActionTypes.SET_HLS_FULL_SCREEN: {
373
+ return {
374
+ ...state,
375
+ hlsFullScreen: action.payload.fullScreen,
376
+ };
377
+ }
378
+ case ActionTypes.SET_ANDROID_HLS_STREAM_PAUSED: {
379
+ return {
380
+ ...state,
381
+ hlsStreamPaused_android: action.payload.hlsStreamPaused_android,
382
+ };
383
+ }
360
384
  case HmsStateActionTypes.CLEAR_STATES:
361
385
  return INITIAL_STATE;
362
386
  default:
@@ -1,80 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CustomControls = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _theme = require("../utils/theme");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const CustomControls = ({
12
- handleControlPress
13
- }) => {
14
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
15
- style: styles.wrapper
16
- }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
17
- style: styles.button,
18
- onPress: () => handleControlPress('play')
19
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
20
- style: styles.text
21
- }, "Play")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
22
- style: styles.button,
23
- onPress: () => handleControlPress('stop')
24
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
25
- style: styles.text
26
- }, "Stop")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
27
- style: styles.button,
28
- onPress: () => handleControlPress('pause')
29
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
30
- style: styles.text
31
- }, "Pause")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
32
- style: styles.button,
33
- onPress: () => handleControlPress('resume')
34
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
35
- style: styles.text
36
- }, "Resume"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
37
- style: styles.spacedWrapper
38
- }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
39
- style: styles.button,
40
- onPress: () => handleControlPress('seekForward', 5)
41
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
42
- style: styles.text
43
- }, "Forward 5 sec")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
44
- style: styles.button,
45
- onPress: () => handleControlPress('seekBackward', 5)
46
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
47
- style: styles.text
48
- }, "Backward 5 sec"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
49
- style: styles.spacedWrapper
50
- }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
51
- style: styles.button,
52
- onPress: () => handleControlPress('seekToLive')
53
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
54
- style: styles.text
55
- }, "Go to Live")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
56
- style: styles.button,
57
- onPress: () => handleControlPress('setVolume', 50)
58
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
59
- style: styles.text
60
- }, "Low Volume to `50`"))));
61
- };
62
- exports.CustomControls = CustomControls;
63
- const styles = _reactNative.StyleSheet.create({
64
- wrapper: {
65
- flexDirection: 'row',
66
- justifyContent: 'space-evenly'
67
- },
68
- spacedWrapper: {
69
- flexDirection: 'row',
70
- justifyContent: 'space-evenly',
71
- marginVertical: 8
72
- },
73
- button: {
74
- padding: 12
75
- },
76
- text: {
77
- color: _theme.COLORS.PRIMARY.LIGHT
78
- }
79
- });
80
- //# sourceMappingURL=CustomHLSPlayerControls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_theme","obj","__esModule","default","CustomControls","handleControlPress","createElement","View","style","styles","wrapper","TouchableOpacity","button","onPress","Text","text","spacedWrapper","exports","StyleSheet","create","flexDirection","justifyContent","marginVertical","padding","color","COLORS","PRIMARY","LIGHT"],"sourceRoot":"../../../src","sources":["components/CustomHLSPlayerControls.tsx"],"mappings":"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","ignoreList":[]}