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

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 (345) 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/index.js +11 -0
  25. package/lib/commonjs/Icons/index.js.map +1 -1
  26. package/lib/commonjs/components/AnimatedHeader.js +1 -11
  27. package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
  28. package/lib/commonjs/components/Chat/ChatBanner.js +1 -0
  29. package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
  30. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
  31. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  32. package/lib/commonjs/components/Chat/ChatList.js +4 -2
  33. package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
  34. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +2 -1
  35. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
  36. package/lib/commonjs/components/DisplayView.js +1 -9
  37. package/lib/commonjs/components/DisplayView.js.map +1 -1
  38. package/lib/commonjs/components/Footer.js +7 -44
  39. package/lib/commonjs/components/Footer.js.map +1 -1
  40. package/lib/commonjs/components/HLSAnimatedDescriptionPane.js +30 -0
  41. package/lib/commonjs/components/HLSAnimatedDescriptionPane.js.map +1 -0
  42. package/lib/commonjs/components/HLSChatFooterView.js +51 -0
  43. package/lib/commonjs/components/HLSChatFooterView.js.map +1 -0
  44. package/lib/commonjs/components/HLSChatHeaderView.js +130 -0
  45. package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -0
  46. package/lib/commonjs/components/HLSChatMessages.js +55 -0
  47. package/lib/commonjs/components/HLSChatMessages.js.map +1 -0
  48. package/lib/commonjs/components/HLSChatView.js +49 -0
  49. package/lib/commonjs/components/HLSChatView.js.map +1 -0
  50. package/lib/commonjs/components/HLSDescriptionPane.js +145 -0
  51. package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -0
  52. package/lib/commonjs/components/HLSDescriptionPaneHeader.js +70 -0
  53. package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -0
  54. package/lib/commonjs/components/HLSFooter.js +1 -1
  55. package/lib/commonjs/components/HLSFooter.js.map +1 -1
  56. package/lib/commonjs/components/HLSHandRaiseButton.js +38 -0
  57. package/lib/commonjs/components/HLSHandRaiseButton.js.map +1 -0
  58. package/lib/commonjs/components/HLSManageChatTextInput.js +90 -0
  59. package/lib/commonjs/components/HLSManageChatTextInput.js.map +1 -0
  60. package/lib/commonjs/components/HLSNotifications.js +32 -0
  61. package/lib/commonjs/components/HLSNotifications.js.map +1 -0
  62. package/lib/commonjs/components/{HLSView.js → HLSPlayer.js} +34 -37
  63. package/lib/commonjs/components/HLSPlayer.js.map +1 -0
  64. package/lib/commonjs/components/HLSPlayerContainer.js +64 -0
  65. package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -0
  66. package/lib/commonjs/components/HLSPlayerControls.js +87 -0
  67. package/lib/commonjs/components/HLSPlayerControls.js.map +1 -0
  68. package/lib/commonjs/components/HLSRecordingStatusText.js +31 -0
  69. package/lib/commonjs/components/HLSRecordingStatusText.js.map +1 -0
  70. package/lib/commonjs/components/HLSRoomOptionsButton.js +25 -0
  71. package/lib/commonjs/components/HLSRoomOptionsButton.js.map +1 -0
  72. package/lib/commonjs/components/HLSStreamStartedTime.js +69 -0
  73. package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -0
  74. package/lib/commonjs/components/HLSViewerScreenContent.js +61 -0
  75. package/lib/commonjs/components/HLSViewerScreenContent.js.map +1 -0
  76. package/lib/commonjs/components/HMSHLSNotStarted.js +15 -7
  77. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  78. package/lib/commonjs/components/HMSKeyboardAvoidingView.js +5 -1
  79. package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
  80. package/lib/commonjs/components/HMSLiveViewerCount.js +2 -4
  81. package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
  82. package/lib/commonjs/components/HMSNotification.js +3 -2
  83. package/lib/commonjs/components/HMSNotification.js.map +1 -1
  84. package/lib/commonjs/components/HMSNotifications.js +3 -1
  85. package/lib/commonjs/components/HMSNotifications.js.map +1 -1
  86. package/lib/commonjs/components/HMSOverlayChatView.js +7 -4
  87. package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
  88. package/lib/commonjs/components/Meeting.js +3 -1
  89. package/lib/commonjs/components/Meeting.js.map +1 -1
  90. package/lib/commonjs/components/MeetingScreenContent.js +2 -9
  91. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  92. package/lib/commonjs/components/OverlayedViews.js +1 -1
  93. package/lib/commonjs/components/OverlayedViews.js.map +1 -1
  94. package/lib/commonjs/components/PressableIcon.js +1 -2
  95. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  96. package/lib/commonjs/hooks-util.js +128 -5
  97. package/lib/commonjs/hooks-util.js.map +1 -1
  98. package/lib/commonjs/redux/actionTypes.js +4 -0
  99. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  100. package/lib/commonjs/redux/actions/index.js +17 -3
  101. package/lib/commonjs/redux/actions/index.js.map +1 -1
  102. package/lib/commonjs/redux/reducers/appState.js +17 -1
  103. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  104. package/lib/module/Icons/CC/assets/cc-off-med.png +0 -0
  105. package/lib/module/Icons/CC/assets/cc-off-med@2x.png +0 -0
  106. package/lib/module/Icons/CC/assets/cc-off-med@3x.png +0 -0
  107. package/lib/module/Icons/CC/assets/cc-on-med.png +0 -0
  108. package/lib/module/Icons/CC/assets/cc-on-med@2x.png +0 -0
  109. package/lib/module/Icons/CC/assets/cc-on-med@3x.png +0 -0
  110. package/lib/module/Icons/CC/index.js +31 -0
  111. package/lib/module/Icons/CC/index.js.map +1 -0
  112. package/lib/module/Icons/Close/assets/close-med.png +0 -0
  113. package/lib/module/Icons/Close/assets/close-med@2x.png +0 -0
  114. package/lib/module/Icons/Close/assets/close-med@3x.png +0 -0
  115. package/lib/module/Icons/Close/index.js +7 -2
  116. package/lib/module/Icons/Close/index.js.map +1 -1
  117. package/lib/module/Icons/Maximize/assets/maximize-med.png +0 -0
  118. package/lib/module/Icons/Maximize/assets/maximize-med@2x.png +0 -0
  119. package/lib/module/Icons/Maximize/assets/maximize-med@3x.png +0 -0
  120. package/lib/module/Icons/Maximize/index.js +7 -2
  121. package/lib/module/Icons/Maximize/index.js.map +1 -1
  122. package/lib/module/Icons/Minimize/assets/minimize-med.png +0 -0
  123. package/lib/module/Icons/Minimize/assets/minimize-med@2x.png +0 -0
  124. package/lib/module/Icons/Minimize/assets/minimize-med@3x.png +0 -0
  125. package/lib/module/Icons/Minimize/index.js +7 -2
  126. package/lib/module/Icons/Minimize/index.js.map +1 -1
  127. package/lib/module/Icons/index.js +1 -0
  128. package/lib/module/Icons/index.js.map +1 -1
  129. package/lib/module/components/AnimatedHeader.js +1 -11
  130. package/lib/module/components/AnimatedHeader.js.map +1 -1
  131. package/lib/module/components/Chat/ChatBanner.js +1 -0
  132. package/lib/module/components/Chat/ChatBanner.js.map +1 -1
  133. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
  134. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  135. package/lib/module/components/Chat/ChatList.js +4 -2
  136. package/lib/module/components/Chat/ChatList.js.map +1 -1
  137. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -2
  138. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
  139. package/lib/module/components/DisplayView.js +3 -11
  140. package/lib/module/components/DisplayView.js.map +1 -1
  141. package/lib/module/components/Footer.js +9 -46
  142. package/lib/module/components/Footer.js.map +1 -1
  143. package/lib/module/components/HLSAnimatedDescriptionPane.js +21 -0
  144. package/lib/module/components/HLSAnimatedDescriptionPane.js.map +1 -0
  145. package/lib/module/components/HLSChatFooterView.js +42 -0
  146. package/lib/module/components/HLSChatFooterView.js.map +1 -0
  147. package/lib/module/components/HLSChatHeaderView.js +121 -0
  148. package/lib/module/components/HLSChatHeaderView.js.map +1 -0
  149. package/lib/module/components/HLSChatMessages.js +46 -0
  150. package/lib/module/components/HLSChatMessages.js.map +1 -0
  151. package/lib/module/components/HLSChatView.js +40 -0
  152. package/lib/module/components/HLSChatView.js.map +1 -0
  153. package/lib/module/components/HLSDescriptionPane.js +136 -0
  154. package/lib/module/components/HLSDescriptionPane.js.map +1 -0
  155. package/lib/module/components/HLSDescriptionPaneHeader.js +61 -0
  156. package/lib/module/components/HLSDescriptionPaneHeader.js.map +1 -0
  157. package/lib/module/components/HLSFooter.js +2 -2
  158. package/lib/module/components/HLSFooter.js.map +1 -1
  159. package/lib/module/components/HLSHandRaiseButton.js +29 -0
  160. package/lib/module/components/HLSHandRaiseButton.js.map +1 -0
  161. package/lib/module/components/HLSManageChatTextInput.js +81 -0
  162. package/lib/module/components/HLSManageChatTextInput.js.map +1 -0
  163. package/lib/module/components/HLSNotifications.js +24 -0
  164. package/lib/module/components/HLSNotifications.js.map +1 -0
  165. package/lib/module/components/{HLSView.js → HLSPlayer.js} +35 -38
  166. package/lib/module/components/HLSPlayer.js.map +1 -0
  167. package/lib/module/components/HLSPlayerContainer.js +56 -0
  168. package/lib/module/components/HLSPlayerContainer.js.map +1 -0
  169. package/lib/module/components/HLSPlayerControls.js +81 -0
  170. package/lib/module/components/HLSPlayerControls.js.map +1 -0
  171. package/lib/module/components/HLSRecordingStatusText.js +22 -0
  172. package/lib/module/components/HLSRecordingStatusText.js.map +1 -0
  173. package/lib/module/components/HLSRoomOptionsButton.js +16 -0
  174. package/lib/module/components/HLSRoomOptionsButton.js.map +1 -0
  175. package/lib/module/components/HLSStreamStartedTime.js +60 -0
  176. package/lib/module/components/HLSStreamStartedTime.js.map +1 -0
  177. package/lib/module/components/HLSViewerScreenContent.js +53 -0
  178. package/lib/module/components/HLSViewerScreenContent.js.map +1 -0
  179. package/lib/module/components/HMSHLSNotStarted.js +15 -7
  180. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  181. package/lib/module/components/HMSKeyboardAvoidingView.js +5 -1
  182. package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
  183. package/lib/module/components/HMSLiveViewerCount.js +3 -5
  184. package/lib/module/components/HMSLiveViewerCount.js.map +1 -1
  185. package/lib/module/components/HMSNotification.js +4 -3
  186. package/lib/module/components/HMSNotification.js.map +1 -1
  187. package/lib/module/components/HMSNotifications.js +3 -1
  188. package/lib/module/components/HMSNotifications.js.map +1 -1
  189. package/lib/module/components/HMSOverlayChatView.js +5 -2
  190. package/lib/module/components/HMSOverlayChatView.js.map +1 -1
  191. package/lib/module/components/Meeting.js +4 -2
  192. package/lib/module/components/Meeting.js.map +1 -1
  193. package/lib/module/components/MeetingScreenContent.js +3 -10
  194. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  195. package/lib/module/components/OverlayedViews.js +2 -2
  196. package/lib/module/components/OverlayedViews.js.map +1 -1
  197. package/lib/module/components/PressableIcon.js +1 -2
  198. package/lib/module/components/PressableIcon.js.map +1 -1
  199. package/lib/module/hooks-util.js +125 -5
  200. package/lib/module/hooks-util.js.map +1 -1
  201. package/lib/module/redux/actionTypes.js +4 -0
  202. package/lib/module/redux/actionTypes.js.map +1 -1
  203. package/lib/module/redux/actions/index.js +12 -0
  204. package/lib/module/redux/actions/index.js.map +1 -1
  205. package/lib/module/redux/reducers/appState.js +17 -1
  206. package/lib/module/redux/reducers/appState.js.map +1 -1
  207. package/lib/typescript/Icons/CC/index.d.ts +9 -0
  208. package/lib/typescript/Icons/CC/index.d.ts.map +1 -0
  209. package/lib/typescript/Icons/Close/index.d.ts +1 -0
  210. package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
  211. package/lib/typescript/Icons/Maximize/index.d.ts +1 -0
  212. package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -1
  213. package/lib/typescript/Icons/Minimize/index.d.ts +1 -0
  214. package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -1
  215. package/lib/typescript/Icons/index.d.ts +1 -0
  216. package/lib/typescript/Icons/index.d.ts.map +1 -1
  217. package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
  218. package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +4 -1
  219. package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -1
  220. package/lib/typescript/components/Chat/ChatList.d.ts +4 -1
  221. package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
  222. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
  223. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  224. package/lib/typescript/components/Footer.d.ts.map +1 -1
  225. package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts +10 -0
  226. package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts.map +1 -0
  227. package/lib/typescript/components/HLSChatFooterView.d.ts +3 -0
  228. package/lib/typescript/components/HLSChatFooterView.d.ts.map +1 -0
  229. package/lib/typescript/components/HLSChatHeaderView.d.ts +7 -0
  230. package/lib/typescript/components/HLSChatHeaderView.d.ts.map +1 -0
  231. package/lib/typescript/components/HLSChatMessages.d.ts +3 -0
  232. package/lib/typescript/components/HLSChatMessages.d.ts.map +1 -0
  233. package/lib/typescript/components/HLSChatView.d.ts +3 -0
  234. package/lib/typescript/components/HLSChatView.d.ts.map +1 -0
  235. package/lib/typescript/components/HLSDescriptionPane.d.ts +6 -0
  236. package/lib/typescript/components/HLSDescriptionPane.d.ts.map +1 -0
  237. package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts +9 -0
  238. package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts.map +1 -0
  239. package/lib/typescript/components/HLSHandRaiseButton.d.ts +3 -0
  240. package/lib/typescript/components/HLSHandRaiseButton.d.ts.map +1 -0
  241. package/lib/typescript/components/HLSManageChatTextInput.d.ts +3 -0
  242. package/lib/typescript/components/HLSManageChatTextInput.d.ts.map +1 -0
  243. package/lib/typescript/components/HLSNotifications.d.ts +3 -0
  244. package/lib/typescript/components/HLSNotifications.d.ts.map +1 -0
  245. package/lib/typescript/components/HLSPlayer.d.ts +4 -0
  246. package/lib/typescript/components/HLSPlayer.d.ts.map +1 -0
  247. package/lib/typescript/components/HLSPlayerContainer.d.ts +4 -0
  248. package/lib/typescript/components/HLSPlayerContainer.d.ts.map +1 -0
  249. package/lib/typescript/components/HLSPlayerControls.d.ts +4 -0
  250. package/lib/typescript/components/HLSPlayerControls.d.ts.map +1 -0
  251. package/lib/typescript/components/HLSRecordingStatusText.d.ts +9 -0
  252. package/lib/typescript/components/HLSRecordingStatusText.d.ts.map +1 -0
  253. package/lib/typescript/components/HLSRoomOptionsButton.d.ts +3 -0
  254. package/lib/typescript/components/HLSRoomOptionsButton.d.ts.map +1 -0
  255. package/lib/typescript/components/HLSStreamStartedTime.d.ts +6 -0
  256. package/lib/typescript/components/HLSStreamStartedTime.d.ts.map +1 -0
  257. package/lib/typescript/components/HLSViewerScreenContent.d.ts +6 -0
  258. package/lib/typescript/components/HLSViewerScreenContent.d.ts.map +1 -0
  259. package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
  260. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -0
  261. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
  262. package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -1
  263. package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
  264. package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
  265. package/lib/typescript/components/HMSOverlayChatView.d.ts +2 -2
  266. package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
  267. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  268. package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
  269. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  270. package/lib/typescript/hooks-util.d.ts +20 -1
  271. package/lib/typescript/hooks-util.d.ts.map +1 -1
  272. package/lib/typescript/redux/actionTypes.d.ts +2 -0
  273. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  274. package/lib/typescript/redux/actions/index.d.ts +12 -0
  275. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  276. package/lib/typescript/redux/index.d.ts +2 -0
  277. package/lib/typescript/redux/index.d.ts.map +1 -1
  278. package/lib/typescript/redux/reducers/appState.d.ts +2 -0
  279. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  280. package/lib/typescript/redux/reducers/index.d.ts +2 -0
  281. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  282. package/package.json +3 -3
  283. package/src/Icons/CC/assets/cc-off-med.png +0 -0
  284. package/src/Icons/CC/assets/cc-off-med@2x.png +0 -0
  285. package/src/Icons/CC/assets/cc-off-med@3x.png +0 -0
  286. package/src/Icons/CC/assets/cc-on-med.png +0 -0
  287. package/src/Icons/CC/assets/cc-on-med@2x.png +0 -0
  288. package/src/Icons/CC/assets/cc-on-med@3x.png +0 -0
  289. package/src/Icons/CC/index.tsx +51 -0
  290. package/src/Icons/Close/assets/close-med.png +0 -0
  291. package/src/Icons/Close/assets/close-med@2x.png +0 -0
  292. package/src/Icons/Close/assets/close-med@3x.png +0 -0
  293. package/src/Icons/Close/index.tsx +19 -3
  294. package/src/Icons/Maximize/assets/maximize-med.png +0 -0
  295. package/src/Icons/Maximize/assets/maximize-med@2x.png +0 -0
  296. package/src/Icons/Maximize/assets/maximize-med@3x.png +0 -0
  297. package/src/Icons/Maximize/index.tsx +19 -3
  298. package/src/Icons/Minimize/assets/minimize-med.png +0 -0
  299. package/src/Icons/Minimize/assets/minimize-med@2x.png +0 -0
  300. package/src/Icons/Minimize/assets/minimize-med@3x.png +0 -0
  301. package/src/Icons/Minimize/index.tsx +19 -3
  302. package/src/Icons/index.ts +1 -0
  303. package/src/components/AnimatedHeader.tsx +1 -9
  304. package/src/components/Chat/ChatBanner.tsx +1 -0
  305. package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +16 -8
  306. package/src/components/Chat/ChatList.tsx +4 -1
  307. package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +6 -1
  308. package/src/components/DisplayView.tsx +9 -23
  309. package/src/components/Footer.tsx +8 -77
  310. package/src/components/HLSAnimatedDescriptionPane.tsx +36 -0
  311. package/src/components/HLSChatFooterView.tsx +53 -0
  312. package/src/components/HLSChatHeaderView.tsx +165 -0
  313. package/src/components/HLSChatMessages.tsx +62 -0
  314. package/src/components/HLSChatView.tsx +55 -0
  315. package/src/components/HLSDescriptionPane.tsx +168 -0
  316. package/src/components/HLSDescriptionPaneHeader.tsx +78 -0
  317. package/src/components/HLSFooter.tsx +2 -2
  318. package/src/components/HLSHandRaiseButton.tsx +41 -0
  319. package/src/components/HLSManageChatTextInput.tsx +98 -0
  320. package/src/components/HLSNotifications.tsx +33 -0
  321. package/src/components/{HLSView.tsx → HLSPlayer.tsx} +80 -77
  322. package/src/components/HLSPlayerContainer.tsx +67 -0
  323. package/src/components/HLSPlayerControls.tsx +101 -0
  324. package/src/components/HLSRecordingStatusText.tsx +50 -0
  325. package/src/components/HLSRoomOptionsButton.tsx +19 -0
  326. package/src/components/HLSStreamStartedTime.tsx +79 -0
  327. package/src/components/HLSViewerScreenContent.tsx +96 -0
  328. package/src/components/HMSHLSNotStarted.tsx +18 -7
  329. package/src/components/HMSKeyboardAvoidingView.tsx +16 -6
  330. package/src/components/HMSLiveViewerCount.tsx +2 -8
  331. package/src/components/HMSNotification.tsx +20 -14
  332. package/src/components/HMSNotifications.tsx +3 -1
  333. package/src/components/HMSOverlayChatView.tsx +10 -3
  334. package/src/components/Meeting.tsx +9 -1
  335. package/src/components/MeetingScreenContent.tsx +3 -7
  336. package/src/components/OverlayedViews.tsx +2 -2
  337. package/src/components/PressableIcon.tsx +1 -3
  338. package/src/hooks-util.ts +185 -6
  339. package/src/redux/actionTypes.ts +6 -0
  340. package/src/redux/actions/index.ts +10 -0
  341. package/src/redux/reducers/appState.ts +16 -0
  342. package/lib/commonjs/components/HLSView.js.map +0 -1
  343. package/lib/module/components/HLSView.js.map +0 -1
  344. package/lib/typescript/components/HLSView.d.ts +0 -4
  345. package/lib/typescript/components/HLSView.d.ts.map +0 -1
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet } from 'react-native';
3
+
4
+ import { useHLSViewsConstraints } from '../hooks-util';
5
+ import { HLSPlayer } from './HLSPlayer';
6
+ import { HLSPlayerControls } from './HLSPlayerControls';
7
+
8
+ export const _HLSPlayerContainer: React.FC = () => {
9
+ // const hlsPlayerRef = useRef(null);
10
+ const { playerWrapperConstraints } = useHLSViewsConstraints();
11
+
12
+ return (
13
+ <View
14
+ style={[
15
+ styles.hlsPlayerContainer,
16
+ {
17
+ backgroundColor: 'black',
18
+ width: playerWrapperConstraints.width,
19
+ height: playerWrapperConstraints.height,
20
+ },
21
+ ]}
22
+ >
23
+ <HLSPlayer />
24
+
25
+ <HLSPlayerControls />
26
+ </View>
27
+ );
28
+ };
29
+
30
+ export const HLSPlayerContainer = React.memo(_HLSPlayerContainer);
31
+
32
+ const styles = StyleSheet.create({
33
+ hlsView: {
34
+ flex: 1,
35
+ },
36
+ hlsPlayerContainer: {
37
+ // flex: 1,
38
+ position: 'relative',
39
+ },
40
+ textContainer: {
41
+ flex: 1,
42
+ paddingHorizontal: 24,
43
+ alignItems: 'center',
44
+ justifyContent: 'center',
45
+ },
46
+ warningSubtitle: {
47
+ fontSize: 16,
48
+ lineHeight: 20,
49
+ letterSpacing: 0.25,
50
+ textAlign: 'center',
51
+ },
52
+ playbackFailedContainer: {
53
+ flex: 1,
54
+ width: '100%',
55
+ height: '100%',
56
+ alignItems: 'center',
57
+ justifyContent: 'center',
58
+ position: 'absolute',
59
+ },
60
+ playbackFailed: {
61
+ fontSize: 24,
62
+ lineHeight: 32,
63
+ letterSpacing: 0.5,
64
+ textAlign: 'center',
65
+ marginTop: 8,
66
+ },
67
+ });
@@ -0,0 +1,101 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet, TouchableOpacity } from 'react-native';
3
+ import { useDispatch, useSelector } from 'react-redux';
4
+
5
+ import {
6
+ // CCIcon,
7
+ CloseIcon,
8
+ MaximizeIcon,
9
+ MinimizeIcon,
10
+ } from '../Icons';
11
+ import { ModalTypes } from '../utils/types';
12
+ import { useModalType } from '../hooks-util';
13
+ import type { RootState } from '../redux';
14
+ import { setHlsFullScreen } from '../redux/actions';
15
+
16
+ export const _HLSPlayerControls: React.FC = () => {
17
+ // const isHLSStreaming = useIsHLSStreamingOn();
18
+ // const isStreamUrlPresent = useSelector(
19
+ // (state: RootState) =>
20
+ // !!state.hmsStates.room?.hlsStreamingState.variants?.[0]?.hlsStreamUrl
21
+ // );
22
+ const dispatch = useDispatch();
23
+ const hlsFullScreen = useSelector(
24
+ (state: RootState) => state.app.hlsFullScreen
25
+ );
26
+ const { handleModalVisibleType } = useModalType();
27
+
28
+ const handleCloseBtnPress = () => {
29
+ handleModalVisibleType(ModalTypes.LEAVE_ROOM);
30
+ };
31
+
32
+ // const handleCCBtnPress = () => {
33
+ // //
34
+ // };
35
+
36
+ const toggleFullScreen = () => {
37
+ dispatch(setHlsFullScreen(!hlsFullScreen));
38
+ };
39
+
40
+ return (
41
+ <View style={styles.container}>
42
+ <View style={styles.controlsRow}>
43
+ <TouchableOpacity onPress={handleCloseBtnPress} style={styles.icon}>
44
+ <CloseIcon size="medium" />
45
+ </TouchableOpacity>
46
+
47
+ {/* <View style={[styles.normalRow, styles.gap]}>
48
+ <TouchableOpacity
49
+ onPress={handleCCBtnPress}
50
+ style={[styles.icon, styles.gap]}
51
+ >
52
+ <CCIcon size="medium" enabled={true} />
53
+ </TouchableOpacity>
54
+ </View> */}
55
+ </View>
56
+
57
+ <View style={styles.controlsRow}>
58
+ <View />
59
+
60
+ <View style={[styles.normalRow, styles.gap]}>
61
+ <TouchableOpacity onPress={toggleFullScreen} style={styles.icon}>
62
+ {hlsFullScreen ? (
63
+ <MinimizeIcon size="medium" />
64
+ ) : (
65
+ <MaximizeIcon size="medium" />
66
+ )}
67
+ </TouchableOpacity>
68
+ </View>
69
+ </View>
70
+ </View>
71
+ );
72
+ };
73
+
74
+ export const HLSPlayerControls = React.memo(_HLSPlayerControls);
75
+
76
+ const styles = StyleSheet.create({
77
+ container: {
78
+ position: 'absolute',
79
+ width: '100%',
80
+ height: '100%',
81
+ zIndex: 5,
82
+ justifyContent: 'space-between',
83
+ },
84
+ controlsRow: {
85
+ flexDirection: 'row',
86
+ alignItems: 'center',
87
+ justifyContent: 'space-between',
88
+ marginHorizontal: 8,
89
+ },
90
+ normalRow: {
91
+ flexDirection: 'row',
92
+ alignItems: 'center',
93
+ },
94
+ icon: {
95
+ padding: 4,
96
+ alignSelf: 'flex-start',
97
+ },
98
+ gap: {
99
+ marginLeft: 16,
100
+ },
101
+ });
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import { Text } from 'react-native';
3
+ import type { TextProps } from 'react-native';
4
+ import { useSelector } from 'react-redux';
5
+ import { HMSRecordingState } from '@100mslive/react-native-hms';
6
+
7
+ import type { RootState } from '../redux';
8
+ import { useIsAnyRecordingOn, useIsAnyRecordingPaused } from '../hooks-sdk';
9
+
10
+ interface HLSRecordingStatusTextProps extends TextProps {
11
+ prefix?: React.ReactElement;
12
+ suffix?: React.ReactElement;
13
+ }
14
+
15
+ export const HLSRecordingStatusText: React.FC<HLSRecordingStatusTextProps> = ({
16
+ prefix,
17
+ suffix,
18
+ ...restProps
19
+ }) => {
20
+ const isRecordingOn = useIsAnyRecordingOn();
21
+ const isRecordingPaused = useIsAnyRecordingPaused();
22
+ const startingOrStoppingRecording = useSelector(
23
+ (state: RootState) =>
24
+ state.app.startingOrStoppingRecording ||
25
+ state.hmsStates.room?.browserRecordingState.state ===
26
+ HMSRecordingState.STARTING ||
27
+ state.hmsStates.room?.serverRecordingState.state ===
28
+ HMSRecordingState.STARTING ||
29
+ state.hmsStates.room?.hlsRecordingState?.state ===
30
+ HMSRecordingState.STARTING
31
+ );
32
+
33
+ if (startingOrStoppingRecording || !(isRecordingPaused && isRecordingOn)) {
34
+ return null;
35
+ }
36
+
37
+ return (
38
+ <>
39
+ {prefix}
40
+ <Text {...restProps}>
41
+ {isRecordingPaused
42
+ ? 'Recording Paused'
43
+ : isRecordingOn
44
+ ? 'Recording'
45
+ : ''}
46
+ </Text>
47
+ {suffix}
48
+ </>
49
+ );
50
+ };
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { View } from 'react-native';
3
+
4
+ import { useCanShowRoomOptionsButton } from '../hooks-util';
5
+ import { HMSRoomOptions } from './HMSRoomOptions';
6
+
7
+ export const HLSRoomOptionsButton = () => {
8
+ const canShowOptions = useCanShowRoomOptionsButton();
9
+
10
+ if (!canShowOptions) {
11
+ return null;
12
+ }
13
+
14
+ return (
15
+ <View style={{ marginLeft: 12 }}>
16
+ <HMSRoomOptions />
17
+ </View>
18
+ );
19
+ };
@@ -0,0 +1,79 @@
1
+ import * as React from 'react';
2
+ import { StyleSheet, Text } from 'react-native';
3
+
4
+ import { useHMSRoomStyleSheet } from '../hooks-util';
5
+ import { useSelector } from 'react-redux';
6
+ import type { RootState } from '../redux';
7
+
8
+ export interface HLSStreamStartedTimeProps {
9
+ prefix?: React.ReactElement;
10
+ }
11
+
12
+ export const HLSStreamStartedTime: React.FC<HLSStreamStartedTimeProps> = ({
13
+ prefix,
14
+ }) => {
15
+ const streamStartedTime = useSelector(
16
+ (state: RootState) =>
17
+ state.hmsStates.room?.hlsStreamingState.variants?.[0]?.startedAt
18
+ );
19
+ const [streamStartedBeforeMillis, setStreamStartedBeforeMillis] =
20
+ React.useState(0);
21
+
22
+ React.useEffect(() => {
23
+ if (streamStartedTime) {
24
+ const beforeMilliSecs = Date.now() - streamStartedTime.getTime();
25
+
26
+ setStreamStartedBeforeMillis(beforeMilliSecs);
27
+
28
+ const intervalId = setInterval(() => {
29
+ setStreamStartedBeforeMillis((secs) => {
30
+ secs += 1000;
31
+ return secs;
32
+ });
33
+ }, 1000);
34
+
35
+ return () => {
36
+ clearInterval(intervalId);
37
+ };
38
+ }
39
+ }, [streamStartedTime]);
40
+
41
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
42
+ regularSurfaceMedium: {
43
+ fontFamily: `${typography.font_family}-Regular`,
44
+ color: theme.palette.on_surface_medium,
45
+ },
46
+ }));
47
+
48
+ if (!streamStartedTime) {
49
+ return null;
50
+ }
51
+
52
+ const { h, min, sec } = msToTime(streamStartedBeforeMillis);
53
+
54
+ return (
55
+ <>
56
+ {prefix}
57
+
58
+ <Text style={[styles.subtitle, hmsRoomStyles.regularSurfaceMedium]}>
59
+ Started {h > 0 ? `${h} h` : min > 0 ? `${min} min` : `${sec} sec`} ago
60
+ </Text>
61
+ </>
62
+ );
63
+ };
64
+
65
+ const styles = StyleSheet.create({
66
+ subtitle: {
67
+ fontSize: 12,
68
+ lineHeight: 16,
69
+ },
70
+ });
71
+
72
+ function msToTime(duration: number) {
73
+ return {
74
+ ms: duration,
75
+ sec: Math.floor(duration / 1000),
76
+ min: Math.floor(duration / 1000 / 60),
77
+ h: Math.floor(duration / 1000 / 60 / 60),
78
+ };
79
+ }
@@ -0,0 +1,96 @@
1
+ import React from 'react';
2
+ import { StyleSheet, View } from 'react-native';
3
+ import { useSelector } from 'react-redux';
4
+ import { SafeAreaView } from 'react-native-safe-area-context';
5
+
6
+ import { HMSStatusBar } from './StatusBar';
7
+ import { HLSPlayerContainer } from './HLSPlayerContainer';
8
+ import { LeaveRoomBottomSheet } from './LeaveRoomBottomSheet';
9
+ import { PreviewForRoleChangeModal } from './PreviewForRoleChangeModal';
10
+ import { ChatAndParticipantsBottomSheet } from './ChatAndParticipants';
11
+ import { DefaultModal } from './DefaultModal';
12
+ import { ModalTypes, PipModes } from '../utils/types';
13
+ import {
14
+ useHMSRoleChangeRequest,
15
+ useHMSRoomStyleSheet,
16
+ useHMSSessionStoreListeners,
17
+ useModalType,
18
+ } from '../hooks-util';
19
+ import { ChangeAspectRatio } from './Modals';
20
+ import type { RootState } from '../redux';
21
+ import { HLSChatView } from './HLSChatView';
22
+ import { useIsLandscapeOrientation } from '../utils/dimension';
23
+
24
+ interface HLSViewerScreenContentProps {}
25
+
26
+ export const HLSViewerScreenContent: React.FC<
27
+ HLSViewerScreenContentProps
28
+ > = ({}) => {
29
+ const isPipModeActive = useSelector(
30
+ (state: RootState) => state.app.pipModeStatus === PipModes.ACTIVE
31
+ );
32
+ const isLandscapeOrientation = useIsLandscapeOrientation();
33
+
34
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
35
+ container: {
36
+ backgroundColor: theme.palette.surface_dim,
37
+ },
38
+ }));
39
+
40
+ const {
41
+ modalVisibleType: modalVisible,
42
+ handleModalVisibleType: setModalVisible,
43
+ } = useModalType();
44
+
45
+ useHMSSessionStoreListeners();
46
+
47
+ useHMSRoleChangeRequest();
48
+
49
+ return (
50
+ <View style={[styles.container, hmsRoomStyles.container]}>
51
+ <HMSStatusBar barStyle={'light-content'} />
52
+
53
+ <SafeAreaView
54
+ style={[
55
+ styles.container,
56
+ hmsRoomStyles.container,
57
+ isLandscapeOrientation ? styles.landscapeContainer : null,
58
+ ]}
59
+ >
60
+ <HLSPlayerContainer />
61
+
62
+ <HLSChatView />
63
+ </SafeAreaView>
64
+
65
+ {isPipModeActive ? null : (
66
+ <>
67
+ <LeaveRoomBottomSheet />
68
+
69
+ <PreviewForRoleChangeModal />
70
+
71
+ <ChatAndParticipantsBottomSheet />
72
+
73
+ <DefaultModal
74
+ modalPosiion="center"
75
+ modalVisible={modalVisible === ModalTypes.HLS_PLAYER_ASPECT_RATIO}
76
+ setModalVisible={() => setModalVisible(ModalTypes.DEFAULT)}
77
+ >
78
+ <ChangeAspectRatio
79
+ cancelModal={() => setModalVisible(ModalTypes.DEFAULT)}
80
+ />
81
+ </DefaultModal>
82
+ </>
83
+ )}
84
+ </View>
85
+ );
86
+ };
87
+
88
+ const styles = StyleSheet.create({
89
+ container: {
90
+ flexGrow: 1,
91
+ position: 'relative',
92
+ },
93
+ landscapeContainer: {
94
+ flexDirection: 'row',
95
+ },
96
+ });
@@ -18,7 +18,11 @@ export const HMSHLSNotStarted = () => {
18
18
 
19
19
  return (
20
20
  <View style={styles.container}>
21
- <RadioIcon size="extra-large" containerStyle={styles.icon} />
21
+ <RadioIcon
22
+ size="extra-large"
23
+ containerStyle={styles.iconWrapper}
24
+ style={styles.icon}
25
+ />
22
26
  <Text style={[styles.title, hmsRoomStyles.title]}>
23
27
  Stream yet to start
24
28
  </Text>
@@ -36,20 +40,27 @@ const styles = StyleSheet.create({
36
40
  alignItems: 'center',
37
41
  justifyContent: 'center',
38
42
  },
39
- icon: {
43
+ iconWrapper: {
44
+ width: 40,
45
+ height: 40,
46
+ borderRadius: 20,
40
47
  marginBottom: 24,
41
48
  },
49
+ icon: {
50
+ width: 24,
51
+ height: 24,
52
+ },
42
53
  title: {
43
- fontSize: 24,
44
- lineHeight: 32,
54
+ fontSize: 16,
55
+ lineHeight: 20,
45
56
  textAlign: 'center',
46
57
  },
47
58
  description: {
48
- fontSize: 16,
49
- lineHeight: 24,
59
+ fontSize: 14,
60
+ lineHeight: 20,
50
61
  letterSpacing: 0.5,
51
62
  textAlign: 'center',
52
- marginTop: 8,
63
+ marginTop: 4,
53
64
  },
54
65
  taleLessSpaceAsYouCan: {
55
66
  flex: 0,
@@ -12,12 +12,20 @@ import { useKeyboardState } from '../hooks-util';
12
12
 
13
13
  export interface HMSKeyboardAvoidingViewProps {
14
14
  style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
15
+ styleWhenInactive?: ViewStyle;
16
+ styleWhenActive?: ViewStyle;
15
17
  bottomOffset?: number | SharedValue<number>;
16
18
  }
17
19
 
18
20
  export const HMSKeyboardAvoidingView: React.FC<
19
21
  HMSKeyboardAvoidingViewProps
20
- > = ({ children, style, bottomOffset = 0 }) => {
22
+ > = ({
23
+ children,
24
+ style,
25
+ styleWhenInactive,
26
+ styleWhenActive,
27
+ bottomOffset = 0,
28
+ }) => {
21
29
  const animatedKeyboard = useAnimatedKeyboard();
22
30
  const { keyboardState } = useKeyboardState();
23
31
 
@@ -27,14 +35,16 @@ export const HMSKeyboardAvoidingView: React.FC<
27
35
 
28
36
  const keyboardAvoidStyle = useAnimatedStyle(() => {
29
37
  const keyboardHeight = animatedKeyboard.height.value;
38
+ const keyboardHidden =
39
+ keyboardHeight <= initialPageY.value ||
40
+ keyboardState.value === KeyboardState.CLOSED;
30
41
  return {
42
+ ...(keyboardHidden ? styleWhenInactive : styleWhenActive),
31
43
  transform: [
32
44
  {
33
- translateY:
34
- keyboardHeight <= initialPageY.value ||
35
- keyboardState.value === KeyboardState.CLOSED
36
- ? 0 // Keep element at original `pageY` till and when keyboard height is less than `pageY`
37
- : -(keyboardHeight - initialPageY.value),
45
+ translateY: keyboardHidden
46
+ ? 0 // Keep element at original `pageY` till and when keyboard height is less than `pageY`
47
+ : -(keyboardHeight - initialPageY.value),
38
48
  },
39
49
  ],
40
50
  };
@@ -5,17 +5,14 @@ import { Gesture, GestureDetector } from 'react-native-gesture-handler';
5
5
 
6
6
  import {
7
7
  useHMSRoomStyleSheet,
8
- useIsHLSViewer,
9
8
  useShowChatAndParticipants,
10
9
  } from '../hooks-util';
11
10
  import { EyeIcon } from '../Icons';
12
- import { hexToRgbA } from '../utils/theme';
13
11
  import type { RootState } from '../redux';
14
12
  import { TestIds } from '../utils/constants';
15
13
  import { useIsAnyStreamingOn } from '../hooks-sdk';
16
14
 
17
15
  const _HMSLiveViewerCount = () => {
18
- const isHLSViewer = useIsHLSViewer();
19
16
  const previewPeerCount = useSelector(
20
17
  (state: RootState) => state.hmsStates.room?.peerCount
21
18
  );
@@ -23,11 +20,8 @@ const _HMSLiveViewerCount = () => {
23
20
 
24
21
  const hmsRoomStyles = useHMSRoomStyleSheet((theme, typograhy) => ({
25
22
  viewers: {
26
- backgroundColor: isHLSViewer
27
- ? theme.palette.background_dim &&
28
- hexToRgbA(theme.palette.background_dim, 0.64)
29
- : undefined,
30
- borderWidth: isHLSViewer ? 0 : 1,
23
+ backgroundColor: undefined,
24
+ borderWidth: 1,
31
25
  borderColor: theme.palette.border_bright,
32
26
  },
33
27
  count: {
@@ -4,7 +4,7 @@ import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
4
4
  import type { StyleProp, ViewStyle, TextStyle, TextProps } from 'react-native';
5
5
  import { Gesture, GestureDetector } from 'react-native-gesture-handler';
6
6
 
7
- import { useHMSRoomStyleSheet } from '../hooks-util';
7
+ import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
8
8
  import { ChatIcon, CloseIcon } from '../Icons';
9
9
  import { UnmountAfterDelay } from './UnmountAfterDelay';
10
10
  import { removeNotification } from '../redux/actions';
@@ -39,20 +39,26 @@ export const HMSNotification: React.FC<HMSNotificationProps> = ({
39
39
  dismissable = false,
40
40
  }) => {
41
41
  const dispatch = useDispatch();
42
+ const isHLSViewer = useIsHLSViewer();
42
43
 
43
- const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
44
- container: {
45
- backgroundColor: theme.palette.surface_dim,
46
- },
47
- text: {
48
- color: theme.palette.on_surface_high,
49
- fontFamily: `${typography.font_family}-SemiBold`,
50
- },
51
- description: {
52
- color: theme.palette.on_surface_medium,
53
- fontFamily: `${typography.font_family}-Regular`,
54
- },
55
- }));
44
+ const hmsRoomStyles = useHMSRoomStyleSheet(
45
+ (theme, typography) => ({
46
+ container: {
47
+ backgroundColor: isHLSViewer
48
+ ? theme.palette.surface_default
49
+ : theme.palette.surface_dim,
50
+ },
51
+ text: {
52
+ color: theme.palette.on_surface_high,
53
+ fontFamily: `${typography.font_family}-SemiBold`,
54
+ },
55
+ description: {
56
+ color: theme.palette.on_surface_medium,
57
+ fontFamily: `${typography.font_family}-Regular`,
58
+ },
59
+ }),
60
+ [isHLSViewer]
61
+ );
56
62
 
57
63
  const dismissNotification =
58
64
  onDismiss ||
@@ -13,6 +13,7 @@ import { AlertTriangleIcon } from '../Icons';
13
13
  import { HMSReconnectingNotification } from './HMSReconnectingNotification';
14
14
  import { useIsLandscapeOrientation } from '../utils/dimension';
15
15
  import { HMSPollsQuizzesNotification } from './HMSPollsQuizzesNotification';
16
+ import { useIsHLSViewer } from '../hooks-util';
16
17
 
17
18
  export interface HMSNotificationsProps {}
18
19
 
@@ -25,6 +26,7 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
25
26
  const isLocalScreenShared = useSelector(
26
27
  (state: RootState) => state.hmsStates.isLocalScreenShared
27
28
  );
29
+ const isHLSViewer = useIsHLSViewer();
28
30
  const isLandscapeOrientation = useIsLandscapeOrientation();
29
31
 
30
32
  // notifications is a stack, first will appear last
@@ -84,7 +86,7 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
84
86
  return (
85
87
  <View
86
88
  style={[
87
- isLandscapeOrientation
89
+ isLandscapeOrientation && !isHLSViewer
88
90
  ? styles.absoluteLandscapeContainer
89
91
  : styles.absoluteContainer,
90
92
  { paddingTop: (notifications.length - 1) * 16 },
@@ -32,11 +32,13 @@ const colors = [
32
32
  ];
33
33
  const colorLocations = [0, 0.4, 1];
34
34
 
35
- export interface HLSChatViewProps {
35
+ export interface HMSOverlayChatViewProps {
36
36
  offset?: SharedValue<number>;
37
37
  }
38
38
 
39
- export const HLSChatView: React.FC<HLSChatViewProps> = ({ offset }) => {
39
+ export const HMSOverlayChatView: React.FC<HMSOverlayChatViewProps> = ({
40
+ offset,
41
+ }) => {
40
42
  const footerHeight = useFooterHeight();
41
43
  const hmsNotificationsHeight = useHMSNotificationsHeight();
42
44
  const { chatState } = useHMSChatState();
@@ -77,7 +79,12 @@ export const HLSChatView: React.FC<HLSChatViewProps> = ({ offset }) => {
77
79
  {chatState.enabled ? (
78
80
  <>
79
81
  <View style={styles.filterSheetWrapper}>
80
- <ChatFilterBottomSheetOpener insetMode={true} />
82
+ <ChatFilterBottomSheetOpener
83
+ overlay={true}
84
+ useFilterModal={true}
85
+ showActionBtn={true}
86
+ useActionModal={true}
87
+ />
81
88
  </View>
82
89
 
83
90
  {isLocalPeerBlockedFromChat ? (
@@ -15,6 +15,7 @@ import {
15
15
  useHMSReconnection,
16
16
  useHMSRemovedFromRoomUpdate,
17
17
  useHMSRoomStyle,
18
+ useIsHLSViewer,
18
19
  useLandscapeImmersiveMode,
19
20
  usePIPListener,
20
21
  useSetDefaultChatRecipient,
@@ -22,6 +23,7 @@ import {
22
23
  import { MeetingScreenContent } from './MeetingScreenContent';
23
24
  import { HMSHLSStreamLoading } from './HMSHLSStreamLoading';
24
25
  import type { RootState } from '../redux';
26
+ import { HLSViewerScreenContent } from './HLSViewerScreenContent';
25
27
 
26
28
  interface MeetingProps {
27
29
  peerTrackNodes: Array<PeerTrackNode>;
@@ -32,6 +34,8 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
32
34
  (state: RootState) => state.app.startingHLSStream
33
35
  );
34
36
 
37
+ const isHLSViewer = useIsHLSViewer();
38
+
35
39
  // TODO: Fetch latest Room and localPeer on mount of this component?
36
40
 
37
41
  useFetchHMSRoles();
@@ -81,7 +85,11 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
81
85
 
82
86
  return (
83
87
  <View style={[styles.container, containerStyles]}>
84
- <MeetingScreenContent peerTrackNodes={peerTrackNodes} />
88
+ {isHLSViewer ? (
89
+ <HLSViewerScreenContent />
90
+ ) : (
91
+ <MeetingScreenContent peerTrackNodes={peerTrackNodes} />
92
+ )}
85
93
  </View>
86
94
  );
87
95
  };