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

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 (327) hide show
  1. package/lib/commonjs/HMSRoomSetup.js +8 -0
  2. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  3. package/lib/commonjs/Icons/Pause/assets/pause-med.png +0 -0
  4. package/lib/commonjs/Icons/Pause/assets/pause-med@2x.png +0 -0
  5. package/lib/commonjs/Icons/Pause/assets/pause-med@3x.png +0 -0
  6. package/lib/commonjs/Icons/Pause/index.js +35 -0
  7. package/lib/commonjs/Icons/Pause/index.js.map +1 -0
  8. package/lib/commonjs/Icons/Pencil/assets/pencil-board.png +0 -0
  9. package/lib/commonjs/Icons/Pencil/assets/pencil-board@2x.png +0 -0
  10. package/lib/commonjs/Icons/Pencil/assets/pencil-board@3x.png +0 -0
  11. package/lib/commonjs/Icons/Pencil/index.js +2 -1
  12. package/lib/commonjs/Icons/Pencil/index.js.map +1 -1
  13. package/lib/commonjs/Icons/Play/assets/play-med.png +0 -0
  14. package/lib/commonjs/Icons/Play/assets/play-med@2x.png +0 -0
  15. package/lib/commonjs/Icons/Play/assets/play-med@3x.png +0 -0
  16. package/lib/commonjs/Icons/Play/index.js +35 -0
  17. package/lib/commonjs/Icons/Play/index.js.map +1 -0
  18. package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
  19. package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
  20. package/lib/commonjs/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
  21. package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
  22. package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
  23. package/lib/commonjs/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
  24. package/lib/commonjs/Icons/SeekArrow/index.js +34 -0
  25. package/lib/commonjs/Icons/SeekArrow/index.js.map +1 -0
  26. package/lib/commonjs/Icons/index.js +33 -0
  27. package/lib/commonjs/Icons/index.js.map +1 -1
  28. package/lib/commonjs/components/DisplayView.js +2 -1
  29. package/lib/commonjs/components/DisplayView.js.map +1 -1
  30. package/lib/commonjs/components/Footer.js +1 -1
  31. package/lib/commonjs/components/Footer.js.map +1 -1
  32. package/lib/commonjs/components/FullScreenWhiteboard.js +58 -0
  33. package/lib/commonjs/components/FullScreenWhiteboard.js.map +1 -0
  34. package/lib/commonjs/components/GridView.js +6 -4
  35. package/lib/commonjs/components/GridView.js.map +1 -1
  36. package/lib/commonjs/components/HLSChatMessages.js +4 -5
  37. package/lib/commonjs/components/HLSChatMessages.js.map +1 -1
  38. package/lib/commonjs/components/HLSChatView.js +7 -2
  39. package/lib/commonjs/components/HLSChatView.js.map +1 -1
  40. package/lib/commonjs/components/HLSCloseMeetingControl.js +41 -0
  41. package/lib/commonjs/components/HLSCloseMeetingControl.js.map +1 -0
  42. package/lib/commonjs/components/HLSClosedCaptionControl.js +109 -0
  43. package/lib/commonjs/components/HLSClosedCaptionControl.js.map +1 -0
  44. package/lib/commonjs/components/HLSDistanceFromLive.js +56 -0
  45. package/lib/commonjs/components/HLSDistanceFromLive.js.map +1 -0
  46. package/lib/commonjs/components/HLSFullScreenControl.js +42 -0
  47. package/lib/commonjs/components/HLSFullScreenControl.js.map +1 -0
  48. package/lib/commonjs/components/HLSGoLiveControl.js +78 -0
  49. package/lib/commonjs/components/HLSGoLiveControl.js.map +1 -0
  50. package/lib/commonjs/components/HLSPlayPauseControl.js +62 -0
  51. package/lib/commonjs/components/HLSPlayPauseControl.js.map +1 -0
  52. package/lib/commonjs/components/HLSPlayer.js +82 -81
  53. package/lib/commonjs/components/HLSPlayer.js.map +1 -1
  54. package/lib/commonjs/components/HLSPlayerContainer.js +65 -3
  55. package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -1
  56. package/lib/commonjs/components/HLSPlayerControls.js +89 -46
  57. package/lib/commonjs/components/HLSPlayerControls.js.map +1 -1
  58. package/lib/commonjs/components/HLSSeekbackwardControl.js +67 -0
  59. package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -0
  60. package/lib/commonjs/components/HLSSeekbar.js +285 -0
  61. package/lib/commonjs/components/HLSSeekbar.js.map +1 -0
  62. package/lib/commonjs/components/HLSSeekforwardControl.js +71 -0
  63. package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -0
  64. package/lib/commonjs/components/HMSHLSMessage.js +19 -41
  65. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
  66. package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
  67. package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
  68. package/lib/commonjs/components/HMSOverlayMessageView.js +150 -0
  69. package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -0
  70. package/lib/commonjs/components/MeetingScreenContent.js +22 -2
  71. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  72. package/lib/commonjs/components/Participants/ParticipantsList.js +4 -4
  73. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  74. package/lib/commonjs/components/RoomSettingsModalContent.js +63 -6
  75. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  76. package/lib/commonjs/components/TilesContainer.js +4 -4
  77. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  78. package/lib/commonjs/components/WebrtcView.js +2 -2
  79. package/lib/commonjs/components/WebrtcView.js.map +1 -1
  80. package/lib/commonjs/components/Whiteboard.js +72 -0
  81. package/lib/commonjs/components/Whiteboard.js.map +1 -0
  82. package/lib/commonjs/components/WhiteboardContainer.js +35 -0
  83. package/lib/commonjs/components/WhiteboardContainer.js.map +1 -0
  84. package/lib/commonjs/components/WhiteboardFullScreenButton.js +42 -0
  85. package/lib/commonjs/components/WhiteboardFullScreenButton.js.map +1 -0
  86. package/lib/commonjs/hooks-util.js +66 -8
  87. package/lib/commonjs/hooks-util.js.map +1 -1
  88. package/lib/commonjs/redux/actionTypes.js +5 -0
  89. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  90. package/lib/commonjs/redux/actions/index.js +22 -3
  91. package/lib/commonjs/redux/actions/index.js.map +1 -1
  92. package/lib/commonjs/redux/reducers/appState.js +17 -1
  93. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  94. package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
  95. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  96. package/lib/module/HMSRoomSetup.js +10 -2
  97. package/lib/module/HMSRoomSetup.js.map +1 -1
  98. package/lib/module/Icons/Pause/assets/pause-med.png +0 -0
  99. package/lib/module/Icons/Pause/assets/pause-med@2x.png +0 -0
  100. package/lib/module/Icons/Pause/assets/pause-med@3x.png +0 -0
  101. package/lib/module/Icons/Pause/index.js +27 -0
  102. package/lib/module/Icons/Pause/index.js.map +1 -0
  103. package/lib/module/Icons/Pencil/assets/pencil-board.png +0 -0
  104. package/lib/module/Icons/Pencil/assets/pencil-board@2x.png +0 -0
  105. package/lib/module/Icons/Pencil/assets/pencil-board@3x.png +0 -0
  106. package/lib/module/Icons/Pencil/index.js +2 -1
  107. package/lib/module/Icons/Pencil/index.js.map +1 -1
  108. package/lib/module/Icons/Play/assets/play-med.png +0 -0
  109. package/lib/module/Icons/Play/assets/play-med@2x.png +0 -0
  110. package/lib/module/Icons/Play/assets/play-med@3x.png +0 -0
  111. package/lib/module/Icons/Play/index.js +27 -0
  112. package/lib/module/Icons/Play/index.js.map +1 -0
  113. package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
  114. package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
  115. package/lib/module/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
  116. package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
  117. package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
  118. package/lib/module/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
  119. package/lib/module/Icons/SeekArrow/index.js +26 -0
  120. package/lib/module/Icons/SeekArrow/index.js.map +1 -0
  121. package/lib/module/Icons/index.js +3 -0
  122. package/lib/module/Icons/index.js.map +1 -1
  123. package/lib/module/components/DisplayView.js +2 -1
  124. package/lib/module/components/DisplayView.js.map +1 -1
  125. package/lib/module/components/Footer.js +1 -1
  126. package/lib/module/components/Footer.js.map +1 -1
  127. package/lib/module/components/FullScreenWhiteboard.js +48 -0
  128. package/lib/module/components/FullScreenWhiteboard.js.map +1 -0
  129. package/lib/module/components/GridView.js +6 -4
  130. package/lib/module/components/GridView.js.map +1 -1
  131. package/lib/module/components/HLSChatMessages.js +5 -6
  132. package/lib/module/components/HLSChatMessages.js.map +1 -1
  133. package/lib/module/components/HLSChatView.js +7 -2
  134. package/lib/module/components/HLSChatView.js.map +1 -1
  135. package/lib/module/components/HLSCloseMeetingControl.js +33 -0
  136. package/lib/module/components/HLSCloseMeetingControl.js.map +1 -0
  137. package/lib/module/components/HLSClosedCaptionControl.js +100 -0
  138. package/lib/module/components/HLSClosedCaptionControl.js.map +1 -0
  139. package/lib/module/components/HLSDistanceFromLive.js +48 -0
  140. package/lib/module/components/HLSDistanceFromLive.js.map +1 -0
  141. package/lib/module/components/HLSFullScreenControl.js +34 -0
  142. package/lib/module/components/HLSFullScreenControl.js.map +1 -0
  143. package/lib/module/components/HLSGoLiveControl.js +70 -0
  144. package/lib/module/components/HLSGoLiveControl.js.map +1 -0
  145. package/lib/module/components/HLSPlayPauseControl.js +54 -0
  146. package/lib/module/components/HLSPlayPauseControl.js.map +1 -0
  147. package/lib/module/components/HLSPlayer.js +83 -81
  148. package/lib/module/components/HLSPlayer.js.map +1 -1
  149. package/lib/module/components/HLSPlayerContainer.js +65 -3
  150. package/lib/module/components/HLSPlayerContainer.js.map +1 -1
  151. package/lib/module/components/HLSPlayerControls.js +89 -50
  152. package/lib/module/components/HLSPlayerControls.js.map +1 -1
  153. package/lib/module/components/HLSSeekbackwardControl.js +59 -0
  154. package/lib/module/components/HLSSeekbackwardControl.js.map +1 -0
  155. package/lib/module/components/HLSSeekbar.js +276 -0
  156. package/lib/module/components/HLSSeekbar.js.map +1 -0
  157. package/lib/module/components/HLSSeekforwardControl.js +63 -0
  158. package/lib/module/components/HLSSeekforwardControl.js.map +1 -0
  159. package/lib/module/components/HMSHLSMessage.js +19 -41
  160. package/lib/module/components/HMSHLSMessage.js.map +1 -1
  161. package/lib/module/components/HMSHLSMessageList.js +2 -2
  162. package/lib/module/components/HMSHLSMessageList.js.map +1 -1
  163. package/lib/module/components/HMSOverlayMessageView.js +142 -0
  164. package/lib/module/components/HMSOverlayMessageView.js.map +1 -0
  165. package/lib/module/components/MeetingScreenContent.js +23 -3
  166. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  167. package/lib/module/components/Participants/ParticipantsList.js +4 -4
  168. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  169. package/lib/module/components/RoomSettingsModalContent.js +65 -8
  170. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  171. package/lib/module/components/TilesContainer.js +4 -4
  172. package/lib/module/components/TilesContainer.js.map +1 -1
  173. package/lib/module/components/WebrtcView.js +2 -2
  174. package/lib/module/components/WebrtcView.js.map +1 -1
  175. package/lib/module/components/Whiteboard.js +64 -0
  176. package/lib/module/components/Whiteboard.js.map +1 -0
  177. package/lib/module/components/WhiteboardContainer.js +27 -0
  178. package/lib/module/components/WhiteboardContainer.js.map +1 -0
  179. package/lib/module/components/WhiteboardFullScreenButton.js +33 -0
  180. package/lib/module/components/WhiteboardFullScreenButton.js.map +1 -0
  181. package/lib/module/hooks-util.js +66 -9
  182. package/lib/module/hooks-util.js.map +1 -1
  183. package/lib/module/redux/actionTypes.js +5 -0
  184. package/lib/module/redux/actionTypes.js.map +1 -1
  185. package/lib/module/redux/actions/index.js +16 -0
  186. package/lib/module/redux/actions/index.js.map +1 -1
  187. package/lib/module/redux/reducers/appState.js +17 -1
  188. package/lib/module/redux/reducers/appState.js.map +1 -1
  189. package/lib/module/redux/reducers/hmsStates.js +7 -1
  190. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  191. package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
  192. package/lib/typescript/Icons/Pause/index.d.ts +8 -0
  193. package/lib/typescript/Icons/Pause/index.d.ts.map +1 -0
  194. package/lib/typescript/Icons/Pencil/index.d.ts +1 -0
  195. package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -1
  196. package/lib/typescript/Icons/Play/index.d.ts +8 -0
  197. package/lib/typescript/Icons/Play/index.d.ts.map +1 -0
  198. package/lib/typescript/Icons/SeekArrow/index.d.ts +8 -0
  199. package/lib/typescript/Icons/SeekArrow/index.d.ts.map +1 -0
  200. package/lib/typescript/Icons/index.d.ts +3 -0
  201. package/lib/typescript/Icons/index.d.ts.map +1 -1
  202. package/lib/typescript/components/CustomButton.d.ts +5 -5
  203. package/lib/typescript/components/CustomButton.d.ts.map +1 -1
  204. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  205. package/lib/typescript/components/Footer.d.ts.map +1 -1
  206. package/lib/typescript/components/FullScreenWhiteboard.d.ts +3 -0
  207. package/lib/typescript/components/FullScreenWhiteboard.d.ts.map +1 -0
  208. package/lib/typescript/components/GridView.d.ts.map +1 -1
  209. package/lib/typescript/components/HLSChatMessages.d.ts.map +1 -1
  210. package/lib/typescript/components/HLSChatView.d.ts.map +1 -1
  211. package/lib/typescript/components/HLSCloseMeetingControl.d.ts +8 -0
  212. package/lib/typescript/components/HLSCloseMeetingControl.d.ts.map +1 -0
  213. package/lib/typescript/components/HLSClosedCaptionControl.d.ts +10 -0
  214. package/lib/typescript/components/HLSClosedCaptionControl.d.ts.map +1 -0
  215. package/lib/typescript/components/HLSDistanceFromLive.d.ts +8 -0
  216. package/lib/typescript/components/HLSDistanceFromLive.d.ts.map +1 -0
  217. package/lib/typescript/components/HLSFullScreenControl.d.ts +8 -0
  218. package/lib/typescript/components/HLSFullScreenControl.d.ts.map +1 -0
  219. package/lib/typescript/components/HLSGoLiveControl.d.ts +10 -0
  220. package/lib/typescript/components/HLSGoLiveControl.d.ts.map +1 -0
  221. package/lib/typescript/components/HLSPlayPauseControl.d.ts +8 -0
  222. package/lib/typescript/components/HLSPlayPauseControl.d.ts.map +1 -0
  223. package/lib/typescript/components/HLSPlayer.d.ts +4 -2
  224. package/lib/typescript/components/HLSPlayer.d.ts.map +1 -1
  225. package/lib/typescript/components/HLSPlayerContainer.d.ts.map +1 -1
  226. package/lib/typescript/components/HLSPlayerControls.d.ts +12 -2
  227. package/lib/typescript/components/HLSPlayerControls.d.ts.map +1 -1
  228. package/lib/typescript/components/HLSSeekbackwardControl.d.ts +8 -0
  229. package/lib/typescript/components/HLSSeekbackwardControl.d.ts.map +1 -0
  230. package/lib/typescript/components/HLSSeekbar.d.ts +66 -0
  231. package/lib/typescript/components/HLSSeekbar.d.ts.map +1 -0
  232. package/lib/typescript/components/HLSSeekforwardControl.d.ts +8 -0
  233. package/lib/typescript/components/HLSSeekforwardControl.d.ts.map +1 -0
  234. package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -1
  235. package/lib/typescript/components/HMSOverlayMessageView.d.ts +8 -0
  236. package/lib/typescript/components/HMSOverlayMessageView.d.ts.map +1 -0
  237. package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
  238. package/lib/typescript/components/Modals.d.ts +3 -3
  239. package/lib/typescript/components/Modals.d.ts.map +1 -1
  240. package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
  241. package/lib/typescript/components/Preview.d.ts.map +1 -1
  242. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  243. package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
  244. package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
  245. package/lib/typescript/components/Whiteboard.d.ts +6 -0
  246. package/lib/typescript/components/Whiteboard.d.ts.map +1 -0
  247. package/lib/typescript/components/WhiteboardContainer.d.ts +6 -0
  248. package/lib/typescript/components/WhiteboardContainer.d.ts.map +1 -0
  249. package/lib/typescript/components/WhiteboardFullScreenButton.d.ts +5 -0
  250. package/lib/typescript/components/WhiteboardFullScreenButton.d.ts.map +1 -0
  251. package/lib/typescript/hooks-util.d.ts +12 -7
  252. package/lib/typescript/hooks-util.d.ts.map +1 -1
  253. package/lib/typescript/redux/actionTypes.d.ts +3 -0
  254. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  255. package/lib/typescript/redux/actions/index.d.ts +17 -1
  256. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  257. package/lib/typescript/redux/index.d.ts +19 -16
  258. package/lib/typescript/redux/index.d.ts.map +1 -1
  259. package/lib/typescript/redux/reducers/appState.d.ts +2 -0
  260. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  261. package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -2
  262. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  263. package/lib/typescript/redux/reducers/index.d.ts +19 -16
  264. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  265. package/package.json +4 -3
  266. package/src/HMSRoomSetup.tsx +21 -0
  267. package/src/Icons/Pause/assets/pause-med.png +0 -0
  268. package/src/Icons/Pause/assets/pause-med@2x.png +0 -0
  269. package/src/Icons/Pause/assets/pause-med@3x.png +0 -0
  270. package/src/Icons/Pause/index.tsx +36 -0
  271. package/src/Icons/Pencil/assets/pencil-board.png +0 -0
  272. package/src/Icons/Pencil/assets/pencil-board@2x.png +0 -0
  273. package/src/Icons/Pencil/assets/pencil-board@3x.png +0 -0
  274. package/src/Icons/Pencil/index.tsx +9 -2
  275. package/src/Icons/Play/assets/play-med.png +0 -0
  276. package/src/Icons/Play/assets/play-med@2x.png +0 -0
  277. package/src/Icons/Play/assets/play-med@3x.png +0 -0
  278. package/src/Icons/Play/index.tsx +36 -0
  279. package/src/Icons/SeekArrow/assets/seek-backward-arrow.png +0 -0
  280. package/src/Icons/SeekArrow/assets/seek-backward-arrow@2x.png +0 -0
  281. package/src/Icons/SeekArrow/assets/seek-backward-arrow@3x.png +0 -0
  282. package/src/Icons/SeekArrow/assets/seek-forward-arrow.png +0 -0
  283. package/src/Icons/SeekArrow/assets/seek-forward-arrow@2x.png +0 -0
  284. package/src/Icons/SeekArrow/assets/seek-forward-arrow@3x.png +0 -0
  285. package/src/Icons/SeekArrow/index.tsx +40 -0
  286. package/src/Icons/index.ts +3 -0
  287. package/src/components/DisplayView.tsx +3 -0
  288. package/src/components/Footer.tsx +5 -2
  289. package/src/components/FullScreenWhiteboard.tsx +59 -0
  290. package/src/components/GridView.tsx +14 -5
  291. package/src/components/HLSChatMessages.tsx +4 -6
  292. package/src/components/HLSChatView.tsx +7 -4
  293. package/src/components/HLSCloseMeetingControl.tsx +39 -0
  294. package/src/components/HLSClosedCaptionControl.tsx +140 -0
  295. package/src/components/HLSDistanceFromLive.tsx +69 -0
  296. package/src/components/HLSFullScreenControl.tsx +46 -0
  297. package/src/components/HLSGoLiveControl.tsx +104 -0
  298. package/src/components/HLSPlayPauseControl.tsx +69 -0
  299. package/src/components/HLSPlayer.tsx +98 -88
  300. package/src/components/HLSPlayerContainer.tsx +89 -14
  301. package/src/components/HLSPlayerControls.tsx +137 -58
  302. package/src/components/HLSSeekbackwardControl.tsx +88 -0
  303. package/src/components/HLSSeekbar.tsx +381 -0
  304. package/src/components/HLSSeekforwardControl.tsx +97 -0
  305. package/src/components/HMSHLSMessage.tsx +32 -49
  306. package/src/components/HMSHLSMessageList.tsx +2 -2
  307. package/src/components/HMSOverlayMessageView.tsx +189 -0
  308. package/src/components/MeetingScreenContent.tsx +28 -2
  309. package/src/components/Participants/ParticipantsList.tsx +12 -10
  310. package/src/components/RoomSettingsModalContent.tsx +77 -2
  311. package/src/components/TilesContainer.tsx +7 -5
  312. package/src/components/WebrtcView.tsx +11 -4
  313. package/src/components/Whiteboard.tsx +101 -0
  314. package/src/components/WhiteboardContainer.tsx +35 -0
  315. package/src/components/WhiteboardFullScreenButton.tsx +52 -0
  316. package/src/hooks-util.ts +80 -10
  317. package/src/redux/actionTypes.ts +7 -0
  318. package/src/redux/actions/index.ts +16 -0
  319. package/src/redux/reducers/appState.ts +16 -0
  320. package/src/redux/reducers/hmsStates.ts +15 -1
  321. package/lib/commonjs/components/CustomHLSPlayerControls.js +0 -80
  322. package/lib/commonjs/components/CustomHLSPlayerControls.js.map +0 -1
  323. package/lib/module/components/CustomHLSPlayerControls.js +0 -72
  324. package/lib/module/components/CustomHLSPlayerControls.js.map +0 -1
  325. package/lib/typescript/components/CustomHLSPlayerControls.d.ts +0 -7
  326. package/lib/typescript/components/CustomHLSPlayerControls.d.ts.map +0 -1
  327. package/src/components/CustomHLSPlayerControls.tsx +0 -92
