mediasfu-angular 1.0.0 → 1.0.2

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 (461) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +194 -192
  3. package/dist/README.md +194 -192
  4. package/dist/esm2022/lib/components/background-components/background-modal/background-modal.component.mjs +37 -1
  5. package/dist/esm2022/lib/components/breakout-components/breakout-rooms-modal.component.mjs +51 -1
  6. package/dist/esm2022/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.mjs +49 -1
  7. package/dist/esm2022/lib/components/co-host-components/co-host-modal/co-host-modal.component.mjs +1 -2
  8. package/dist/esm2022/lib/components/display-components/alert-component/alert.component.component.mjs +25 -19
  9. package/dist/esm2022/lib/components/display-components/audio-card/audio-card.component.mjs +60 -1
  10. package/dist/esm2022/lib/components/display-components/audio-grid/audio-grid.component.mjs +21 -1
  11. package/dist/esm2022/lib/components/display-components/card-video-display/card-video-display.component.mjs +36 -1
  12. package/dist/esm2022/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.mjs +39 -1
  13. package/dist/esm2022/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.mjs +25 -41
  14. package/dist/esm2022/lib/components/display-components/control-widgets/menu-participants-widget.component.mjs +22 -1
  15. package/dist/esm2022/lib/components/display-components/control-widgets/menu-record-widget.component.mjs +23 -1
  16. package/dist/esm2022/lib/components/display-components/control-widgets/menu-widget.component.mjs +24 -1
  17. package/dist/esm2022/lib/components/display-components/control-widgets/message-widget.component.mjs +24 -1
  18. package/dist/esm2022/lib/components/display-components/control-widgets/record-timer-widget.component.mjs +16 -1
  19. package/dist/esm2022/lib/components/display-components/control-widgets/screenshare-widget.component.mjs +28 -1
  20. package/dist/esm2022/lib/components/display-components/flexible-grid/flexible-grid.component.mjs +28 -19
  21. package/dist/esm2022/lib/components/display-components/flexible-video/flexible-video.component.mjs +31 -46
  22. package/dist/esm2022/lib/components/display-components/loading-modal/loading-modal.component.mjs +20 -18
  23. package/dist/esm2022/lib/components/display-components/main-aspect-component/main-aspect-component.component.mjs +33 -25
  24. package/dist/esm2022/lib/components/display-components/main-container-component/main-container-component.component.mjs +29 -17
  25. package/dist/esm2022/lib/components/display-components/main-grid-component/main-grid-component.component.mjs +29 -15
  26. package/dist/esm2022/lib/components/display-components/main-screen-component/main-screen-component.component.mjs +44 -23
  27. package/dist/esm2022/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.mjs +26 -31
  28. package/dist/esm2022/lib/components/display-components/mini-audio/mini-audio.component.mjs +52 -59
  29. package/dist/esm2022/lib/components/display-components/mini-card/mini-card.component.mjs +20 -24
  30. package/dist/esm2022/lib/components/display-components/mini-card-audio/mini-card-audio.component.mjs +40 -40
  31. package/dist/esm2022/lib/components/display-components/other-grid-component/other-grid-component.component.mjs +29 -14
  32. package/dist/esm2022/lib/components/display-components/pagination/pagination.component.mjs +30 -24
  33. package/dist/esm2022/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.mjs +19 -25
  34. package/dist/esm2022/lib/components/display-components/video-card/video-card.component.mjs +63 -1
  35. package/dist/esm2022/lib/components/display-settings-components/display-settings-modal.component.mjs +29 -18
  36. package/dist/esm2022/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.mjs +48 -39
  37. package/dist/esm2022/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.mjs +36 -23
  38. package/dist/esm2022/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.mjs +36 -25
  39. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-broadcast.component.mjs +54 -3
  40. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-chat.component.mjs +54 -3
  41. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-conference.component.mjs +52 -3
  42. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-generic.component.mjs +52 -3
  43. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-webinar.component.mjs +50 -3
  44. package/dist/esm2022/lib/components/menu-components/custom-buttons/custom-buttons.component.mjs +50 -52
  45. package/dist/esm2022/lib/components/menu-components/meeting-id-component/meeting-id-component.component.mjs +7 -2
  46. package/dist/esm2022/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.mjs +6 -1
  47. package/dist/esm2022/lib/components/menu-components/menu-modal/menu-modal.component.mjs +22 -29
  48. package/dist/esm2022/lib/components/menu-components/share-buttons-component/share-buttons-component.component.mjs +16 -14
  49. package/dist/esm2022/lib/components/message-components/message-panel/message-panel.component.mjs +25 -1
  50. package/dist/esm2022/lib/components/message-components/messages-modal/messages-modal.component.mjs +35 -1
  51. package/dist/esm2022/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.mjs +17 -34
  52. package/dist/esm2022/lib/components/misc-components/pre-join-page/pre-join-page.component.mjs +9 -1
  53. package/dist/esm2022/lib/components/misc-components/share-event-modal/share-event-modal.component.mjs +15 -1
  54. package/dist/esm2022/lib/components/misc-components/welcome-page/welcome-page.component.mjs +16 -1
  55. package/dist/esm2022/lib/components/participants-components/participant-list/participant-list.component.mjs +20 -1
  56. package/dist/esm2022/lib/components/participants-components/participant-list-item/participant-list-item.component.mjs +20 -1
  57. package/dist/esm2022/lib/components/participants-components/participant-list-others/participant-list-others.component.mjs +18 -1
  58. package/dist/esm2022/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.mjs +18 -1
  59. package/dist/esm2022/lib/components/participants-components/participants-modal/participants-modal.component.mjs +25 -1
  60. package/dist/esm2022/lib/components/polls-components/poll-modal/poll-modal.component.mjs +28 -1
  61. package/dist/esm2022/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.mjs +16 -1
  62. package/dist/esm2022/lib/components/recording-components/recording-modal/recording-modal.component.mjs +13 -1
  63. package/dist/esm2022/lib/components/recording-components/standard-panel-component/standard-panel-component.component.mjs +6 -1
  64. package/dist/esm2022/lib/components/requests-components/render-request-component/render-request-component.component.mjs +23 -1
  65. package/dist/esm2022/lib/components/requests-components/requests-modal/requests-modal.component.mjs +18 -1
  66. package/dist/esm2022/lib/components/screenboard-components/screenboard/screenboard.component.mjs +11 -1
  67. package/dist/esm2022/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.mjs +12 -1
  68. package/dist/esm2022/lib/components/waiting-components/waiting-room-modal.component.mjs +60 -1
  69. package/dist/esm2022/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.mjs +22 -1
  70. package/dist/esm2022/lib/components/whiteboard-components/whiteboard/whiteboard.component.mjs +50 -1
  71. package/dist/esm2022/lib/consumers/add-videos-grid.service.mjs +50 -1
  72. package/dist/esm2022/lib/consumers/auto-adjust.service.mjs +27 -1
  73. package/dist/esm2022/lib/consumers/calculate-rows-and-columns.service.mjs +19 -1
  74. package/dist/esm2022/lib/consumers/change-vids.service.mjs +132 -67
  75. package/dist/esm2022/lib/consumers/check-grid.service.mjs +33 -19
  76. package/dist/esm2022/lib/consumers/check-permission.service.mjs +26 -1
  77. package/dist/esm2022/lib/consumers/check-screen-share.service.mjs +36 -1
  78. package/dist/esm2022/lib/consumers/close-and-resize.service.mjs +103 -1
  79. package/dist/esm2022/lib/consumers/compare-active-names.service.mjs +32 -1
  80. package/dist/esm2022/lib/consumers/compare-screen-states.service.mjs +36 -1
  81. package/dist/esm2022/lib/consumers/connect-ips.service.mjs +43 -1
  82. package/dist/esm2022/lib/consumers/connect-recv-transport.service.mjs +34 -1
  83. package/dist/esm2022/lib/consumers/connect-send-transport-audio.service.mjs +39 -1
  84. package/dist/esm2022/lib/consumers/connect-send-transport-screen.service.mjs +41 -1
  85. package/dist/esm2022/lib/consumers/connect-send-transport-video.service.mjs +45 -1
  86. package/dist/esm2022/lib/consumers/connect-send-transport.service.mjs +55 -1
  87. package/dist/esm2022/lib/consumers/consumer-resume.service.mjs +37 -1
  88. package/dist/esm2022/lib/consumers/control-media.service.mjs +46 -1
  89. package/dist/esm2022/lib/consumers/create-send-transport.service.mjs +47 -1
  90. package/dist/esm2022/lib/consumers/disconnect-send-transport-audio.service.mjs +51 -1
  91. package/dist/esm2022/lib/consumers/disconnect-send-transport-screen.service.mjs +40 -1
  92. package/dist/esm2022/lib/consumers/disconnect-send-transport-video.service.mjs +46 -1
  93. package/dist/esm2022/lib/consumers/disp-streams.service.mjs +93 -1
  94. package/dist/esm2022/lib/consumers/generate-page-content.service.mjs +48 -1
  95. package/dist/esm2022/lib/consumers/get-estimate.service.mjs +51 -1
  96. package/dist/esm2022/lib/consumers/get-piped-producers-alt.service.mjs +34 -1
  97. package/dist/esm2022/lib/consumers/get-producers-piped.service.mjs +34 -1
  98. package/dist/esm2022/lib/consumers/get-videos.service.mjs +34 -1
  99. package/dist/esm2022/lib/consumers/mix-streams.service.mjs +23 -1
  100. package/dist/esm2022/lib/consumers/on-screen-changes.service.mjs +41 -1
  101. package/dist/esm2022/lib/consumers/prepopulate-user-media.service.mjs +100 -1
  102. package/dist/esm2022/lib/consumers/process-consumer-transports-audio.service.mjs +30 -1
  103. package/dist/esm2022/lib/consumers/process-consumer-transports.service.mjs +38 -1
  104. package/dist/esm2022/lib/consumers/re-port.service.mjs +49 -1
  105. package/dist/esm2022/lib/consumers/re-update-inter.service.mjs +83 -1
  106. package/dist/esm2022/lib/consumers/readjust.service.mjs +51 -1
  107. package/dist/esm2022/lib/consumers/receive-all-piped-transports.service.mjs +32 -1
  108. package/dist/esm2022/lib/consumers/receive-room-messages.service.mjs +28 -1
  109. package/dist/esm2022/lib/consumers/reorder-streams.service.mjs +59 -1
  110. package/dist/esm2022/lib/consumers/request-screen-share.service.mjs +35 -1
  111. package/dist/esm2022/lib/consumers/resume-pause-audio-streams.service.mjs +52 -1
  112. package/dist/esm2022/lib/consumers/resume-pause-streams.service.mjs +34 -1
  113. package/dist/esm2022/lib/consumers/resume-send-transport-audio.service.mjs +37 -1
  114. package/dist/esm2022/lib/consumers/signal-new-consumer-transport.service.mjs +38 -38
  115. package/dist/esm2022/lib/consumers/socket-receive-methods/join-consume-room.service.mjs +34 -1
  116. package/dist/esm2022/lib/consumers/socket-receive-methods/new-pipe-producer.service.mjs +40 -1
  117. package/dist/esm2022/lib/consumers/socket-receive-methods/producer-closed.service.mjs +28 -1
  118. package/dist/esm2022/lib/consumers/start-share-screen.service.mjs +41 -1
  119. package/dist/esm2022/lib/consumers/stop-share-screen.service.mjs +56 -1
  120. package/dist/esm2022/lib/consumers/stream-success-audio-switch.service.mjs +54 -1
  121. package/dist/esm2022/lib/consumers/stream-success-audio.service.mjs +62 -1
  122. package/dist/esm2022/lib/consumers/stream-success-screen.service.mjs +51 -1
  123. package/dist/esm2022/lib/consumers/stream-success-video.service.mjs +59 -1
  124. package/dist/esm2022/lib/consumers/switch-user-audio.service.mjs +34 -1
  125. package/dist/esm2022/lib/consumers/switch-user-video-alt.service.mjs +33 -1
  126. package/dist/esm2022/lib/consumers/switch-user-video.service.mjs +48 -1
  127. package/dist/esm2022/lib/consumers/trigger.service.mjs +39 -1
  128. package/dist/esm2022/lib/consumers/update-mini-cards-grid.service.mjs +55 -1
  129. package/dist/esm2022/lib/consumers/update-participant-audio-decibels.service.mjs +46 -1
  130. package/dist/esm2022/lib/methods/background-methods/launch-background.service.mjs +26 -1
  131. package/dist/esm2022/lib/methods/breakout-room-methods/breakout-room-updated.service.mjs +72 -1
  132. package/dist/esm2022/lib/methods/breakout-room-methods/launch-breakout-rooms.service.mjs +25 -1
  133. package/dist/esm2022/lib/methods/co-host-methods/launch-co-host.service.mjs +25 -1
  134. package/dist/esm2022/lib/methods/co-host-methods/modify-co-host-settings.service.mjs +45 -1
  135. package/dist/esm2022/lib/methods/display-settings-methods/launch-display-settings.service.mjs +23 -1
  136. package/dist/esm2022/lib/methods/display-settings-methods/modify-display-settings.service.mjs +76 -1
  137. package/dist/esm2022/lib/methods/exit-methods/confirm-exit.service.mjs +25 -1
  138. package/dist/esm2022/lib/methods/exit-methods/launch-confirm-exit.service.mjs +21 -1
  139. package/dist/esm2022/lib/methods/media-settings-methods/launch-media-settings.service.mjs +36 -1
  140. package/dist/esm2022/lib/methods/menu-methods/launch-menu-modal.service.mjs +23 -1
  141. package/dist/esm2022/lib/methods/message-methods/launch-messages.service.mjs +23 -1
  142. package/dist/esm2022/lib/methods/message-methods/send-message.service.mjs +50 -1
  143. package/dist/esm2022/lib/methods/participants-methods/launch-participants.service.mjs +25 -1
  144. package/dist/esm2022/lib/methods/participants-methods/message-participants.service.mjs +47 -1
  145. package/dist/esm2022/lib/methods/participants-methods/mute-participants.service.mjs +40 -1
  146. package/dist/esm2022/lib/methods/participants-methods/remove-participants.service.mjs +46 -1
  147. package/dist/esm2022/lib/methods/polls-methods/handle-create-poll.service.mjs +39 -1
  148. package/dist/esm2022/lib/methods/polls-methods/handle-end-poll.service.mjs +33 -1
  149. package/dist/esm2022/lib/methods/polls-methods/handle-vote-poll.service.mjs +35 -1
  150. package/dist/esm2022/lib/methods/polls-methods/launch-poll.service.mjs +21 -1
  151. package/dist/esm2022/lib/methods/polls-methods/poll-updated.service.mjs +32 -1
  152. package/dist/esm2022/lib/methods/recording-methods/check-pause-state.service.mjs +25 -1
  153. package/dist/esm2022/lib/methods/recording-methods/check-resume-state.service.mjs +23 -1
  154. package/dist/esm2022/lib/methods/recording-methods/confirm-recording.service.mjs +64 -1
  155. package/dist/esm2022/lib/methods/recording-methods/launch-recording.service.mjs +44 -1
  156. package/dist/esm2022/lib/methods/recording-methods/record-pause-timer.service.mjs +28 -1
  157. package/dist/esm2022/lib/methods/recording-methods/record-resume-timer.service.mjs +45 -1
  158. package/dist/esm2022/lib/methods/recording-methods/record-start-timer.service.mjs +46 -1
  159. package/dist/esm2022/lib/methods/recording-methods/record-update-timer.service.mjs +33 -1
  160. package/dist/esm2022/lib/methods/recording-methods/start-recording.service.mjs +51 -1
  161. package/dist/esm2022/lib/methods/recording-methods/stop-recording.service.mjs +39 -1
  162. package/dist/esm2022/lib/methods/recording-methods/update-recording.service.mjs +49 -1
  163. package/dist/esm2022/lib/methods/requests-methods/launch-requests.service.mjs +26 -1
  164. package/dist/esm2022/lib/methods/requests-methods/respond-to-requests.service.mjs +40 -1
  165. package/dist/esm2022/lib/methods/settings-methods/launch-settings.service.mjs +26 -1
  166. package/dist/esm2022/lib/methods/settings-methods/modify-settings.service.mjs +43 -1
  167. package/dist/esm2022/lib/methods/stream-methods/click-audio.service.mjs +98 -1
  168. package/dist/esm2022/lib/methods/stream-methods/click-chat.service.mjs +32 -1
  169. package/dist/esm2022/lib/methods/stream-methods/click-screen-share.service.mjs +69 -1
  170. package/dist/esm2022/lib/methods/stream-methods/click-video.service.mjs +89 -1
  171. package/dist/esm2022/lib/methods/stream-methods/switch-audio.service.mjs +48 -1
  172. package/dist/esm2022/lib/methods/stream-methods/switch-video-alt.service.mjs +51 -1
  173. package/dist/esm2022/lib/methods/stream-methods/switch-video.service.mjs +57 -1
  174. package/dist/esm2022/lib/methods/utils/format-number.service.mjs +27 -15
  175. package/dist/esm2022/lib/methods/utils/generate-random-messages.service.mjs +34 -1
  176. package/dist/esm2022/lib/methods/utils/generate-random-participants.service.mjs +28 -1
  177. package/dist/esm2022/lib/methods/utils/generate-random-polls.service.mjs +27 -1
  178. package/dist/esm2022/lib/methods/utils/generate-random-request-list.service.mjs +37 -1
  179. package/dist/esm2022/lib/methods/utils/generate-random-waiting-room-list.service.mjs +22 -1
  180. package/dist/esm2022/lib/methods/utils/get-modal-position.util.mjs +14 -4
  181. package/dist/esm2022/lib/methods/utils/get-overlay-position.util.mjs +14 -4
  182. package/dist/esm2022/lib/methods/utils/initial-values.util.mjs +13 -3
  183. package/dist/esm2022/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.mjs +38 -1
  184. package/dist/esm2022/lib/methods/utils/mini-audio-player/mini-audio-player.component.mjs +56 -1
  185. package/dist/esm2022/lib/methods/utils/producer/a-params.service.mjs +38 -1
  186. package/dist/esm2022/lib/methods/utils/producer/h-params.service.mjs +51 -1
  187. package/dist/esm2022/lib/methods/utils/producer/screen-params.service.mjs +38 -1
  188. package/dist/esm2022/lib/methods/utils/producer/v-params.service.mjs +51 -1
  189. package/dist/esm2022/lib/methods/utils/producer/video-capture-constraints.service.mjs +47 -1
  190. package/dist/esm2022/lib/methods/utils/sleep.util.mjs +10 -4
  191. package/dist/esm2022/lib/methods/utils/sound-player.service.mjs +22 -1
  192. package/dist/esm2022/lib/methods/utils/validate-alphanumeric.service.mjs +17 -1
  193. package/dist/esm2022/lib/methods/waiting-methods/launch-waiting.service.mjs +19 -1
  194. package/dist/esm2022/lib/methods/waiting-methods/respond-to-waiting.service.mjs +30 -1
  195. package/dist/esm2022/lib/methods/whiteboard-methods/capture-canvas-stream.service.mjs +30 -1
  196. package/dist/esm2022/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.mjs +21 -1
  197. package/dist/esm2022/lib/producer-client/producer-client-emits/create-device-client.service.mjs +24 -1
  198. package/dist/esm2022/lib/producer-client/producer-client-emits/join-room-client.service.mjs +32 -1
  199. package/dist/esm2022/lib/producer-client/producer-client-emits/update-room-parameters-client.service.mjs +45 -1
  200. package/dist/esm2022/lib/producers/producer-emits/join-con-room.service.mjs +39 -1
  201. package/dist/esm2022/lib/producers/producer-emits/join-room.service.mjs +39 -1
  202. package/dist/esm2022/lib/producers/socket-receive-methods/all-members-rest.service.mjs +74 -1
  203. package/dist/esm2022/lib/producers/socket-receive-methods/all-members.service.mjs +72 -1
  204. package/dist/esm2022/lib/producers/socket-receive-methods/all-waiting-room-members.service.mjs +28 -1
  205. package/dist/esm2022/lib/producers/socket-receive-methods/ban-participant.service.mjs +37 -1
  206. package/dist/esm2022/lib/producers/socket-receive-methods/control-media-host.service.mjs +38 -1
  207. package/dist/esm2022/lib/producers/socket-receive-methods/disconnect-user-self.service.mjs +25 -1
  208. package/dist/esm2022/lib/producers/socket-receive-methods/disconnect.service.mjs +27 -1
  209. package/dist/esm2022/lib/producers/socket-receive-methods/get-domains.service.mjs +25 -10
  210. package/dist/esm2022/lib/producers/socket-receive-methods/host-request-response.service.mjs +32 -49
  211. package/dist/esm2022/lib/producers/socket-receive-methods/meeting-ended.service.mjs +30 -1
  212. package/dist/esm2022/lib/producers/socket-receive-methods/meeting-still-there.service.mjs +24 -1
  213. package/dist/esm2022/lib/producers/socket-receive-methods/meeting-time-remaining.service.mjs +28 -1
  214. package/dist/esm2022/lib/producers/socket-receive-methods/participant-requested.service.mjs +32 -1
  215. package/dist/esm2022/lib/producers/socket-receive-methods/person-joined.service.mjs +26 -1
  216. package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-closed.service.mjs +62 -1
  217. package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-paused.service.mjs +63 -1
  218. package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-resumed.service.mjs +46 -1
  219. package/dist/esm2022/lib/producers/socket-receive-methods/re-initiate-recording.service.mjs +30 -1
  220. package/dist/esm2022/lib/producers/socket-receive-methods/receive-message.service.mjs +39 -1
  221. package/dist/esm2022/lib/producers/socket-receive-methods/recording-notice.service.mjs +39 -1
  222. package/dist/esm2022/lib/producers/socket-receive-methods/room-record-params.service.mjs +63 -1
  223. package/dist/esm2022/lib/producers/socket-receive-methods/screen-producer-id.service.mjs +42 -1
  224. package/dist/esm2022/lib/producers/socket-receive-methods/start-records.service.mjs +26 -1
  225. package/dist/esm2022/lib/producers/socket-receive-methods/stopped-recording.service.mjs +26 -1
  226. package/dist/esm2022/lib/producers/socket-receive-methods/time-left-recording.service.mjs +22 -1
  227. package/dist/esm2022/lib/producers/socket-receive-methods/update-consuming-domains.service.mjs +43 -1
  228. package/dist/esm2022/lib/producers/socket-receive-methods/update-media-settings.service.mjs +31 -1
  229. package/dist/esm2022/lib/producers/socket-receive-methods/updated-co-host.service.mjs +41 -1
  230. package/dist/esm2022/lib/producers/socket-receive-methods/user-waiting.service.mjs +15 -41
  231. package/dist/esm2022/lib/sockets/socket-manager.service.mjs +41 -1
  232. package/dist/fesm2022/mediasfu-angular.mjs +8192 -910
  233. package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
  234. package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +36 -0
  235. package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +50 -0
  236. package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +48 -0
  237. package/dist/lib/components/co-host-components/co-host-modal/co-host-modal.component.d.ts +62 -0
  238. package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +24 -18
  239. package/dist/lib/components/display-components/audio-card/audio-card.component.d.ts +59 -0
  240. package/dist/lib/components/display-components/audio-grid/audio-grid.component.d.ts +20 -0
  241. package/dist/lib/components/display-components/card-video-display/card-video-display.component.d.ts +35 -0
  242. package/dist/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.d.ts +38 -0
  243. package/dist/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.d.ts +24 -40
  244. package/dist/lib/components/display-components/control-widgets/menu-participants-widget.component.d.ts +21 -0
  245. package/dist/lib/components/display-components/control-widgets/menu-record-widget.component.d.ts +22 -0
  246. package/dist/lib/components/display-components/control-widgets/menu-widget.component.d.ts +23 -0
  247. package/dist/lib/components/display-components/control-widgets/message-widget.component.d.ts +23 -0
  248. package/dist/lib/components/display-components/control-widgets/record-timer-widget.component.d.ts +15 -0
  249. package/dist/lib/components/display-components/control-widgets/screenshare-widget.component.d.ts +27 -0
  250. package/dist/lib/components/display-components/flexible-grid/flexible-grid.component.d.ts +27 -18
  251. package/dist/lib/components/display-components/flexible-video/flexible-video.component.d.ts +30 -45
  252. package/dist/lib/components/display-components/loading-modal/loading-modal.component.d.ts +19 -17
  253. package/dist/lib/components/display-components/main-aspect-component/main-aspect-component.component.d.ts +32 -24
  254. package/dist/lib/components/display-components/main-container-component/main-container-component.component.d.ts +28 -16
  255. package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +28 -14
  256. package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +43 -22
  257. package/dist/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.d.ts +25 -30
  258. package/dist/lib/components/display-components/mini-audio/mini-audio.component.d.ts +55 -62
  259. package/dist/lib/components/display-components/mini-card/mini-card.component.d.ts +19 -23
  260. package/dist/lib/components/display-components/mini-card-audio/mini-card-audio.component.d.ts +39 -39
  261. package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +28 -13
  262. package/dist/lib/components/display-components/pagination/pagination.component.d.ts +29 -23
  263. package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +18 -24
  264. package/dist/lib/components/display-components/video-card/video-card.component.d.ts +62 -0
  265. package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +28 -17
  266. package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +47 -38
  267. package/dist/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.d.ts +35 -22
  268. package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +35 -24
  269. package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +49 -0
  270. package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +49 -0
  271. package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +47 -11
  272. package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +47 -11
  273. package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +45 -11
  274. package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +49 -51
  275. package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +6 -1
  276. package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +5 -0
  277. package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +21 -28
  278. package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +15 -13
  279. package/dist/lib/components/message-components/message-panel/message-panel.component.d.ts +24 -0
  280. package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +34 -0
  281. package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +16 -33
  282. package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +8 -0
  283. package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +14 -0
  284. package/dist/lib/components/misc-components/welcome-page/welcome-page.component.d.ts +15 -0
  285. package/dist/lib/components/participants-components/participant-list/participant-list.component.d.ts +19 -0
  286. package/dist/lib/components/participants-components/participant-list-item/participant-list-item.component.d.ts +19 -0
  287. package/dist/lib/components/participants-components/participant-list-others/participant-list-others.component.d.ts +17 -0
  288. package/dist/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.d.ts +17 -0
  289. package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +24 -0
  290. package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +27 -0
  291. package/dist/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.d.ts +15 -0
  292. package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +12 -0
  293. package/dist/lib/components/recording-components/standard-panel-component/standard-panel-component.component.d.ts +5 -0
  294. package/dist/lib/components/requests-components/render-request-component/render-request-component.component.d.ts +22 -0
  295. package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +17 -0
  296. package/dist/lib/components/screenboard-components/screenboard/screenboard.component.d.ts +10 -0
  297. package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +11 -0
  298. package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +59 -0
  299. package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +21 -0
  300. package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +49 -0
  301. package/dist/lib/consumers/add-videos-grid.service.d.ts +49 -0
  302. package/dist/lib/consumers/auto-adjust.service.d.ts +26 -0
  303. package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +18 -0
  304. package/dist/lib/consumers/change-vids.service.d.ts +131 -66
  305. package/dist/lib/consumers/check-grid.service.d.ts +32 -18
  306. package/dist/lib/consumers/check-permission.service.d.ts +25 -0
  307. package/dist/lib/consumers/check-screen-share.service.d.ts +35 -0
  308. package/dist/lib/consumers/close-and-resize.service.d.ts +102 -0
  309. package/dist/lib/consumers/compare-active-names.service.d.ts +31 -0
  310. package/dist/lib/consumers/compare-screen-states.service.d.ts +35 -0
  311. package/dist/lib/consumers/connect-ips.service.d.ts +42 -0
  312. package/dist/lib/consumers/connect-recv-transport.service.d.ts +33 -0
  313. package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +38 -0
  314. package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +40 -0
  315. package/dist/lib/consumers/connect-send-transport-video.service.d.ts +44 -0
  316. package/dist/lib/consumers/connect-send-transport.service.d.ts +54 -0
  317. package/dist/lib/consumers/consumer-resume.service.d.ts +36 -0
  318. package/dist/lib/consumers/control-media.service.d.ts +45 -0
  319. package/dist/lib/consumers/create-send-transport.service.d.ts +46 -0
  320. package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +50 -0
  321. package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +39 -0
  322. package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +45 -0
  323. package/dist/lib/consumers/disp-streams.service.d.ts +92 -0
  324. package/dist/lib/consumers/generate-page-content.service.d.ts +47 -0
  325. package/dist/lib/consumers/get-estimate.service.d.ts +50 -0
  326. package/dist/lib/consumers/get-piped-producers-alt.service.d.ts +33 -0
  327. package/dist/lib/consumers/get-producers-piped.service.d.ts +33 -0
  328. package/dist/lib/consumers/get-videos.service.d.ts +33 -0
  329. package/dist/lib/consumers/mix-streams.service.d.ts +22 -0
  330. package/dist/lib/consumers/on-screen-changes.service.d.ts +40 -0
  331. package/dist/lib/consumers/prepopulate-user-media.service.d.ts +99 -0
  332. package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +29 -0
  333. package/dist/lib/consumers/process-consumer-transports.service.d.ts +37 -0
  334. package/dist/lib/consumers/re-port.service.d.ts +48 -0
  335. package/dist/lib/consumers/re-update-inter.service.d.ts +82 -0
  336. package/dist/lib/consumers/readjust.service.d.ts +50 -0
  337. package/dist/lib/consumers/receive-all-piped-transports.service.d.ts +31 -0
  338. package/dist/lib/consumers/receive-room-messages.service.d.ts +27 -0
  339. package/dist/lib/consumers/reorder-streams.service.d.ts +58 -0
  340. package/dist/lib/consumers/request-screen-share.service.d.ts +34 -0
  341. package/dist/lib/consumers/resume-pause-audio-streams.service.d.ts +51 -0
  342. package/dist/lib/consumers/resume-pause-streams.service.d.ts +33 -0
  343. package/dist/lib/consumers/resume-send-transport-audio.service.d.ts +36 -0
  344. package/dist/lib/consumers/signal-new-consumer-transport.service.d.ts +37 -37
  345. package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +33 -0
  346. package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +39 -0
  347. package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +27 -0
  348. package/dist/lib/consumers/start-share-screen.service.d.ts +40 -0
  349. package/dist/lib/consumers/stop-share-screen.service.d.ts +55 -0
  350. package/dist/lib/consumers/stream-success-audio-switch.service.d.ts +53 -0
  351. package/dist/lib/consumers/stream-success-audio.service.d.ts +61 -0
  352. package/dist/lib/consumers/stream-success-screen.service.d.ts +50 -0
  353. package/dist/lib/consumers/stream-success-video.service.d.ts +58 -0
  354. package/dist/lib/consumers/switch-user-audio.service.d.ts +33 -0
  355. package/dist/lib/consumers/switch-user-video-alt.service.d.ts +32 -0
  356. package/dist/lib/consumers/switch-user-video.service.d.ts +47 -0
  357. package/dist/lib/consumers/trigger.service.d.ts +38 -0
  358. package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +54 -0
  359. package/dist/lib/consumers/update-participant-audio-decibels.service.d.ts +45 -0
  360. package/dist/lib/methods/background-methods/launch-background.service.d.ts +25 -0
  361. package/dist/lib/methods/breakout-room-methods/breakout-room-updated.service.d.ts +71 -0
  362. package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +24 -0
  363. package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +24 -0
  364. package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +44 -0
  365. package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +22 -0
  366. package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +75 -0
  367. package/dist/lib/methods/exit-methods/confirm-exit.service.d.ts +24 -0
  368. package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +20 -0
  369. package/dist/lib/methods/media-settings-methods/launch-media-settings.service.d.ts +35 -0
  370. package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +22 -0
  371. package/dist/lib/methods/message-methods/launch-messages.service.d.ts +22 -0
  372. package/dist/lib/methods/message-methods/send-message.service.d.ts +49 -0
  373. package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +24 -0
  374. package/dist/lib/methods/participants-methods/message-participants.service.d.ts +46 -0
  375. package/dist/lib/methods/participants-methods/mute-participants.service.d.ts +39 -0
  376. package/dist/lib/methods/participants-methods/remove-participants.service.d.ts +45 -0
  377. package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +38 -0
  378. package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +32 -0
  379. package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +34 -0
  380. package/dist/lib/methods/polls-methods/launch-poll.service.d.ts +20 -0
  381. package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +31 -0
  382. package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +24 -0
  383. package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +22 -0
  384. package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +63 -0
  385. package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +43 -0
  386. package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +27 -0
  387. package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +44 -0
  388. package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +45 -0
  389. package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +32 -0
  390. package/dist/lib/methods/recording-methods/start-recording.service.d.ts +50 -0
  391. package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +38 -0
  392. package/dist/lib/methods/recording-methods/update-recording.service.d.ts +48 -0
  393. package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +25 -0
  394. package/dist/lib/methods/requests-methods/respond-to-requests.service.d.ts +39 -0
  395. package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +25 -0
  396. package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +42 -0
  397. package/dist/lib/methods/stream-methods/click-audio.service.d.ts +97 -0
  398. package/dist/lib/methods/stream-methods/click-chat.service.d.ts +31 -0
  399. package/dist/lib/methods/stream-methods/click-screen-share.service.d.ts +68 -0
  400. package/dist/lib/methods/stream-methods/click-video.service.d.ts +88 -0
  401. package/dist/lib/methods/stream-methods/switch-audio.service.d.ts +47 -0
  402. package/dist/lib/methods/stream-methods/switch-video-alt.service.d.ts +50 -0
  403. package/dist/lib/methods/stream-methods/switch-video.service.d.ts +56 -0
  404. package/dist/lib/methods/utils/format-number.service.d.ts +26 -14
  405. package/dist/lib/methods/utils/generate-random-messages.service.d.ts +33 -0
  406. package/dist/lib/methods/utils/generate-random-participants.service.d.ts +27 -0
  407. package/dist/lib/methods/utils/generate-random-polls.service.d.ts +26 -0
  408. package/dist/lib/methods/utils/generate-random-request-list.service.d.ts +36 -0
  409. package/dist/lib/methods/utils/generate-random-waiting-room-list.service.d.ts +21 -0
  410. package/dist/lib/methods/utils/get-modal-position.util.d.ts +13 -3
  411. package/dist/lib/methods/utils/get-overlay-position.util.d.ts +13 -3
  412. package/dist/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.d.ts +37 -0
  413. package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +55 -0
  414. package/dist/lib/methods/utils/producer/a-params.service.d.ts +37 -0
  415. package/dist/lib/methods/utils/producer/h-params.service.d.ts +50 -0
  416. package/dist/lib/methods/utils/producer/screen-params.service.d.ts +37 -0
  417. package/dist/lib/methods/utils/producer/v-params.service.d.ts +50 -0
  418. package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +46 -0
  419. package/dist/lib/methods/utils/sleep.util.d.ts +9 -3
  420. package/dist/lib/methods/utils/sound-player.service.d.ts +21 -0
  421. package/dist/lib/methods/utils/validate-alphanumeric.service.d.ts +16 -0
  422. package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +18 -0
  423. package/dist/lib/methods/waiting-methods/respond-to-waiting.service.d.ts +29 -0
  424. package/dist/lib/methods/whiteboard-methods/capture-canvas-stream.service.d.ts +29 -0
  425. package/dist/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.d.ts +20 -0
  426. package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +23 -0
  427. package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +31 -0
  428. package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +44 -0
  429. package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +38 -0
  430. package/dist/lib/producers/producer-emits/join-room.service.d.ts +38 -0
  431. package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +73 -0
  432. package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +71 -0
  433. package/dist/lib/producers/socket-receive-methods/all-waiting-room-members.service.d.ts +27 -0
  434. package/dist/lib/producers/socket-receive-methods/ban-participant.service.d.ts +36 -0
  435. package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +37 -0
  436. package/dist/lib/producers/socket-receive-methods/disconnect-user-self.service.d.ts +24 -0
  437. package/dist/lib/producers/socket-receive-methods/disconnect.service.d.ts +26 -0
  438. package/dist/lib/producers/socket-receive-methods/get-domains.service.d.ts +24 -9
  439. package/dist/lib/producers/socket-receive-methods/host-request-response.service.d.ts +31 -48
  440. package/dist/lib/producers/socket-receive-methods/meeting-ended.service.d.ts +29 -0
  441. package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +23 -0
  442. package/dist/lib/producers/socket-receive-methods/meeting-time-remaining.service.d.ts +27 -0
  443. package/dist/lib/producers/socket-receive-methods/participant-requested.service.d.ts +31 -0
  444. package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +25 -0
  445. package/dist/lib/producers/socket-receive-methods/producer-media-closed.service.d.ts +61 -0
  446. package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +62 -0
  447. package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +45 -0
  448. package/dist/lib/producers/socket-receive-methods/re-initiate-recording.service.d.ts +29 -0
  449. package/dist/lib/producers/socket-receive-methods/receive-message.service.d.ts +38 -0
  450. package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +38 -0
  451. package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +62 -0
  452. package/dist/lib/producers/socket-receive-methods/screen-producer-id.service.d.ts +41 -0
  453. package/dist/lib/producers/socket-receive-methods/start-records.service.d.ts +25 -0
  454. package/dist/lib/producers/socket-receive-methods/stopped-recording.service.d.ts +25 -0
  455. package/dist/lib/producers/socket-receive-methods/time-left-recording.service.d.ts +21 -0
  456. package/dist/lib/producers/socket-receive-methods/update-consuming-domains.service.d.ts +42 -0
  457. package/dist/lib/producers/socket-receive-methods/update-media-settings.service.d.ts +30 -0
  458. package/dist/lib/producers/socket-receive-methods/updated-co-host.service.d.ts +40 -0
  459. package/dist/lib/producers/socket-receive-methods/user-waiting.service.d.ts +14 -40
  460. package/dist/lib/sockets/socket-manager.service.d.ts +40 -0
  461. package/package.json +11 -2