@@ -1,11 +1,11 @@
1
1
  export declare const store: import("redux").Store<import("redux").EmptyObject & {
2
2
  messages: {
3
3
  messages: import("@100mslive/react-native-hms").HMSMessage[];
4
- pinnedMessages: import("src/types").PinnedMessage[];
4
+ pinnedMessages: import("../types").PinnedMessage[];
5
5
  };
6
6
  app: {
7
- peerState: import("src/utils/types").PeerTrackNode[];
8
- pipModeStatus: import("src/utils/types").PipModes;
7
+ peerState: import("../utils/types").PeerTrackNode[];
8
+ pipModeStatus: import("../utils/types").PipModes;
9
9
  rtcStats: Record<string, import("@100mslive/react-native-hms").HMSLocalAudioStats | import("@100mslive/react-native-hms").HMSRemoteAudioStats | import("@100mslive/react-native-hms").HMSRemoteVideoStats | import("@100mslive/react-native-hms").HMSLocalVideoStats[] | undefined>;
10
10
  hlsAspectRatio: {
11
11
  value: number;
@@ -19,22 +19,23 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
19
19
  enableHLSPlayerControls: boolean;
20
20
  showCustomHLSPlayerControls: boolean;
21
21
  };
22
- modalType: import("src/utils/types").ModalTypes;
22
+ modalType: import("../utils/types").ModalTypes;
23
23
  peerToUpdate: import("@100mslive/react-native-hms").HMSPeer | null;
24
- meetingState: import("src/types").MeetingState;
24
+ meetingState: import("../types").MeetingState;
25
25
  startingHLSStream: boolean;
26
26
  insetViewMinimized: boolean;
27
- miniviewPeerTrackNode: import("src/utils/types").PeerTrackNode | null;
28
- localPeerTrackNode: import("src/utils/types").PeerTrackNode | null;
27
+ miniviewPeerTrackNode: import("../utils/types").PeerTrackNode | null;
28
+ localPeerTrackNode: import("../utils/types").PeerTrackNode | null;
29
29
  gridViewActivePage: number;
30
30
  startingOrStoppingRecording: boolean;
31
- fullScreenPeerTrackNode: import("src/utils/types").PeerTrackNode | null;
32
- screensharePeerTrackNodes: import("src/utils/types").PeerTrackNode[];
33
- notifications: import("src/types").Notification[];
31
+ fullScreenPeerTrackNode: import("../utils/types").PeerTrackNode | null;
32
+ fullScreenWhiteboard: boolean;
33
+ screensharePeerTrackNodes: import("../utils/types").PeerTrackNode[];
34
+ notifications: import("../types").Notification[];
34
35
  activeChatBottomSheetTab: "Chat" | "Participants";
35
36
  chatFilterSheetVisible: boolean;
36
37
  chatMoreActionsSheetVisible: boolean;
37
- chatState: import("src/types").ChatState | null;
38
+ chatState: import("../types").ChatState | null;
38
39
  handleBackButton: boolean;
39
40
  autoEnterPipMode: boolean;
40
41
  editUsernameDisabled: boolean;
@@ -43,6 +44,7 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
43
44
  chatPeerBlacklist: string[];
44
45
  hlsDescriptionPaneVisible: boolean;
45
46
  hlsFullScreen: boolean;
47
+ hlsStreamPaused_android: boolean;
46
48
  };
47
49
  user: {
48
50
  userName: string;
@@ -61,8 +63,8 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
61
63
  token: string | undefined;
62
64
  isHLSFlow: boolean;
63
65
  roles: import("@100mslive/react-native-hms").HMSRole[];
64
- iosBuildConfig: import("@100mslive/react-native-room-kit").HMSIOSScreenShareConfig | null;
65
- onLeave: import("@100mslive/react-native-room-kit").OnLeaveHandler | undefined;
66
+ iosBuildConfig: import("..").HMSIOSScreenShareConfig | null;
67
+ onLeave: import("..").OnLeaveHandler | undefined;
66
68
  };
67
69
  hmsStates: {
68
70
  isLocalAudioMuted: boolean | undefined;
@@ -79,6 +81,7 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
79
81
  layoutConfig: import("@100mslive/types-prebuilt").Layout[] | null;
80
82
  roleChangeRequest: import("@100mslive/react-native-hms").HMSRoleChangeRequest | null;
81
83
  noiseCancellationPlugin: import("@100mslive/react-native-hms").HMSNoiseCancellationPlugin | null;
84
+ whiteboard: import("@100mslive/react-native-hms").HMSWhiteboard | null;
82
85
  };
83
86
  chatWindow: {
84
87
  showChatView: boolean;
@@ -89,9 +92,9 @@ export declare const store: import("redux").Store<import("redux").EmptyObject &
89
92
  };
90
93
  polls: {
91
94
  pollName: string;
92
- pollConfig: import("src/redux/actionTypes").PollConfig;
93
- navigationStack: import("src/redux/actionTypes").CreatePollStages[];
94
- questions: import("src/redux/actionTypes").PollQuestionUI[];
95
+ pollConfig: import("./actionTypes").PollConfig;
96
+ navigationStack: import("./actionTypes").CreatePollStages[];
97
+ questions: import("./actionTypes").PollQuestionUI[];
95
98
  deleteConfirmationVisible: boolean;
96
99
  selectedPollQuestionIndex: number | null;
97
100
  launchingPoll: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/redux/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA2B,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/redux/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA2B,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC"}
@@ -37,6 +37,7 @@ type IntialStateType = {
37
37
  gridViewActivePage: number;
38
38
  startingOrStoppingRecording: boolean;
39
39
  fullScreenPeerTrackNode: null | PeerTrackNode;
40
+ fullScreenWhiteboard: boolean;
40
41
  screensharePeerTrackNodes: PeerTrackNode[];
41
42
  notifications: Notification[];
42
43
  activeChatBottomSheetTab: (typeof ChatBottomSheetTabs)[number];
@@ -51,6 +52,7 @@ type IntialStateType = {
51
52
  chatPeerBlacklist: string[];
52
53
  hlsDescriptionPaneVisible: boolean;
53
54
  hlsFullScreen: boolean;
55
+ hlsStreamPaused_android: boolean;
54
56
  };
55
57
  declare const appReducer: (state: IntialStateType | undefined, action: ActionType) => IntialStateType;
56
58
  export default appReducer;
@@ -1 +1 @@
1
- {"version":3,"file":"appState.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/appState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAA2B,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACR,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,YA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IAAI,GAAG,UAAU,CAAC;IAC5C,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,yBAAyB,EAAE,OAAO,CAAC;IACnC,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AA2CF,QAAA,MAAM,UAAU,+CAEN,UAAU,KACjB,eA0RF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { HMSLocalPeer, HMSNoiseCancellationPlugin, HMSPeer, HMSRole, HMSRoleChangeRequest, HMSRoom, HMSSpeaker } from '@100mslive/react-native-hms';
1
+ import type { HMSLocalPeer, HMSNoiseCancellationPlugin, HMSPeer, HMSRole, HMSRoleChangeRequest, HMSRoom, HMSSpeaker, HMSWhiteboard } from '@100mslive/react-native-hms';
2
2
  import type { Layout } from '@100mslive/types-prebuilt';
3
3
  import { HmsStateActionTypes } from '../actionTypes';
4
- type ActionType = SetRoomAction | SetLocalPeerAction | SetRolesAction | SetIsLocalAudioMutedAction | SetIsLocalVideoMutedAction | SetIsLocalScreenSharedAction | SetRoomLocallyMutedAction | ResetAction | AddToPreviewPeersList | RemoveFromPreviewPeersList | SetLayoutConfig | SetRoleChangeRequest | AddParticipant | AddParticipants | RemoveParticipant | RemoveParticipants | AddUpdateParticipant | ReplaceParticipantsList | SetActiveSpeakers | SetReconnecting | SetNoiseCancellationPlugin;
4
+ type ActionType = SetRoomAction | SetLocalPeerAction | SetRolesAction | SetIsLocalAudioMutedAction | SetIsLocalVideoMutedAction | SetIsLocalScreenSharedAction | SetRoomLocallyMutedAction | ResetAction | AddToPreviewPeersList | RemoveFromPreviewPeersList | SetLayoutConfig | SetRoleChangeRequest | AddParticipant | AddParticipants | RemoveParticipant | RemoveParticipants | AddUpdateParticipant | ReplaceParticipantsList | SetActiveSpeakers | SetReconnecting | SetNoiseCancellationPlugin | SetWhiteboard;
5
5
  type SetRoomAction = {
6
6
  type: HmsStateActionTypes.SET_ROOM_STATE;
7
7
  room: HMSRoom | null;
@@ -86,6 +86,10 @@ type SetNoiseCancellationPlugin = {
86
86
  type: HmsStateActionTypes.SET_NOISE_CANCELLATION_PLUGIN;
87
87
  noiseCancellationPlugin: HMSNoiseCancellationPlugin;
88
88
  };
89
+ type SetWhiteboard = {
90
+ type: HmsStateActionTypes.SET_WHITEBOARD;
91
+ whiteboard: HMSWhiteboard | null;
92
+ };
89
93
  type IntialStateType = {
90
94
  isLocalAudioMuted: boolean | undefined;
91
95
  isLocalVideoMuted: boolean | undefined;
@@ -101,6 +105,7 @@ type IntialStateType = {
101
105
  layoutConfig: Layout[] | null;
102
106
  roleChangeRequest: HMSRoleChangeRequest | null;
103
107
  noiseCancellationPlugin: HMSNoiseCancellationPlugin | null;
108
+ whiteboard: HMSWhiteboard | null;
104
109
  };
105
110
  declare const hmsStatesReducer: (state: IntialStateType | undefined, action: ActionType) => IntialStateType;
106
111
  export default hmsStatesReducer;
@@ -1 +1 @@
1
- {"version":3,"file":"hmsStates.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/hmsStates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,0BAA0B,EAC1B,OAAO,EACP,OAAO,EACP,oBAAoB,EACpB,OAAO,EACP,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,KAAK,UAAU,GACX,aAAa,GACb,kBAAkB,GAClB,cAAc,GACd,0BAA0B,GAC1B,0BAA0B,GAC1B,4BAA4B,GAC5B,yBAAyB,GACzB,WAAW,GACX,qBAAqB,GACrB,0BAA0B,GAC1B,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,uBAAuB,GACvB,iBAAi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AAA,MAAM,gBAAgB,+CAEZ,UAAU,KACjB,eAsZF,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  declare const _default: import("redux").Reducer<import("redux").CombinedState<{
2
2
  messages: {
3
3
  messages: import("@100mslive/react-native-hms").HMSMessage[];
4
- pinnedMessages: import("src/types").PinnedMessage[];
4
+ pinnedMessages: import("../../types").PinnedMessage[];
5
5
  };
6
6
  app: {
7
- peerState: import("src/utils/types").PeerTrackNode[];
8
- pipModeStatus: import("src/utils/types").PipModes;
7
+ peerState: import("../../utils/types").PeerTrackNode[];
8
+ pipModeStatus: import("../../utils/types").PipModes;
9
9
  rtcStats: Record<string, import("@100mslive/react-native-hms").HMSLocalAudioStats | import("@100mslive/react-native-hms").HMSRemoteAudioStats | import("@100mslive/react-native-hms").HMSRemoteVideoStats | import("@100mslive/react-native-hms").HMSLocalVideoStats[] | undefined>;
10
10
  hlsAspectRatio: {
11
11
  value: number;
@@ -19,22 +19,23 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
19
19
  enableHLSPlayerControls: boolean;
20
20
  showCustomHLSPlayerControls: boolean;
21
21
  };
22
- modalType: import("src/utils/types").ModalTypes;
22
+ modalType: import("../../utils/types").ModalTypes;
23
23
  peerToUpdate: import("@100mslive/react-native-hms").HMSPeer | null;
24
- meetingState: import("src/types").MeetingState;
24
+ meetingState: import("../../types").MeetingState;
25
25
  startingHLSStream: boolean;
26
26
  insetViewMinimized: boolean;
27
- miniviewPeerTrackNode: import("src/utils/types").PeerTrackNode | null;
28
- localPeerTrackNode: import("src/utils/types").PeerTrackNode | null;
27
+ miniviewPeerTrackNode: import("../../utils/types").PeerTrackNode | null;
28
+ localPeerTrackNode: import("../../utils/types").PeerTrackNode | null;
29
29
  gridViewActivePage: number;
30
30
  startingOrStoppingRecording: boolean;
31
- fullScreenPeerTrackNode: import("src/utils/types").PeerTrackNode | null;
32
- screensharePeerTrackNodes: import("src/utils/types").PeerTrackNode[];
33
- notifications: import("src/types").Notification[];
31
+ fullScreenPeerTrackNode: import("../../utils/types").PeerTrackNode | null;
32
+ fullScreenWhiteboard: boolean;
33
+ screensharePeerTrackNodes: import("../../utils/types").PeerTrackNode[];
34
+ notifications: import("../../types").Notification[];
34
35
  activeChatBottomSheetTab: "Chat" | "Participants";
35
36
  chatFilterSheetVisible: boolean;
36
37
  chatMoreActionsSheetVisible: boolean;
37
- chatState: import("src/types").ChatState | null;
38
+ chatState: import("../../types").ChatState | null;
38
39
  handleBackButton: boolean;
39
40
  autoEnterPipMode: boolean;
40
41
  editUsernameDisabled: boolean;
@@ -43,6 +44,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
43
44
  chatPeerBlacklist: string[];
44
45
  hlsDescriptionPaneVisible: boolean;
45
46
  hlsFullScreen: boolean;
47
+ hlsStreamPaused_android: boolean;
46
48
  };
47
49
  user: {
48
50
  userName: string;
@@ -61,8 +63,8 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
61
63
  token: string | undefined;
62
64
  isHLSFlow: boolean;
63
65
  roles: import("@100mslive/react-native-hms").HMSRole[];
64
- iosBuildConfig: import("@100mslive/react-native-room-kit").HMSIOSScreenShareConfig | null;
65
- onLeave: import("@100mslive/react-native-room-kit").OnLeaveHandler | undefined;
66
+ iosBuildConfig: import("../..").HMSIOSScreenShareConfig | null;
67
+ onLeave: import("../..").OnLeaveHandler | undefined;
66
68
  };
67
69
  hmsStates: {
68
70
  isLocalAudioMuted: boolean | undefined;
@@ -79,6 +81,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
79
81
  layoutConfig: import("@100mslive/types-prebuilt").Layout[] | null;
80
82
  roleChangeRequest: import("@100mslive/react-native-hms").HMSRoleChangeRequest | null;
81
83
  noiseCancellationPlugin: import("@100mslive/react-native-hms").HMSNoiseCancellationPlugin | null;
84
+ whiteboard: import("@100mslive/react-native-hms").HMSWhiteboard | null;
82
85
  };
83
86
  chatWindow: {
84
87
  showChatView: boolean;
@@ -89,9 +92,9 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
89
92
  };
90
93
  polls: {
91
94
  pollName: string;
92
- pollConfig: import("src/redux/actionTypes").PollConfig;
93
- navigationStack: import("src/redux/actionTypes").CreatePollStages[];
94
- questions: import("src/redux/actionTypes").PollQuestionUI[];
95
+ pollConfig: import("../actionTypes").PollConfig;
96
+ navigationStack: import("../actionTypes").CreatePollStages[];
97
+ questions: import("../actionTypes").PollQuestionUI[];
95
98
  deleteConfirmationVisible: boolean;
96
99
  selectedPollQuestionIndex: number | null;
97
100
  launchingPoll: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAOG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/reducers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAOG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@100mslive/react-native-room-kit",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -140,7 +140,7 @@
140
140
  "typescript": "^5.0.2"
141
141
  },
142
142
  "peerDependencies": {
143
- "@100mslive/react-native-hms": "1.10.3",
143
+ "@100mslive/react-native-hms": "1.10.5",
144
144
  "@react-native-community/blur": "^4.3.2",
145
145
  "@react-native-masked-view/masked-view": "^0.2.9",
146
146
  "@shopify/flash-list": "^1.4.3",
@@ -152,7 +152,8 @@
152
152
  "react-native-modal": "^12.1.0",
153
153
  "react-native-reanimated": ">=2.17.0",
154
154
  "react-native-safe-area-context": "^3.3.0",
155
- "react-native-simple-toast": "^1.1.3"
155
+ "react-native-simple-toast": "^1.1.3",
156
+ "react-native-webview": "^13.8.7"
156
157
  },
157
158
  "resolutions": {
158
159
  "@types/react": "17.0.21"
@@ -4,6 +4,7 @@ import {
4
4
  HMSRoom,
5
5
  HMSTrack,
6
6
  HMSUpdateListenerActions,
7
+ HMSWhiteboardUpdateType,
7
8
  } from '@100mslive/react-native-hms';
8
9
  import React, { useCallback, useEffect, useRef, useState } from 'react';
9
10
  import { Alert, Keyboard, StatusBar, StyleSheet, View } from 'react-native';
@@ -22,6 +23,7 @@ import {
22
23
  setInitialRole,
23
24
  setLocalPeerTrackNode,
24
25
  setMiniViewPeerTrackNode,
26
+ setWhiteboard,
25
27
  updateLocalPeerTrackNode,
26
28
  } from './redux/actions';
27
29
  import { createPeerTrackNode, getRandomUserId } from './utils/functions';
@@ -482,6 +484,25 @@ export const HMSRoomSetup = () => {
482
484
  };
483
485
  }, [isHLSViewer]);
484
486
 
487
+ useEffect(() => {
488
+ const subscription =
489
+ hmsInstance.interactivityCenter.addWhiteboardUpdateListener(
490
+ async (hmsWhiteboard, updateType) => {
491
+ dispatch(
492
+ setWhiteboard(
493
+ updateType === HMSWhiteboardUpdateType.STARTED
494
+ ? hmsWhiteboard
495
+ : null
496
+ )
497
+ );
498
+ }
499
+ );
500
+
501
+ return () => {
502
+ subscription.remove();
503
+ };
504
+ }, []);
505
+
485
506
  // Syncs showing Polls with HLS Player onCue event
486
507
  useHLSCuedPolls();
487
508
 
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { Image, StyleSheet } from 'react-native';
3
+ import type { ImageProps } from 'react-native';
4
+
5
+ interface PauseIconProps extends Omit<ImageProps, 'source'> {
6
+ size?: 'med';
7
+ }
8
+
9
+ export const PauseIcon: React.FC<PauseIconProps> = ({
10
+ style,
11
+ size = 'med',
12
+ ...restProps
13
+ }) => {
14
+ if (size !== 'med') return null;
15
+
16
+ return (
17
+ <Image
18
+ source={require('./assets/pause-med.png')}
19
+ style={[styles.icon, styles.medIcon, style]}
20
+ {...restProps}
21
+ />
22
+ );
23
+ };
24
+
25
+ const styles = StyleSheet.create({
26
+ icon: {
27
+ width: 24,
28
+ height: 24,
29
+ alignItems: 'center',
30
+ justifyContent: 'center',
31
+ },
32
+ medIcon: {
33
+ width: 48,
34
+ height: 48,
35
+ },
36
+ });
@@ -4,10 +4,13 @@ import type { ImageProps } from 'react-native';
4
4
 
5
5
  import { useHMSRoomStyle } from '../../hooks-util';
6
6
 
7
- interface PencilIconProps extends Omit<ImageProps, 'source'> {}
7
+ interface PencilIconProps extends Omit<ImageProps, 'source'> {
8
+ type?: 'normal' | 'board';
9
+ }
8
10
 
9
11
  export const PencilIcon: React.FC<PencilIconProps> = ({
10
12
  style,
13
+ type = 'normal',
11
14
  ...restProps
12
15
  }) => {
13
16
  const iconStyles = useHMSRoomStyle((theme) => ({
@@ -16,7 +19,11 @@ export const PencilIcon: React.FC<PencilIconProps> = ({
16
19
 
17
20
  return (
18
21
  <Image
19
- source={require('./assets/pencil.png')}
22
+ source={
23
+ type === 'board'
24
+ ? require('./assets/pencil-board.png')
25
+ : require('./assets/pencil.png')
26
+ }
20
27
  style={[styles.icon, iconStyles, style]}
21
28
  {...restProps}
22
29
  />
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { Image, StyleSheet } from 'react-native';
3
+ import type { ImageProps } from 'react-native';
4
+
5
+ interface PlayIconProps extends Omit<ImageProps, 'source'> {
6
+ size?: 'med';
7
+ }
8
+
9
+ export const PlayIcon: React.FC<PlayIconProps> = ({
10
+ style,
11
+ size = 'med',
12
+ ...restProps
13
+ }) => {
14
+ if (size !== 'med') return null;
15
+
16
+ return (
17
+ <Image
18
+ source={require('./assets/play-med.png')}
19
+ style={[styles.icon, styles.medIcon, style]}
20
+ {...restProps}
21
+ />
22
+ );
23
+ };
24
+
25
+ const styles = StyleSheet.create({
26
+ icon: {
27
+ width: 24,
28
+ height: 24,
29
+ alignItems: 'center',
30
+ justifyContent: 'center',
31
+ },
32
+ medIcon: {
33
+ width: 48,
34
+ height: 48,
35
+ },
36
+ });
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { Image, StyleSheet } from 'react-native';
3
+ import type { ImageProps } from 'react-native';
4
+
5
+ import { useHMSRoomStyle } from '../../hooks-util';
6
+
7
+ interface SeekArrowIconProps extends Omit<ImageProps, 'source'> {
8
+ type: 'forward' | 'backward';
9
+ }
10
+
11
+ export const SeekArrowIcon: React.FC<SeekArrowIconProps> = ({
12
+ style,
13
+ type,
14
+ ...restProps
15
+ }) => {
16
+ const iconStyles = useHMSRoomStyle((theme) => ({
17
+ tintColor: theme.palette.on_surface_high,
18
+ }));
19
+
20
+ return (
21
+ <Image
22
+ source={
23
+ type === 'forward'
24
+ ? require('./assets/seek-forward-arrow.png')
25
+ : require('./assets/seek-backward-arrow.png')
26
+ }
27
+ style={[styles.icon, iconStyles, style]}
28
+ {...restProps}
29
+ />
30
+ );
31
+ };
32
+
33
+ const styles = StyleSheet.create({
34
+ icon: {
35
+ width: 32,
36
+ height: 32,
37
+ alignItems: 'center',
38
+ justifyContent: 'center',
39
+ },
40
+ });
@@ -48,3 +48,6 @@ export * from './Add';
48
48
  export * from './PollVote';
49
49
  export * from './CheckBox';
50
50
  export * from './CC';
51
+ export * from './Pause';
52
+ export * from './Play';
53
+ export * from './SeekArrow';
@@ -31,6 +31,7 @@ import { PreviewForRoleChangeModal } from './PreviewForRoleChangeModal';
31
31
  import { ChatAndParticipantsBottomSheet } from './ChatAndParticipants';
32
32
  import { LeaveRoomBottomSheet } from './LeaveRoomBottomSheet';
33
33
  import { EndRoomModal } from './EndRoomModal';
34
+ import { FullScreenWhiteboard } from './FullScreenWhiteboard';
34
35
 
35
36
  type CapturedImagePath = { uri: string } | null;
36
37
 
@@ -143,6 +144,8 @@ export const DisplayView: React.FC<DisplayViewProps> = ({
143
144
 
144
145
  <FullScreenVideoView />
145
146
 
147
+ <FullScreenWhiteboard />
148
+
146
149
  <ChatAndParticipantsBottomSheet />
147
150
 
148
151
  <BottomSheet
@@ -118,8 +118,11 @@ export const useFooterHeight = (excludeSafeArea: boolean = false) => {
118
118
  const { bottom } = useSafeAreaInsets();
119
119
 
120
120
  return (
121
- (excludeSafeArea ? 0 : bottom) + (Platform.OS === 'android' ? 16 : 0) + 40
122
- ); // bottomSafeArea + marginBottom + content
121
+ (excludeSafeArea ? 0 : bottom) +
122
+ (Platform.OS === 'android' ? 16 : 0) +
123
+ 42 +
124
+ 16
125
+ ); // bottomSafeArea + marginBottom + content + contentTopPadding
123
126
  };
124
127
 
125
128
  const styles = StyleSheet.create({
@@ -0,0 +1,59 @@
1
+ import * as React from 'react';
2
+ import Modal from 'react-native-modal';
3
+ import { StyleSheet } from 'react-native';
4
+ import { useDispatch, useSelector } from 'react-redux';
5
+ import { SafeAreaView } from 'react-native-safe-area-context';
6
+
7
+ import type { RootState } from '../redux';
8
+ import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
9
+ import { setFullScreenWhiteboard } from '../redux/actions';
10
+ import { Whiteboard } from './Whiteboard';
11
+
12
+ export const FullScreenWhiteboard = () => {
13
+ const dispatch = useDispatch();
14
+ const fullScreenWhiteboard = useSelector(
15
+ (state: RootState) => state.app.fullScreenWhiteboard
16
+ );
17
+
18
+ const { background_dim: backgroundDimColor } = useHMSRoomColorPalette();
19
+
20
+ const contentContainerStyles = useHMSRoomStyle((theme) => ({
21
+ backgroundColor: theme.palette.background_dim,
22
+ }));
23
+
24
+ const handleClosingFullScreenView = () => {
25
+ dispatch(setFullScreenWhiteboard(false));
26
+ };
27
+
28
+ return (
29
+ <Modal
30
+ isVisible={fullScreenWhiteboard}
31
+ animationIn={'fadeInUp'}
32
+ animationInTiming={100}
33
+ animationOutTiming={100}
34
+ animationOut={'fadeOutDown'}
35
+ backdropColor={backgroundDimColor}
36
+ backdropOpacity={0.3}
37
+ onBackButtonPress={handleClosingFullScreenView}
38
+ onBackdropPress={handleClosingFullScreenView}
39
+ useNativeDriver={true}
40
+ useNativeDriverForBackdrop={true}
41
+ hideModalContentWhileAnimating={true}
42
+ style={styles.modal}
43
+ supportedOrientations={['portrait', 'landscape']}
44
+ >
45
+ <SafeAreaView style={[contentContainerStyles, styles.container]}>
46
+ <Whiteboard />
47
+ </SafeAreaView>
48
+ </Modal>
49
+ );
50
+ };
51
+
52
+ const styles = StyleSheet.create({
53
+ modal: {
54
+ margin: 0,
55
+ },
56
+ container: {
57
+ flexGrow: 1,
58
+ },
59
+ });