@@ -14,6 +14,51 @@ export interface RemoveParticipantsOptions {
14
14
  updateParticipants: (participants: Participant[]) => void;
15
15
  }
16
16
  export type RemoveParticipantsType = (options: RemoveParticipantsOptions) => Promise<void>;
17
+ /**
18
+ * Removes a participant from the room if the user has the appropriate permissions.
19
+ *
20
+ * This method checks the current user's level and their co-host responsibilities
21
+ * to determine if they are allowed to remove a specified participant. If allowed,
22
+ * the method emits a socket event to disconnect the participant and updates
23
+ * the local list of participants. If not allowed, an alert is displayed.
24
+ *
25
+ * @param {RemoveParticipantsOptions} options - The options for removing a participant.
26
+ * @param {CoHostResponsibility[]} options.coHostResponsibility - The responsibilities of the co-host.
27
+ * @param {Participant} options.participant - The participant to be removed.
28
+ * @param {string} options.member - The current member attempting to remove the participant.
29
+ * @param {string} options.islevel - The level of the current member.
30
+ * @param {Function} [options.showAlert] - Optional function to show alert messages.
31
+ * @param {string} options.coHost - The co-host information.
32
+ * @param {Participant[]} options.participants - The list of current participants.
33
+ * @param {Socket} options.socket - The socket instance for emitting events.
34
+ * @param {string} options.roomName - The name of the room.
35
+ * @param {Function} options.updateParticipants - Function to update the participants list.
36
+ *
37
+ * @returns {Promise<void>} A promise that resolves when the participant is removed.
38
+ *
39
+ * @throws Will log an error if there is an issue accessing co-host responsibilities.
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * const removeParticipantsService = new RemoveParticipants();
44
+ * await removeParticipantsService.removeParticipants({
45
+ * coHostResponsibility: [{ name: 'participants', value: true }],
46
+ * participant: { id: '123', name: 'John', islevel: '1' },
47
+ * member: 'Alice',
48
+ * islevel: '1',
49
+ * showAlert: ({ message, type }) => {
50
+ * console.log(`Alert: ${message} - Type: ${type}`);
51
+ * },
52
+ * coHost: 'Bob',
53
+ * participants: [{ id: '123', name: 'John', islevel: '1' }],
54
+ * socket: socketInstance,
55
+ * roomName: 'room1',
56
+ * updateParticipants: (updatedList) => {
57
+ * console.log('Updated participants:', updatedList);
58
+ * },
59
+ * });
60
+ * ```
61
+ */
17
62
  export declare class RemoveParticipants {
18
63
  /**
19
64
  * Removes a participant from the room if the user has the appropriate permissions.
@@ -9,6 +9,44 @@ export interface HandleCreatePollOptions {
9
9
  updateIsPollModalVisible: (visible: boolean) => void;
10
10
  }
11
11
  export type HandleCreatePollType = (options: HandleCreatePollOptions) => Promise<void>;
12
+ /**
13
+ * Handles the creation of a poll.
14
+ *
15
+ * This method sends a request to create a poll in the specified room via a socket event.
16
+ * It also handles the response from the server to notify the user whether the poll was
17
+ * created successfully or if there was an error.
18
+ *
19
+ * @param {HandleCreatePollOptions} options - The options for creating the poll.
20
+ * @param {Poll} options.poll - The poll object containing the poll details.
21
+ * @param {Socket} options.socket - The socket instance for emitting events.
22
+ * @param {string} options.roomName - The name of the room where the poll will be created.
23
+ * @param {Function} [options.showAlert] - Optional function to show alert messages.
24
+ * @param {Function} options.updateIsPollModalVisible - Function to update the visibility of the poll modal.
25
+ *
26
+ * @returns {Promise<void>} A promise that resolves when the poll is created successfully.
27
+ *
28
+ * @throws Will handle any errors during the poll creation process silently.
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const handleCreatePollService = new HandleCreatePoll();
33
+ * const pollData = {
34
+ * question: 'What is your favorite color?',
35
+ * options: ['Red', 'Blue', 'Green'],
36
+ * };
37
+ * await handleCreatePollService.handleCreatePoll({
38
+ * poll: pollData,
39
+ * socket: socketInstance,
40
+ * roomName: 'room1',
41
+ * showAlert: ({ message, type }) => {
42
+ * console.log(`Alert: ${message} - Type: ${type}`);
43
+ * },
44
+ * updateIsPollModalVisible: (isVisible) => {
45
+ * console.log('Poll modal visibility:', isVisible);
46
+ * },
47
+ * });
48
+ * ```
49
+ */
12
50
  export declare class HandleCreatePoll {
13
51
  /**
14
52
  * Handles the creation of a poll.
@@ -9,6 +9,38 @@ export interface HandleEndPollOptions {
9
9
  updateIsPollModalVisible: (visible: boolean) => void;
10
10
  }
11
11
  export type HandleEndPollType = (options: HandleEndPollOptions) => Promise<void>;
12
+ /**
13
+ * Handles the end of a poll by emitting an "endPoll" event through the provided socket.
14
+ * Displays an alert based on the success or failure of the operation.
15
+ *
16
+ * @param {HandleEndPollOptions} options - The options for ending the poll.
17
+ * @param {string} options.pollId - The ID of the poll to end.
18
+ * @param {Socket} options.socket - The socket instance to emit the event.
19
+ * @param {Function} [options.showAlert] - Optional function to display alerts.
20
+ * @param {string} options.roomName - The name of the room where the poll is being conducted.
21
+ * @param {Function} options.updateIsPollModalVisible - Function to update the visibility of the poll modal.
22
+ *
23
+ * @returns {Promise<void>} A promise that resolves when the poll end operation is complete.
24
+ *
25
+ * @throws Will log an error if the operation fails to emit the end poll event.
26
+ *
27
+ * @example
28
+ * ```typescript
29
+ * const handleEndPollService = new HandleEndPoll();
30
+ * const pollId = '12345';
31
+ * await handleEndPollService.handleEndPoll({
32
+ * pollId: pollId,
33
+ * socket: socketInstance,
34
+ * roomName: 'room1',
35
+ * showAlert: ({ message, type }) => {
36
+ * console.log(`Alert: ${message} - Type: ${type}`);
37
+ * },
38
+ * updateIsPollModalVisible: (isVisible) => {
39
+ * console.log('Poll modal visibility:', isVisible);
40
+ * },
41
+ * });
42
+ * ```
43
+ */
12
44
  export declare class HandleEndPoll {
13
45
  /**
14
46
  * Handles the end of a poll by emitting an "endPoll" event through the provided socket.
@@ -11,6 +11,40 @@ export interface HandleVotePollOptions {
11
11
  updateIsPollModalVisible: (isVisible: boolean) => void;
12
12
  }
13
13
  export type HandleVotePollType = (options: HandleVotePollOptions) => Promise<void>;
14
+ /**
15
+ * Handles the voting process for a poll.
16
+ *
17
+ * @param {HandleVotePollOptions} options - The options for handling the vote.
18
+ * @param {string} options.pollId - The ID of the poll.
19
+ * @param {number} options.optionIndex - The index of the selected option.
20
+ * @param {Socket} options.socket - The socket instance for communication.
21
+ * @param {Function} [options.showAlert] - Optional function to show alerts.
22
+ * @param {string} options.member - The member who is voting.
23
+ * @param {string} options.roomName - The name of the room where the poll is conducted.
24
+ * @param {Function} options.updateIsPollModalVisible - Function to update the visibility of the poll modal.
25
+ *
26
+ * @returns {Promise<void>} A promise that resolves when the vote is handled.
27
+ *
28
+ * @throws Will log an error message if there is an issue submitting the vote.
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const handleVotePollService = new HandleVotePoll();
33
+ * await handleVotePollService.handleVotePoll({
34
+ * pollId: '12345',
35
+ * optionIndex: 1,
36
+ * socket: socketInstance,
37
+ * member: 'user1',
38
+ * roomName: 'room1',
39
+ * showAlert: ({ message, type }) => {
40
+ * console.log(`Alert: ${message} - Type: ${type}`);
41
+ * },
42
+ * updateIsPollModalVisible: (isVisible) => {
43
+ * console.log('Poll modal visibility:', isVisible);
44
+ * },
45
+ * });
46
+ * ```
47
+ */
14
48
  export declare class HandleVotePoll {
15
49
  /**
16
50
  * Handles the voting process for a poll.
@@ -4,6 +4,26 @@ export interface LaunchPollOptions {
4
4
  isPollModalVisible: boolean;
5
5
  }
6
6
  export type LaunchPollType = (options: LaunchPollOptions) => void;
7
+ /**
8
+ * Toggles the visibility of the poll modal.
9
+ *
10
+ * @param {LaunchPollOptions} options - The options object containing necessary variables and functions.
11
+ * @param {Function} options.updateIsPollModalVisible - Function to update the visibility state of the poll modal.
12
+ * @param {boolean} options.isPollModalVisible - Current visibility state of the poll modal.
13
+ *
14
+ * @returns {void}
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * const launchPollService = new LaunchPoll();
19
+ * launchPollService.launchPoll({
20
+ * updateIsPollModalVisible: (isVisible) => {
21
+ * console.log('Poll modal visibility:', isVisible);
22
+ * },
23
+ * isPollModalVisible: false,
24
+ * });
25
+ * ```
26
+ */
7
27
  export declare class LaunchPoll {
8
28
  /**
9
29
  * Toggles the visibility of the poll modal.
@@ -12,6 +12,37 @@ export interface PollUpdatedOptions {
12
12
  updateIsPollModalVisible: (isVisible: boolean) => void;
13
13
  }
14
14
  export type PollUpdatedType = (options: PollUpdatedOptions) => Promise<void>;
15
+ /**
16
+ * Updates the poll state based on the provided data.
17
+ *
18
+ * @param {PollUpdatedOptions} options - The options for updating the poll.
19
+ * @param {PollUpdatedData} options.data - The data containing poll information.
20
+ * @param {Poll[]} options.polls - The current list of polls.
21
+ * @param {Poll} options.poll - The current poll.
22
+ * @param {string} options.member - The member identifier.
23
+ * @param {string} options.islevel - The level of the member.
24
+ * @param {Function} [options.showAlert] - Function to show alerts.
25
+ * @param {Function} options.updatePolls - Function to update the list of polls.
26
+ * @param {Function} options.updatePoll - Function to update the current poll.
27
+ * @param {Function} options.updateIsPollModalVisible - Function to update the visibility of the poll modal.
28
+ * @returns {Promise<void>} A promise that resolves when the poll update is complete.
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const pollUpdatedService = new PollUpdated();
33
+ * pollUpdatedService.pollUpdated({
34
+ * data: { polls: [], poll: { id: '123', question: 'Sample Poll?', status: 'started' } },
35
+ * polls: [],
36
+ * poll: { id: '123', question: 'Sample Poll?', status: 'started' },
37
+ * member: 'user1',
38
+ * islevel: '1',
39
+ * showAlert: (alert) => console.log(alert.message),
40
+ * updatePolls: (polls) => console.log('Updated polls:', polls),
41
+ * updatePoll: (poll) => console.log('Updated poll:', poll),
42
+ * updateIsPollModalVisible: (visible) => console.log('Poll modal visibility:', visible),
43
+ * });
44
+ * ```
45
+ */
15
46
  export declare class PollUpdated {
16
47
  /**
17
48
  * Updates the poll state based on the provided data.
@@ -8,6 +8,30 @@ export interface CheckPauseStateOptions {
8
8
  showAlert?: ShowAlert;
9
9
  }
10
10
  export type CheckPauseStateType = (options: CheckPauseStateOptions) => Promise<boolean>;
11
+ /**
12
+ * Checks if the recording can be paused based on the current pause count and the allowed pause limits.
13
+ *
14
+ * @param {CheckPauseStateOptions} options - The options for checking the pause state.
15
+ * @param {string} options.recordingMediaOptions - The type of media being recorded ("video" or "audio").
16
+ * @param {number} options.recordingVideoPausesLimit - The maximum number of pauses allowed for video recordings.
17
+ * @param {number} options.recordingAudioPausesLimit - The maximum number of pauses allowed for audio recordings.
18
+ * @param {number} options.pauseRecordCount - The current count of pauses that have been made.
19
+ * @param {Function} [options.showAlert] - A function to show an alert message if the pause limit is reached.
20
+ * @returns {Promise<boolean>} A promise that resolves to `true` if the recording can be paused, otherwise `false`.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const checkPauseStateService = new CheckPauseState();
25
+ * const canPause = await checkPauseStateService.checkPauseState({
26
+ * recordingMediaOptions: 'video',
27
+ * recordingVideoPausesLimit: 3,
28
+ * recordingAudioPausesLimit: 5,
29
+ * pauseRecordCount: 2,
30
+ * showAlert: (alert) => console.log(alert.message),
31
+ * });
32
+ * console.log('Can pause recording:', canPause);
33
+ * ```
34
+ */
11
35
  export declare class CheckPauseState {
12
36
  /**
13
37
  * Checks if the recording can be paused based on the current pause count and the allowed pause limits.
@@ -6,6 +6,28 @@ export interface CheckResumeStateOptions {
6
6
  pauseRecordCount: number;
7
7
  }
8
8
  export type CheckResumeStateType = (options: CheckResumeStateOptions) => Promise<boolean>;
9
+ /**
10
+ * Checks if the recording can be resumed based on the media type and pause limits.
11
+ *
12
+ * @param {CheckResumeStateOptions} options - The options for checking resume state.
13
+ * @param {string} options.recordingMediaOptions - The type of media being recorded ("video" or "audio").
14
+ * @param {number} options.recordingVideoPausesLimit - The maximum number of pauses allowed for video recording.
15
+ * @param {number} options.recordingAudioPausesLimit - The maximum number of pauses allowed for audio recording.
16
+ * @param {number} options.pauseRecordCount - The current number of pauses that have occurred.
17
+ * @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether the recording can be resumed.
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const checkResumeStateService = new CheckResumeState();
22
+ * const canResume = await checkResumeStateService.checkResumeState({
23
+ * recordingMediaOptions: 'audio',
24
+ * recordingVideoPausesLimit: 3,
25
+ * recordingAudioPausesLimit: 5,
26
+ * pauseRecordCount: 2,
27
+ * });
28
+ * console.log('Can resume recording:', canResume);
29
+ * ```
30
+ */
9
31
  export declare class CheckResumeState {
10
32
  /**
11
33
  * Checks if the recording can be resumed based on the media type and pause limits.
@@ -40,6 +40,69 @@ export interface ConfirmRecordingOptions {
40
40
  parameters: ConfirmRecordingParameters;
41
41
  }
42
42
  export type ConfirmRecordingType = (options: ConfirmRecordingOptions) => Promise<void>;
43
+ /**
44
+ * Confirms the recording settings based on the provided parameters and updates the recording state.
45
+ *
46
+ * @param {ConfirmRecordingOptions} options - The options for confirming the recording.
47
+ * @param {ConfirmRecordingParameters} options.parameters - The parameters for the recording, including:
48
+ * - {ShowAlert} [options.parameters.showAlert] - Optional function to show alert messages.
49
+ * - {string} options.parameters.recordingMediaOptions - Type of media being recorded ("video" or "audio").
50
+ * - {string} options.parameters.recordingAudioOptions - Audio recording options.
51
+ * - {string} options.parameters.recordingVideoOptions - Video recording options.
52
+ * - {string} options.parameters.recordingVideoType - Type of video recording.
53
+ * - {'video' | 'media' | 'all'} options.parameters.recordingDisplayType - The display type for the recording.
54
+ * - {boolean} options.parameters.recordingNameTags - Flag for including name tags in the recording.
55
+ * - {string} options.parameters.recordingBackgroundColor - Background color for the recording.
56
+ * - {string} options.parameters.recordingNameTagsColor - Color for the name tags.
57
+ * - {string} options.parameters.recordingOrientationVideo - Orientation for video recording.
58
+ * - {boolean} options.parameters.recordingAddHLS - Flag for adding HLS support.
59
+ * - {boolean} options.parameters.recordingAddText - Flag for adding custom text.
60
+ * - {string} options.parameters.recordingCustomText - Custom text for the recording.
61
+ * - {string} options.parameters.recordingCustomTextPosition - Position of the custom text.
62
+ * - {string} options.parameters.recordingCustomTextColor - Color of the custom text.
63
+ * - {string} options.parameters.meetingDisplayType - Current display type of the meeting.
64
+ * - {boolean} options.parameters.recordingVideoParticipantsFullRoomSupport - Support for video participants in full room.
65
+ * - {boolean} options.parameters.recordingAllParticipantsSupport - Support for recording all participants.
66
+ * - {boolean} options.parameters.recordingVideoParticipantsSupport - Support for video participants.
67
+ * - {boolean} options.parameters.recordingSupportForOtherOrientation - Support for other orientations.
68
+ * - {string} options.parameters.recordingPreferredOrientation - Preferred orientation for recording.
69
+ * - {boolean} options.parameters.recordingMultiFormatsSupport - Support for multiple formats.
70
+ * - {boolean} options.parameters.recordingVideoOptimized - Flag for video optimization.
71
+ * - {boolean} options.parameters.recordingAllParticipantsFullRoomSupport - Support for recording all participants in full room.
72
+ * - {boolean} options.parameters.meetingVideoOptimized - Flag for meeting video optimization.
73
+ * - {EventType} options.parameters.eventType - Type of the event.
74
+ * - {boolean} options.parameters.breakOutRoomStarted - Indicates if a breakout room has started.
75
+ * - {boolean} options.parameters.breakOutRoomEnded - Indicates if a breakout room has ended.
76
+ * - {Function} options.parameters.updateRecordingDisplayType - Function to update the recording display type.
77
+ * - {Function} options.parameters.updateRecordingVideoOptimized - Function to update video optimization status.
78
+ * - {Function} options.parameters.updateUserRecordingParams - Function to update user recording parameters.
79
+ * - {Function} options.parameters.updateConfirmedToRecord - Function to confirm the recording.
80
+ *
81
+ * @returns {Promise<void>} A promise that resolves when the recording settings have been confirmed.
82
+ *
83
+ * @remarks
84
+ * This function performs several checks to ensure that the recording settings are valid based on the provided parameters.
85
+ * If any of the checks fail, an alert is shown and the function returns early without updating the recording state.
86
+ *
87
+ * The function checks for the following conditions:
88
+ * - Whether recording videos of all participants is allowed.
89
+ * - Whether recording all participants is allowed.
90
+ * - Whether recording other video participants is allowed.
91
+ * - Whether recording all orientations is allowed.
92
+ * - Whether recording the preferred orientation is allowed.
93
+ * - Whether recording all formats is allowed.
94
+ * - Whether the recording display type is valid based on the meeting display type.
95
+ * - Whether recording all participants with media is allowed.
96
+ *
97
+ * If all checks pass, the function constructs the `mainSpecs`, `dispSpecs`, and `textSpecs` objects based on the state variables,
98
+ * updates the user recording parameters, and confirms the recording.
99
+ *
100
+ * @example
101
+ * ```typescript
102
+ * const options: ConfirmRecordingOptions = { parameters: someParameters };
103
+ * await confirmRecording(options);
104
+ * ```
105
+ */
43
106
  export declare class ConfirmRecording {
44
107
  /**
45
108
  * Confirms the recording settings based on the provided parameters and updates the recording state.
@@ -16,6 +16,49 @@ export interface LaunchRecordingOptions {
16
16
  [key: string]: any;
17
17
  }
18
18
  export type LaunchRecordingType = (options: LaunchRecordingOptions) => void;
19
+ /**
20
+ * Launches the recording process based on various conditions and updates the UI accordingly.
21
+ *
22
+ * @param {LaunchRecordingOptions} options - The options for launching the recording.
23
+ * @param {Function} options.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
24
+ * @param {boolean} options.isRecordingModalVisible - Indicates if the recording modal is currently visible.
25
+ * @param {Function} [options.showAlert] - Optional function to show an alert message.
26
+ * @param {boolean} options.stopLaunchRecord - Indicates if the recording launch should be stopped.
27
+ * @param {boolean} options.canLaunchRecord - Indicates if the recording can be launched.
28
+ * @param {boolean} options.recordingAudioSupport - Indicates if audio recording is supported.
29
+ * @param {boolean} options.recordingVideoSupport - Indicates if video recording is supported.
30
+ * @param {Function} options.updateCanRecord - Function to update the recording capability.
31
+ * @param {Function} options.updateClearedToRecord - Function to update the cleared-to-record status.
32
+ * @param {boolean} options.recordStarted - Indicates if the recording has started.
33
+ * @param {boolean} options.recordPaused - Indicates if the recording is paused.
34
+ * @param {boolean} options.localUIMode - Indicates if the local UI mode is active.
35
+ *
36
+ * @returns {void}
37
+ *
38
+ * @throws Will show an alert if:
39
+ * - The recording has already ended or the user is not allowed to record.
40
+ * - The recording initiation is not allowed due to insufficient permissions.
41
+ * - The recording is currently running and cannot be reconfigured unless paused.
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const options: LaunchRecordingOptions = {
46
+ * updateIsRecordingModalVisible: (visible) => { /* update visibility logic *\/ },
47
+ * isRecordingModalVisible: false,
48
+ * showAlert: (alert) => { /* show alert logic *\/ },
49
+ * stopLaunchRecord: false,
50
+ * canLaunchRecord: true,
51
+ * recordingAudioSupport: true,
52
+ * recordingVideoSupport: true,
53
+ * updateCanRecord: (canRecord) => { /* update record capability *\/ },
54
+ * updateClearedToRecord: (cleared) => { /* update cleared status *\/ },
55
+ * recordStarted: false,
56
+ * recordPaused: false,
57
+ * localUIMode: false,
58
+ * };
59
+ * launchRecording(options);
60
+ * ```
61
+ */
19
62
  export declare class LaunchRecording {
20
63
  /**
21
64
  * Launches the recording process based on various conditions and updates the UI accordingly.
@@ -7,6 +7,33 @@ export interface RecordPauseTimerOptions {
7
7
  showAlert?: ShowAlert;
8
8
  }
9
9
  export type RecordPauseTimerType = (options: RecordPauseTimerOptions) => boolean;
10
+ /**
11
+ * Controls the pause and resume functionality of a recording timer.
12
+ *
13
+ * @param {RecordPauseTimerOptions} options - The options for controlling the timer.
14
+ * @param {boolean} [options.stop=false] - Indicates whether to stop the timer.
15
+ * @param {boolean} options.isTimerRunning - Indicates if the timer is currently running.
16
+ * @param {boolean} options.canPauseResume - Indicates if the timer can be paused or resumed.
17
+ * @param {Function} [options.showAlert] - Optional function to show an alert message.
18
+ * @returns {boolean} - Returns true if the timer can be paused or resumed, otherwise false.
19
+ *
20
+ * @throws Will show an alert message if:
21
+ * - The timer cannot be stopped, paused, or resumed due to not meeting the required time condition.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const options: RecordPauseTimerOptions = {
26
+ * stop: false,
27
+ * isTimerRunning: true,
28
+ * canPauseResume: true,
29
+ * showAlert: (alert) => { },
30
+ * };
31
+ * const canPause = recordPauseTimer(options);
32
+ * if (canPause) {
33
+ * // proceed with pausing or resuming the recording
34
+ * }
35
+ * ```
36
+ */
10
37
  export declare class RecordPauseTimer {
11
38
  /**
12
39
  * Controls the pause and resume functionality of a recording timer.
@@ -19,6 +19,50 @@ export interface RecordResumeTimerOptions {
19
19
  parameters: RecordResumeTimerParameters;
20
20
  }
21
21
  export type RecordResumeTimerType = (options: RecordResumeTimerOptions) => Promise<boolean>;
22
+ /**
23
+ * Resumes the recording timer if it is not already running and can be paused/resumed.
24
+ *
25
+ * @param {RecordResumeTimerOptions} options - The options for resuming the recording timer.
26
+ * @param {Object} options.parameters - The parameters for the recording timer.
27
+ * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
28
+ * @param {boolean} options.parameters.isTimerRunning - Indicates if the timer is currently running.
29
+ * @param {boolean} options.parameters.canPauseResume - Indicates if the timer can be paused/resumed.
30
+ * @param {number} options.parameters.recordElapsedTime - The elapsed recording time in seconds.
31
+ * @param {number} options.parameters.recordStartTime - The start time of the recording.
32
+ * @param {NodeJS.Timeout | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
33
+ * @param {Function} options.parameters.showAlert - Function to show an alert message.
34
+ * @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
35
+ * @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
36
+ * @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running status.
37
+ * @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume status.
38
+ *
39
+ * @returns {Promise<boolean>} - Returns a promise that resolves to true if the timer was successfully resumed, otherwise false.
40
+ *
41
+ * @throws Will show an alert if the timer cannot be resumed due to conditions not being met.
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const options: RecordResumeTimerOptions = {
46
+ * parameters: {
47
+ * isTimerRunning: false,
48
+ * canPauseResume: true,
49
+ * recordElapsedTime: 10,
50
+ * recordStartTime: Date.now(),
51
+ * recordTimerInterval: null,
52
+ * showAlert: (alert) => { },
53
+ * updateRecordStartTime: (time) => { },
54
+ * updateRecordTimerInterval: (interval) => { },
55
+ * updateIsTimerRunning: (isRunning) => { },
56
+ * updateCanPauseResume: (canPause) => { },
57
+ * getUpdatedAllParams: () => ({ }),
58
+ * },
59
+ * };
60
+ * const canResume = await recordResumeTimer(options);
61
+ * if (canResume) {
62
+ * // proceed with the resumed recording
63
+ * }
64
+ * ```
65
+ */
22
66
  export declare class RecordResumeTimer {
23
67
  private RecordUpdateTimerService;
24
68
  constructor(RecordUpdateTimerService: RecordUpdateTimer);
@@ -20,6 +20,51 @@ export interface RecordStartTimerOptions {
20
20
  parameters: RecordStartTimerParameters;
21
21
  }
22
22
  export type RecordStartTimerType = (options: RecordStartTimerOptions) => Promise<void>;
23
+ /**
24
+ * Starts the recording timer and manages its state.
25
+ *
26
+ * @param {RecordStartTimerOptions} options - The options for starting the recording timer.
27
+ * @param {Object} options.parameters - The parameters for the recording timer.
28
+ * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
29
+ * @param {number} options.parameters.recordStartTime - The start time of the recording.
30
+ * @param {NodeJS.Timeout | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
31
+ * @param {boolean} options.parameters.isTimerRunning - Flag indicating if the timer is currently running.
32
+ * @param {boolean} options.parameters.canPauseResume - Flag indicating if pause/resume actions are enabled.
33
+ * @param {number} options.parameters.recordChangeSeconds - The time after which pause/resume actions are enabled.
34
+ * @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
35
+ * @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
36
+ * @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running state.
37
+ * @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume state.
38
+ *
39
+ * @returns {Promise<void>} A promise that resolves when the timer is started.
40
+ *
41
+ * @remarks
42
+ * This function initializes the recording start time and sets up an interval to update the timer every second.
43
+ * It also manages the state of the timer, including enabling and disabling pause/resume actions.
44
+ * The timer is stopped if the recording is paused, stopped, or if the room name is invalid.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * const options: RecordStartTimerOptions = {
49
+ * parameters: {
50
+ * recordStartTime: Date.now(),
51
+ * recordTimerInterval: null,
52
+ * isTimerRunning: false,
53
+ * canPauseResume: false,
54
+ * recordChangeSeconds: 15,
55
+ * recordPaused: false,
56
+ * recordStopped: false,
57
+ * roomName: 'room1',
58
+ * updateRecordStartTime: (time) => { },
59
+ * updateRecordTimerInterval: (interval) => { },
60
+ * updateIsTimerRunning: (isRunning) => { },
61
+ * updateCanPauseResume: (canPause) => {},
62
+ * getUpdatedAllParams: () => { },
63
+ * },
64
+ * };
65
+ * await recordStartTimer(options);
66
+ * ```
67
+ */
23
68
  export declare class RecordStartTimer {
24
69
  private RecordUpdateTimerService;
25
70
  constructor(RecordUpdateTimerService: RecordUpdateTimer);
@@ -6,6 +6,38 @@ export interface RecordUpdateTimerOptions {
6
6
  updateRecordingProgressTime: (formattedTime: string) => void;
7
7
  }
8
8
  export type RecordUpdateTimerType = (options: RecordUpdateTimerOptions) => void;
9
+ /**
10
+ * Updates the recording timer and progress time.
11
+ * @function
12
+ * @param {RecordUpdateTimerOptions} options - The options object containing necessary variables and functions.
13
+ */
14
+ /**
15
+ * Updates the recording timer by calculating the elapsed time since the recording started
16
+ * and formatting it in HH:MM:SS format.
17
+ *
18
+ * @param {Object} options - The options object.
19
+ * @param {number} options.recordElapsedTime - The elapsed recording time in seconds.
20
+ * @param {number} options.recordStartTime - The timestamp when the recording started.
21
+ * @param {Function} options.updateRecordElapsedTime - Callback to update the elapsed recording time.
22
+ * @param {Function} options.updateRecordingProgressTime - Callback to update the formatted recording time.
23
+ * @returns {void}
24
+ *
25
+ * @remarks
26
+ * This function calculates the elapsed time since the recording started and formats it into
27
+ * a string in HH:MM:SS format. It updates both the elapsed time in seconds and the formatted
28
+ * time via the provided callback functions.
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const options: RecordUpdateTimerOptions = {
33
+ * recordElapsedTime: 0,
34
+ * recordStartTime: Date.now(),
35
+ * updateRecordElapsedTime: (elapsedTime) => { console.log(`Elapsed Time: ${elapsedTime} seconds`); },
36
+ * updateRecordingProgressTime: (formattedTime) => { console.log(`Formatted Time: ${formattedTime}`); },
37
+ * };
38
+ * recordUpdateTimer(options);
39
+ * ```
40
+ */
9
41
  export declare class RecordUpdateTimer {
10
42
  /**
11
43
  * Updates the recording timer and progress time.
@@ -38,6 +38,56 @@ export interface StartRecordingOptions {
38
38
  parameters: StartRecordingParameters;
39
39
  }
40
40
  export type StartRecordingType = (options: StartRecordingOptions) => Promise<boolean | undefined>;
41
+ /**
42
+ * Starts the recording process based on the provided parameters.
43
+ *
44
+ * @param {StartRecordingOptions} options - The options for starting the recording.
45
+ * @param {object} options.parameters - The parameters required for starting the recording.
46
+ * @param {string} options.parameters.roomName - The name of the room where recording is to be started.
47
+ * @param {object} options.parameters.userRecordingParams - User-specific recording parameters.
48
+ * @param {object} options.parameters.socket - The socket instance for communication.
49
+ * @param {function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
50
+ * @param {boolean} options.parameters.confirmedToRecord - Flag indicating if the user has confirmed to record.
51
+ * @param {function} options.parameters.showAlert - Function to show alerts.
52
+ * @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
53
+ * @param {boolean} options.parameters.videoAlreadyOn - Flag indicating if the video is already on.
54
+ * @param {boolean} options.parameters.audioAlreadyOn - Flag indicating if the audio is already on.
55
+ * @param {boolean} options.parameters.recordStarted - Flag indicating if the recording has started.
56
+ * @param {boolean} options.parameters.recordPaused - Flag indicating if the recording is paused.
57
+ * @param {boolean} options.parameters.recordResumed - Flag indicating if the recording is resumed.
58
+ * @param {boolean} options.parameters.recordStopped - Flag indicating if the recording is stopped.
59
+ * @param {boolean} options.parameters.startReport - Flag indicating if the start report is active.
60
+ * @param {boolean} options.parameters.endReport - Flag indicating if the end report is active.
61
+ * @param {boolean} options.parameters.canRecord - Flag indicating if recording is allowed.
62
+ * @param {function} options.parameters.updateClearedToRecord - Function to update the cleared to record status.
63
+ * @param {function} options.parameters.updateRecordStarted - Function to update the record started status.
64
+ * @param {function} options.parameters.updateRecordPaused - Function to update the record paused status.
65
+ * @param {function} options.parameters.updateRecordResumed - Function to update the record resumed status.
66
+ * @param {function} options.parameters.updateStartReport - Function to update the start report status.
67
+ * @param {function} options.parameters.updateEndReport - Function to update the end report status.
68
+ * @param {function} options.parameters.updateCanRecord - Function to update the can record status.
69
+ * @param {boolean} options.parameters.whiteboardStarted - Flag indicating if the whiteboard has started.
70
+ * @param {boolean} options.parameters.whiteboardEnded - Flag indicating if the whiteboard has ended.
71
+ * @param {function} options.parameters.rePort - Function to report the recording status.
72
+ * @param {function} options.parameters.captureCanvasStream - Function to capture the canvas stream.
73
+ *
74
+ * @returns {Promise<boolean | undefined>} - A promise that resolves to a boolean indicating if the recording attempt was successful, or undefined if not applicable.
75
+ *
76
+ * @remarks
77
+ * This method checks various conditions, such as whether the user has confirmed recording and whether audio or video is already on,
78
+ * before starting the recording. It updates the recording state, manages socket communication, and handles whiteboard functionality if applicable.
79
+ *
80
+ * @example
81
+ * ```typescript
82
+ * const options: StartRecordingOptions = { parameters: someParameters };
83
+ * const result = await startRecording(options);
84
+ * if (result) {
85
+ * console.log('Recording started successfully.');
86
+ * } else {
87
+ * console.log('Failed to start recording.');
88
+ * }
89
+ * ```
90
+ */
41
91
  export declare class StartRecording {
42
92
  private RecordStartTimerService;
43
93
  private RecordResumeTimerService;