mediasfu-angular 1.0.1 → 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 (459) hide show
  1. package/README.md +194 -192
  2. package/dist/README.md +194 -192
  3. package/dist/esm2022/lib/components/background-components/background-modal/background-modal.component.mjs +37 -1
  4. package/dist/esm2022/lib/components/breakout-components/breakout-rooms-modal.component.mjs +51 -1
  5. package/dist/esm2022/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.mjs +49 -1
  6. package/dist/esm2022/lib/components/co-host-components/co-host-modal/co-host-modal.component.mjs +1 -2
  7. package/dist/esm2022/lib/components/display-components/alert-component/alert.component.component.mjs +25 -19
  8. package/dist/esm2022/lib/components/display-components/audio-card/audio-card.component.mjs +60 -1
  9. package/dist/esm2022/lib/components/display-components/audio-grid/audio-grid.component.mjs +21 -1
  10. package/dist/esm2022/lib/components/display-components/card-video-display/card-video-display.component.mjs +36 -1
  11. package/dist/esm2022/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.mjs +39 -1
  12. package/dist/esm2022/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.mjs +25 -41
  13. package/dist/esm2022/lib/components/display-components/control-widgets/menu-participants-widget.component.mjs +22 -1
  14. package/dist/esm2022/lib/components/display-components/control-widgets/menu-record-widget.component.mjs +23 -1
  15. package/dist/esm2022/lib/components/display-components/control-widgets/menu-widget.component.mjs +24 -1
  16. package/dist/esm2022/lib/components/display-components/control-widgets/message-widget.component.mjs +24 -1
  17. package/dist/esm2022/lib/components/display-components/control-widgets/record-timer-widget.component.mjs +16 -1
  18. package/dist/esm2022/lib/components/display-components/control-widgets/screenshare-widget.component.mjs +28 -1
  19. package/dist/esm2022/lib/components/display-components/flexible-grid/flexible-grid.component.mjs +28 -19
  20. package/dist/esm2022/lib/components/display-components/flexible-video/flexible-video.component.mjs +31 -46
  21. package/dist/esm2022/lib/components/display-components/loading-modal/loading-modal.component.mjs +20 -18
  22. package/dist/esm2022/lib/components/display-components/main-aspect-component/main-aspect-component.component.mjs +33 -25
  23. package/dist/esm2022/lib/components/display-components/main-container-component/main-container-component.component.mjs +29 -17
  24. package/dist/esm2022/lib/components/display-components/main-grid-component/main-grid-component.component.mjs +29 -15
  25. package/dist/esm2022/lib/components/display-components/main-screen-component/main-screen-component.component.mjs +44 -23
  26. package/dist/esm2022/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.mjs +26 -31
  27. package/dist/esm2022/lib/components/display-components/mini-audio/mini-audio.component.mjs +52 -59
  28. package/dist/esm2022/lib/components/display-components/mini-card/mini-card.component.mjs +20 -24
  29. package/dist/esm2022/lib/components/display-components/mini-card-audio/mini-card-audio.component.mjs +40 -40
  30. package/dist/esm2022/lib/components/display-components/other-grid-component/other-grid-component.component.mjs +29 -14
  31. package/dist/esm2022/lib/components/display-components/pagination/pagination.component.mjs +30 -24
  32. package/dist/esm2022/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.mjs +19 -25
  33. package/dist/esm2022/lib/components/display-components/video-card/video-card.component.mjs +63 -1
  34. package/dist/esm2022/lib/components/display-settings-components/display-settings-modal.component.mjs +29 -18
  35. package/dist/esm2022/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.mjs +48 -39
  36. package/dist/esm2022/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.mjs +36 -23
  37. package/dist/esm2022/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.mjs +36 -25
  38. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-broadcast.component.mjs +50 -1
  39. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-chat.component.mjs +50 -1
  40. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-conference.component.mjs +48 -1
  41. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-generic.component.mjs +48 -1
  42. package/dist/esm2022/lib/components/mediasfu-components/mediasfu-webinar.component.mjs +46 -1
  43. package/dist/esm2022/lib/components/menu-components/custom-buttons/custom-buttons.component.mjs +50 -52
  44. package/dist/esm2022/lib/components/menu-components/meeting-id-component/meeting-id-component.component.mjs +7 -2
  45. package/dist/esm2022/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.mjs +6 -1
  46. package/dist/esm2022/lib/components/menu-components/menu-modal/menu-modal.component.mjs +22 -29
  47. package/dist/esm2022/lib/components/menu-components/share-buttons-component/share-buttons-component.component.mjs +16 -14
  48. package/dist/esm2022/lib/components/message-components/message-panel/message-panel.component.mjs +25 -1
  49. package/dist/esm2022/lib/components/message-components/messages-modal/messages-modal.component.mjs +35 -1
  50. package/dist/esm2022/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.mjs +17 -34
  51. package/dist/esm2022/lib/components/misc-components/pre-join-page/pre-join-page.component.mjs +9 -1
  52. package/dist/esm2022/lib/components/misc-components/share-event-modal/share-event-modal.component.mjs +15 -1
  53. package/dist/esm2022/lib/components/misc-components/welcome-page/welcome-page.component.mjs +16 -1
  54. package/dist/esm2022/lib/components/participants-components/participant-list/participant-list.component.mjs +20 -1
  55. package/dist/esm2022/lib/components/participants-components/participant-list-item/participant-list-item.component.mjs +20 -1
  56. package/dist/esm2022/lib/components/participants-components/participant-list-others/participant-list-others.component.mjs +18 -1
  57. package/dist/esm2022/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.mjs +18 -1
  58. package/dist/esm2022/lib/components/participants-components/participants-modal/participants-modal.component.mjs +25 -1
  59. package/dist/esm2022/lib/components/polls-components/poll-modal/poll-modal.component.mjs +28 -1
  60. package/dist/esm2022/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.mjs +16 -1
  61. package/dist/esm2022/lib/components/recording-components/recording-modal/recording-modal.component.mjs +13 -1
  62. package/dist/esm2022/lib/components/recording-components/standard-panel-component/standard-panel-component.component.mjs +6 -1
  63. package/dist/esm2022/lib/components/requests-components/render-request-component/render-request-component.component.mjs +23 -1
  64. package/dist/esm2022/lib/components/requests-components/requests-modal/requests-modal.component.mjs +18 -1
  65. package/dist/esm2022/lib/components/screenboard-components/screenboard/screenboard.component.mjs +11 -1
  66. package/dist/esm2022/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.mjs +12 -1
  67. package/dist/esm2022/lib/components/waiting-components/waiting-room-modal.component.mjs +60 -1
  68. package/dist/esm2022/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.mjs +22 -1
  69. package/dist/esm2022/lib/components/whiteboard-components/whiteboard/whiteboard.component.mjs +50 -1
  70. package/dist/esm2022/lib/consumers/add-videos-grid.service.mjs +50 -1
  71. package/dist/esm2022/lib/consumers/auto-adjust.service.mjs +27 -1
  72. package/dist/esm2022/lib/consumers/calculate-rows-and-columns.service.mjs +19 -1
  73. package/dist/esm2022/lib/consumers/change-vids.service.mjs +132 -67
  74. package/dist/esm2022/lib/consumers/check-grid.service.mjs +33 -19
  75. package/dist/esm2022/lib/consumers/check-permission.service.mjs +26 -1
  76. package/dist/esm2022/lib/consumers/check-screen-share.service.mjs +36 -1
  77. package/dist/esm2022/lib/consumers/close-and-resize.service.mjs +103 -1
  78. package/dist/esm2022/lib/consumers/compare-active-names.service.mjs +32 -1
  79. package/dist/esm2022/lib/consumers/compare-screen-states.service.mjs +36 -1
  80. package/dist/esm2022/lib/consumers/connect-ips.service.mjs +43 -1
  81. package/dist/esm2022/lib/consumers/connect-recv-transport.service.mjs +34 -1
  82. package/dist/esm2022/lib/consumers/connect-send-transport-audio.service.mjs +39 -1
  83. package/dist/esm2022/lib/consumers/connect-send-transport-screen.service.mjs +41 -1
  84. package/dist/esm2022/lib/consumers/connect-send-transport-video.service.mjs +45 -1
  85. package/dist/esm2022/lib/consumers/connect-send-transport.service.mjs +55 -1
  86. package/dist/esm2022/lib/consumers/consumer-resume.service.mjs +37 -1
  87. package/dist/esm2022/lib/consumers/control-media.service.mjs +46 -1
  88. package/dist/esm2022/lib/consumers/create-send-transport.service.mjs +47 -1
  89. package/dist/esm2022/lib/consumers/disconnect-send-transport-audio.service.mjs +51 -1
  90. package/dist/esm2022/lib/consumers/disconnect-send-transport-screen.service.mjs +40 -1
  91. package/dist/esm2022/lib/consumers/disconnect-send-transport-video.service.mjs +46 -1
  92. package/dist/esm2022/lib/consumers/disp-streams.service.mjs +93 -1
  93. package/dist/esm2022/lib/consumers/generate-page-content.service.mjs +48 -1
  94. package/dist/esm2022/lib/consumers/get-estimate.service.mjs +51 -1
  95. package/dist/esm2022/lib/consumers/get-piped-producers-alt.service.mjs +34 -1
  96. package/dist/esm2022/lib/consumers/get-producers-piped.service.mjs +34 -1
  97. package/dist/esm2022/lib/consumers/get-videos.service.mjs +34 -1
  98. package/dist/esm2022/lib/consumers/mix-streams.service.mjs +23 -1
  99. package/dist/esm2022/lib/consumers/on-screen-changes.service.mjs +41 -1
  100. package/dist/esm2022/lib/consumers/prepopulate-user-media.service.mjs +100 -1
  101. package/dist/esm2022/lib/consumers/process-consumer-transports-audio.service.mjs +30 -1
  102. package/dist/esm2022/lib/consumers/process-consumer-transports.service.mjs +38 -1
  103. package/dist/esm2022/lib/consumers/re-port.service.mjs +49 -1
  104. package/dist/esm2022/lib/consumers/re-update-inter.service.mjs +83 -1
  105. package/dist/esm2022/lib/consumers/readjust.service.mjs +51 -1
  106. package/dist/esm2022/lib/consumers/receive-all-piped-transports.service.mjs +32 -1
  107. package/dist/esm2022/lib/consumers/receive-room-messages.service.mjs +28 -1
  108. package/dist/esm2022/lib/consumers/reorder-streams.service.mjs +59 -1
  109. package/dist/esm2022/lib/consumers/request-screen-share.service.mjs +35 -1
  110. package/dist/esm2022/lib/consumers/resume-pause-audio-streams.service.mjs +52 -1
  111. package/dist/esm2022/lib/consumers/resume-pause-streams.service.mjs +34 -1
  112. package/dist/esm2022/lib/consumers/resume-send-transport-audio.service.mjs +37 -1
  113. package/dist/esm2022/lib/consumers/signal-new-consumer-transport.service.mjs +38 -38
  114. package/dist/esm2022/lib/consumers/socket-receive-methods/join-consume-room.service.mjs +34 -1
  115. package/dist/esm2022/lib/consumers/socket-receive-methods/new-pipe-producer.service.mjs +40 -1
  116. package/dist/esm2022/lib/consumers/socket-receive-methods/producer-closed.service.mjs +28 -1
  117. package/dist/esm2022/lib/consumers/start-share-screen.service.mjs +41 -1
  118. package/dist/esm2022/lib/consumers/stop-share-screen.service.mjs +56 -1
  119. package/dist/esm2022/lib/consumers/stream-success-audio-switch.service.mjs +54 -1
  120. package/dist/esm2022/lib/consumers/stream-success-audio.service.mjs +62 -1
  121. package/dist/esm2022/lib/consumers/stream-success-screen.service.mjs +51 -1
  122. package/dist/esm2022/lib/consumers/stream-success-video.service.mjs +59 -1
  123. package/dist/esm2022/lib/consumers/switch-user-audio.service.mjs +34 -1
  124. package/dist/esm2022/lib/consumers/switch-user-video-alt.service.mjs +33 -1
  125. package/dist/esm2022/lib/consumers/switch-user-video.service.mjs +48 -1
  126. package/dist/esm2022/lib/consumers/trigger.service.mjs +39 -1
  127. package/dist/esm2022/lib/consumers/update-mini-cards-grid.service.mjs +55 -1
  128. package/dist/esm2022/lib/consumers/update-participant-audio-decibels.service.mjs +46 -1
  129. package/dist/esm2022/lib/methods/background-methods/launch-background.service.mjs +26 -1
  130. package/dist/esm2022/lib/methods/breakout-room-methods/breakout-room-updated.service.mjs +72 -1
  131. package/dist/esm2022/lib/methods/breakout-room-methods/launch-breakout-rooms.service.mjs +25 -1
  132. package/dist/esm2022/lib/methods/co-host-methods/launch-co-host.service.mjs +25 -1
  133. package/dist/esm2022/lib/methods/co-host-methods/modify-co-host-settings.service.mjs +45 -1
  134. package/dist/esm2022/lib/methods/display-settings-methods/launch-display-settings.service.mjs +23 -1
  135. package/dist/esm2022/lib/methods/display-settings-methods/modify-display-settings.service.mjs +76 -1
  136. package/dist/esm2022/lib/methods/exit-methods/confirm-exit.service.mjs +25 -1
  137. package/dist/esm2022/lib/methods/exit-methods/launch-confirm-exit.service.mjs +21 -1
  138. package/dist/esm2022/lib/methods/media-settings-methods/launch-media-settings.service.mjs +36 -1
  139. package/dist/esm2022/lib/methods/menu-methods/launch-menu-modal.service.mjs +23 -1
  140. package/dist/esm2022/lib/methods/message-methods/launch-messages.service.mjs +23 -1
  141. package/dist/esm2022/lib/methods/message-methods/send-message.service.mjs +50 -1
  142. package/dist/esm2022/lib/methods/participants-methods/launch-participants.service.mjs +25 -1
  143. package/dist/esm2022/lib/methods/participants-methods/message-participants.service.mjs +47 -1
  144. package/dist/esm2022/lib/methods/participants-methods/mute-participants.service.mjs +40 -1
  145. package/dist/esm2022/lib/methods/participants-methods/remove-participants.service.mjs +46 -1
  146. package/dist/esm2022/lib/methods/polls-methods/handle-create-poll.service.mjs +39 -1
  147. package/dist/esm2022/lib/methods/polls-methods/handle-end-poll.service.mjs +33 -1
  148. package/dist/esm2022/lib/methods/polls-methods/handle-vote-poll.service.mjs +35 -1
  149. package/dist/esm2022/lib/methods/polls-methods/launch-poll.service.mjs +21 -1
  150. package/dist/esm2022/lib/methods/polls-methods/poll-updated.service.mjs +32 -1
  151. package/dist/esm2022/lib/methods/recording-methods/check-pause-state.service.mjs +25 -1
  152. package/dist/esm2022/lib/methods/recording-methods/check-resume-state.service.mjs +23 -1
  153. package/dist/esm2022/lib/methods/recording-methods/confirm-recording.service.mjs +64 -1
  154. package/dist/esm2022/lib/methods/recording-methods/launch-recording.service.mjs +44 -1
  155. package/dist/esm2022/lib/methods/recording-methods/record-pause-timer.service.mjs +28 -1
  156. package/dist/esm2022/lib/methods/recording-methods/record-resume-timer.service.mjs +45 -1
  157. package/dist/esm2022/lib/methods/recording-methods/record-start-timer.service.mjs +46 -1
  158. package/dist/esm2022/lib/methods/recording-methods/record-update-timer.service.mjs +33 -1
  159. package/dist/esm2022/lib/methods/recording-methods/start-recording.service.mjs +51 -1
  160. package/dist/esm2022/lib/methods/recording-methods/stop-recording.service.mjs +39 -1
  161. package/dist/esm2022/lib/methods/recording-methods/update-recording.service.mjs +49 -1
  162. package/dist/esm2022/lib/methods/requests-methods/launch-requests.service.mjs +26 -1
  163. package/dist/esm2022/lib/methods/requests-methods/respond-to-requests.service.mjs +40 -1
  164. package/dist/esm2022/lib/methods/settings-methods/launch-settings.service.mjs +26 -1
  165. package/dist/esm2022/lib/methods/settings-methods/modify-settings.service.mjs +43 -1
  166. package/dist/esm2022/lib/methods/stream-methods/click-audio.service.mjs +98 -1
  167. package/dist/esm2022/lib/methods/stream-methods/click-chat.service.mjs +32 -1
  168. package/dist/esm2022/lib/methods/stream-methods/click-screen-share.service.mjs +69 -1
  169. package/dist/esm2022/lib/methods/stream-methods/click-video.service.mjs +89 -1
  170. package/dist/esm2022/lib/methods/stream-methods/switch-audio.service.mjs +48 -1
  171. package/dist/esm2022/lib/methods/stream-methods/switch-video-alt.service.mjs +51 -1
  172. package/dist/esm2022/lib/methods/stream-methods/switch-video.service.mjs +57 -1
  173. package/dist/esm2022/lib/methods/utils/format-number.service.mjs +27 -15
  174. package/dist/esm2022/lib/methods/utils/generate-random-messages.service.mjs +34 -1
  175. package/dist/esm2022/lib/methods/utils/generate-random-participants.service.mjs +28 -1
  176. package/dist/esm2022/lib/methods/utils/generate-random-polls.service.mjs +27 -1
  177. package/dist/esm2022/lib/methods/utils/generate-random-request-list.service.mjs +37 -1
  178. package/dist/esm2022/lib/methods/utils/generate-random-waiting-room-list.service.mjs +22 -1
  179. package/dist/esm2022/lib/methods/utils/get-modal-position.util.mjs +14 -4
  180. package/dist/esm2022/lib/methods/utils/get-overlay-position.util.mjs +14 -4
  181. package/dist/esm2022/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.mjs +38 -1
  182. package/dist/esm2022/lib/methods/utils/mini-audio-player/mini-audio-player.component.mjs +56 -1
  183. package/dist/esm2022/lib/methods/utils/producer/a-params.service.mjs +38 -1
  184. package/dist/esm2022/lib/methods/utils/producer/h-params.service.mjs +51 -1
  185. package/dist/esm2022/lib/methods/utils/producer/screen-params.service.mjs +38 -1
  186. package/dist/esm2022/lib/methods/utils/producer/v-params.service.mjs +51 -1
  187. package/dist/esm2022/lib/methods/utils/producer/video-capture-constraints.service.mjs +47 -1
  188. package/dist/esm2022/lib/methods/utils/sleep.util.mjs +10 -4
  189. package/dist/esm2022/lib/methods/utils/sound-player.service.mjs +22 -1
  190. package/dist/esm2022/lib/methods/utils/validate-alphanumeric.service.mjs +17 -1
  191. package/dist/esm2022/lib/methods/waiting-methods/launch-waiting.service.mjs +19 -1
  192. package/dist/esm2022/lib/methods/waiting-methods/respond-to-waiting.service.mjs +30 -1
  193. package/dist/esm2022/lib/methods/whiteboard-methods/capture-canvas-stream.service.mjs +30 -1
  194. package/dist/esm2022/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.mjs +21 -1
  195. package/dist/esm2022/lib/producer-client/producer-client-emits/create-device-client.service.mjs +24 -1
  196. package/dist/esm2022/lib/producer-client/producer-client-emits/join-room-client.service.mjs +32 -1
  197. package/dist/esm2022/lib/producer-client/producer-client-emits/update-room-parameters-client.service.mjs +45 -1
  198. package/dist/esm2022/lib/producers/producer-emits/join-con-room.service.mjs +39 -1
  199. package/dist/esm2022/lib/producers/producer-emits/join-room.service.mjs +39 -1
  200. package/dist/esm2022/lib/producers/socket-receive-methods/all-members-rest.service.mjs +74 -1
  201. package/dist/esm2022/lib/producers/socket-receive-methods/all-members.service.mjs +72 -1
  202. package/dist/esm2022/lib/producers/socket-receive-methods/all-waiting-room-members.service.mjs +28 -1
  203. package/dist/esm2022/lib/producers/socket-receive-methods/ban-participant.service.mjs +37 -1
  204. package/dist/esm2022/lib/producers/socket-receive-methods/control-media-host.service.mjs +38 -1
  205. package/dist/esm2022/lib/producers/socket-receive-methods/disconnect-user-self.service.mjs +25 -1
  206. package/dist/esm2022/lib/producers/socket-receive-methods/disconnect.service.mjs +27 -1
  207. package/dist/esm2022/lib/producers/socket-receive-methods/get-domains.service.mjs +25 -10
  208. package/dist/esm2022/lib/producers/socket-receive-methods/host-request-response.service.mjs +32 -49
  209. package/dist/esm2022/lib/producers/socket-receive-methods/meeting-ended.service.mjs +30 -1
  210. package/dist/esm2022/lib/producers/socket-receive-methods/meeting-still-there.service.mjs +24 -1
  211. package/dist/esm2022/lib/producers/socket-receive-methods/meeting-time-remaining.service.mjs +28 -1
  212. package/dist/esm2022/lib/producers/socket-receive-methods/participant-requested.service.mjs +32 -1
  213. package/dist/esm2022/lib/producers/socket-receive-methods/person-joined.service.mjs +26 -1
  214. package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-closed.service.mjs +62 -1
  215. package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-paused.service.mjs +63 -1
  216. package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-resumed.service.mjs +46 -1
  217. package/dist/esm2022/lib/producers/socket-receive-methods/re-initiate-recording.service.mjs +30 -1
  218. package/dist/esm2022/lib/producers/socket-receive-methods/receive-message.service.mjs +39 -1
  219. package/dist/esm2022/lib/producers/socket-receive-methods/recording-notice.service.mjs +39 -1
  220. package/dist/esm2022/lib/producers/socket-receive-methods/room-record-params.service.mjs +63 -1
  221. package/dist/esm2022/lib/producers/socket-receive-methods/screen-producer-id.service.mjs +42 -1
  222. package/dist/esm2022/lib/producers/socket-receive-methods/start-records.service.mjs +26 -1
  223. package/dist/esm2022/lib/producers/socket-receive-methods/stopped-recording.service.mjs +26 -1
  224. package/dist/esm2022/lib/producers/socket-receive-methods/time-left-recording.service.mjs +22 -1
  225. package/dist/esm2022/lib/producers/socket-receive-methods/update-consuming-domains.service.mjs +43 -1
  226. package/dist/esm2022/lib/producers/socket-receive-methods/update-media-settings.service.mjs +31 -1
  227. package/dist/esm2022/lib/producers/socket-receive-methods/updated-co-host.service.mjs +41 -1
  228. package/dist/esm2022/lib/producers/socket-receive-methods/user-waiting.service.mjs +15 -41
  229. package/dist/esm2022/lib/sockets/socket-manager.service.mjs +41 -1
  230. package/dist/fesm2022/mediasfu-angular.mjs +8160 -898
  231. package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
  232. package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +36 -0
  233. package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +50 -0
  234. package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +48 -0
  235. package/dist/lib/components/co-host-components/co-host-modal/co-host-modal.component.d.ts +62 -0
  236. package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +24 -18
  237. package/dist/lib/components/display-components/audio-card/audio-card.component.d.ts +59 -0
  238. package/dist/lib/components/display-components/audio-grid/audio-grid.component.d.ts +20 -0
  239. package/dist/lib/components/display-components/card-video-display/card-video-display.component.d.ts +35 -0
  240. package/dist/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.d.ts +38 -0
  241. package/dist/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.d.ts +24 -40
  242. package/dist/lib/components/display-components/control-widgets/menu-participants-widget.component.d.ts +21 -0
  243. package/dist/lib/components/display-components/control-widgets/menu-record-widget.component.d.ts +22 -0
  244. package/dist/lib/components/display-components/control-widgets/menu-widget.component.d.ts +23 -0
  245. package/dist/lib/components/display-components/control-widgets/message-widget.component.d.ts +23 -0
  246. package/dist/lib/components/display-components/control-widgets/record-timer-widget.component.d.ts +15 -0
  247. package/dist/lib/components/display-components/control-widgets/screenshare-widget.component.d.ts +27 -0
  248. package/dist/lib/components/display-components/flexible-grid/flexible-grid.component.d.ts +27 -18
  249. package/dist/lib/components/display-components/flexible-video/flexible-video.component.d.ts +30 -45
  250. package/dist/lib/components/display-components/loading-modal/loading-modal.component.d.ts +19 -17
  251. package/dist/lib/components/display-components/main-aspect-component/main-aspect-component.component.d.ts +32 -24
  252. package/dist/lib/components/display-components/main-container-component/main-container-component.component.d.ts +28 -16
  253. package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +28 -14
  254. package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +43 -22
  255. package/dist/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.d.ts +25 -30
  256. package/dist/lib/components/display-components/mini-audio/mini-audio.component.d.ts +55 -62
  257. package/dist/lib/components/display-components/mini-card/mini-card.component.d.ts +19 -23
  258. package/dist/lib/components/display-components/mini-card-audio/mini-card-audio.component.d.ts +39 -39
  259. package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +28 -13
  260. package/dist/lib/components/display-components/pagination/pagination.component.d.ts +29 -23
  261. package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +18 -24
  262. package/dist/lib/components/display-components/video-card/video-card.component.d.ts +62 -0
  263. package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +28 -17
  264. package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +47 -38
  265. package/dist/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.d.ts +35 -22
  266. package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +35 -24
  267. package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +126 -77
  268. package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +126 -77
  269. package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +146 -110
  270. package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +146 -110
  271. package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +144 -110
  272. package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +49 -51
  273. package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +6 -1
  274. package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +5 -0
  275. package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +21 -28
  276. package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +15 -13
  277. package/dist/lib/components/message-components/message-panel/message-panel.component.d.ts +24 -0
  278. package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +34 -0
  279. package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +16 -33
  280. package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +8 -0
  281. package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +14 -0
  282. package/dist/lib/components/misc-components/welcome-page/welcome-page.component.d.ts +15 -0
  283. package/dist/lib/components/participants-components/participant-list/participant-list.component.d.ts +19 -0
  284. package/dist/lib/components/participants-components/participant-list-item/participant-list-item.component.d.ts +19 -0
  285. package/dist/lib/components/participants-components/participant-list-others/participant-list-others.component.d.ts +17 -0
  286. package/dist/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.d.ts +17 -0
  287. package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +24 -0
  288. package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +27 -0
  289. package/dist/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.d.ts +15 -0
  290. package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +12 -0
  291. package/dist/lib/components/recording-components/standard-panel-component/standard-panel-component.component.d.ts +5 -0
  292. package/dist/lib/components/requests-components/render-request-component/render-request-component.component.d.ts +22 -0
  293. package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +17 -0
  294. package/dist/lib/components/screenboard-components/screenboard/screenboard.component.d.ts +10 -0
  295. package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +11 -0
  296. package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +59 -0
  297. package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +21 -0
  298. package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +49 -0
  299. package/dist/lib/consumers/add-videos-grid.service.d.ts +49 -0
  300. package/dist/lib/consumers/auto-adjust.service.d.ts +26 -0
  301. package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +18 -0
  302. package/dist/lib/consumers/change-vids.service.d.ts +131 -66
  303. package/dist/lib/consumers/check-grid.service.d.ts +32 -18
  304. package/dist/lib/consumers/check-permission.service.d.ts +25 -0
  305. package/dist/lib/consumers/check-screen-share.service.d.ts +35 -0
  306. package/dist/lib/consumers/close-and-resize.service.d.ts +102 -0
  307. package/dist/lib/consumers/compare-active-names.service.d.ts +31 -0
  308. package/dist/lib/consumers/compare-screen-states.service.d.ts +35 -0
  309. package/dist/lib/consumers/connect-ips.service.d.ts +42 -0
  310. package/dist/lib/consumers/connect-recv-transport.service.d.ts +33 -0
  311. package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +38 -0
  312. package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +40 -0
  313. package/dist/lib/consumers/connect-send-transport-video.service.d.ts +44 -0
  314. package/dist/lib/consumers/connect-send-transport.service.d.ts +54 -0
  315. package/dist/lib/consumers/consumer-resume.service.d.ts +36 -0
  316. package/dist/lib/consumers/control-media.service.d.ts +45 -0
  317. package/dist/lib/consumers/create-send-transport.service.d.ts +46 -0
  318. package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +50 -0
  319. package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +39 -0
  320. package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +45 -0
  321. package/dist/lib/consumers/disp-streams.service.d.ts +92 -0
  322. package/dist/lib/consumers/generate-page-content.service.d.ts +47 -0
  323. package/dist/lib/consumers/get-estimate.service.d.ts +50 -0
  324. package/dist/lib/consumers/get-piped-producers-alt.service.d.ts +33 -0
  325. package/dist/lib/consumers/get-producers-piped.service.d.ts +33 -0
  326. package/dist/lib/consumers/get-videos.service.d.ts +33 -0
  327. package/dist/lib/consumers/mix-streams.service.d.ts +22 -0
  328. package/dist/lib/consumers/on-screen-changes.service.d.ts +40 -0
  329. package/dist/lib/consumers/prepopulate-user-media.service.d.ts +99 -0
  330. package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +29 -0
  331. package/dist/lib/consumers/process-consumer-transports.service.d.ts +37 -0
  332. package/dist/lib/consumers/re-port.service.d.ts +48 -0
  333. package/dist/lib/consumers/re-update-inter.service.d.ts +82 -0
  334. package/dist/lib/consumers/readjust.service.d.ts +50 -0
  335. package/dist/lib/consumers/receive-all-piped-transports.service.d.ts +31 -0
  336. package/dist/lib/consumers/receive-room-messages.service.d.ts +27 -0
  337. package/dist/lib/consumers/reorder-streams.service.d.ts +58 -0
  338. package/dist/lib/consumers/request-screen-share.service.d.ts +34 -0
  339. package/dist/lib/consumers/resume-pause-audio-streams.service.d.ts +51 -0
  340. package/dist/lib/consumers/resume-pause-streams.service.d.ts +33 -0
  341. package/dist/lib/consumers/resume-send-transport-audio.service.d.ts +36 -0
  342. package/dist/lib/consumers/signal-new-consumer-transport.service.d.ts +37 -37
  343. package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +33 -0
  344. package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +39 -0
  345. package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +27 -0
  346. package/dist/lib/consumers/start-share-screen.service.d.ts +40 -0
  347. package/dist/lib/consumers/stop-share-screen.service.d.ts +55 -0
  348. package/dist/lib/consumers/stream-success-audio-switch.service.d.ts +53 -0
  349. package/dist/lib/consumers/stream-success-audio.service.d.ts +61 -0
  350. package/dist/lib/consumers/stream-success-screen.service.d.ts +50 -0
  351. package/dist/lib/consumers/stream-success-video.service.d.ts +58 -0
  352. package/dist/lib/consumers/switch-user-audio.service.d.ts +33 -0
  353. package/dist/lib/consumers/switch-user-video-alt.service.d.ts +32 -0
  354. package/dist/lib/consumers/switch-user-video.service.d.ts +47 -0
  355. package/dist/lib/consumers/trigger.service.d.ts +38 -0
  356. package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +54 -0
  357. package/dist/lib/consumers/update-participant-audio-decibels.service.d.ts +45 -0
  358. package/dist/lib/methods/background-methods/launch-background.service.d.ts +25 -0
  359. package/dist/lib/methods/breakout-room-methods/breakout-room-updated.service.d.ts +71 -0
  360. package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +24 -0
  361. package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +24 -0
  362. package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +44 -0
  363. package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +22 -0
  364. package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +75 -0
  365. package/dist/lib/methods/exit-methods/confirm-exit.service.d.ts +24 -0
  366. package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +20 -0
  367. package/dist/lib/methods/media-settings-methods/launch-media-settings.service.d.ts +35 -0
  368. package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +22 -0
  369. package/dist/lib/methods/message-methods/launch-messages.service.d.ts +22 -0
  370. package/dist/lib/methods/message-methods/send-message.service.d.ts +49 -0
  371. package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +24 -0
  372. package/dist/lib/methods/participants-methods/message-participants.service.d.ts +46 -0
  373. package/dist/lib/methods/participants-methods/mute-participants.service.d.ts +39 -0
  374. package/dist/lib/methods/participants-methods/remove-participants.service.d.ts +45 -0
  375. package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +38 -0
  376. package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +32 -0
  377. package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +34 -0
  378. package/dist/lib/methods/polls-methods/launch-poll.service.d.ts +20 -0
  379. package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +31 -0
  380. package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +24 -0
  381. package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +22 -0
  382. package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +63 -0
  383. package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +43 -0
  384. package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +27 -0
  385. package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +44 -0
  386. package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +45 -0
  387. package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +32 -0
  388. package/dist/lib/methods/recording-methods/start-recording.service.d.ts +50 -0
  389. package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +38 -0
  390. package/dist/lib/methods/recording-methods/update-recording.service.d.ts +48 -0
  391. package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +25 -0
  392. package/dist/lib/methods/requests-methods/respond-to-requests.service.d.ts +39 -0
  393. package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +25 -0
  394. package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +42 -0
  395. package/dist/lib/methods/stream-methods/click-audio.service.d.ts +97 -0
  396. package/dist/lib/methods/stream-methods/click-chat.service.d.ts +31 -0
  397. package/dist/lib/methods/stream-methods/click-screen-share.service.d.ts +68 -0
  398. package/dist/lib/methods/stream-methods/click-video.service.d.ts +88 -0
  399. package/dist/lib/methods/stream-methods/switch-audio.service.d.ts +47 -0
  400. package/dist/lib/methods/stream-methods/switch-video-alt.service.d.ts +50 -0
  401. package/dist/lib/methods/stream-methods/switch-video.service.d.ts +56 -0
  402. package/dist/lib/methods/utils/format-number.service.d.ts +26 -14
  403. package/dist/lib/methods/utils/generate-random-messages.service.d.ts +33 -0
  404. package/dist/lib/methods/utils/generate-random-participants.service.d.ts +27 -0
  405. package/dist/lib/methods/utils/generate-random-polls.service.d.ts +26 -0
  406. package/dist/lib/methods/utils/generate-random-request-list.service.d.ts +36 -0
  407. package/dist/lib/methods/utils/generate-random-waiting-room-list.service.d.ts +21 -0
  408. package/dist/lib/methods/utils/get-modal-position.util.d.ts +13 -3
  409. package/dist/lib/methods/utils/get-overlay-position.util.d.ts +13 -3
  410. package/dist/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.d.ts +37 -0
  411. package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +55 -0
  412. package/dist/lib/methods/utils/producer/a-params.service.d.ts +37 -0
  413. package/dist/lib/methods/utils/producer/h-params.service.d.ts +50 -0
  414. package/dist/lib/methods/utils/producer/screen-params.service.d.ts +37 -0
  415. package/dist/lib/methods/utils/producer/v-params.service.d.ts +50 -0
  416. package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +46 -0
  417. package/dist/lib/methods/utils/sleep.util.d.ts +9 -3
  418. package/dist/lib/methods/utils/sound-player.service.d.ts +21 -0
  419. package/dist/lib/methods/utils/validate-alphanumeric.service.d.ts +16 -0
  420. package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +18 -0
  421. package/dist/lib/methods/waiting-methods/respond-to-waiting.service.d.ts +29 -0
  422. package/dist/lib/methods/whiteboard-methods/capture-canvas-stream.service.d.ts +29 -0
  423. package/dist/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.d.ts +20 -0
  424. package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +23 -0
  425. package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +31 -0
  426. package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +44 -0
  427. package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +38 -0
  428. package/dist/lib/producers/producer-emits/join-room.service.d.ts +38 -0
  429. package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +73 -0
  430. package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +71 -0
  431. package/dist/lib/producers/socket-receive-methods/all-waiting-room-members.service.d.ts +27 -0
  432. package/dist/lib/producers/socket-receive-methods/ban-participant.service.d.ts +36 -0
  433. package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +37 -0
  434. package/dist/lib/producers/socket-receive-methods/disconnect-user-self.service.d.ts +24 -0
  435. package/dist/lib/producers/socket-receive-methods/disconnect.service.d.ts +26 -0
  436. package/dist/lib/producers/socket-receive-methods/get-domains.service.d.ts +24 -9
  437. package/dist/lib/producers/socket-receive-methods/host-request-response.service.d.ts +31 -48
  438. package/dist/lib/producers/socket-receive-methods/meeting-ended.service.d.ts +29 -0
  439. package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +23 -0
  440. package/dist/lib/producers/socket-receive-methods/meeting-time-remaining.service.d.ts +27 -0
  441. package/dist/lib/producers/socket-receive-methods/participant-requested.service.d.ts +31 -0
  442. package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +25 -0
  443. package/dist/lib/producers/socket-receive-methods/producer-media-closed.service.d.ts +61 -0
  444. package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +62 -0
  445. package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +45 -0
  446. package/dist/lib/producers/socket-receive-methods/re-initiate-recording.service.d.ts +29 -0
  447. package/dist/lib/producers/socket-receive-methods/receive-message.service.d.ts +38 -0
  448. package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +38 -0
  449. package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +62 -0
  450. package/dist/lib/producers/socket-receive-methods/screen-producer-id.service.d.ts +41 -0
  451. package/dist/lib/producers/socket-receive-methods/start-records.service.d.ts +25 -0
  452. package/dist/lib/producers/socket-receive-methods/stopped-recording.service.d.ts +25 -0
  453. package/dist/lib/producers/socket-receive-methods/time-left-recording.service.d.ts +21 -0
  454. package/dist/lib/producers/socket-receive-methods/update-consuming-domains.service.d.ts +42 -0
  455. package/dist/lib/producers/socket-receive-methods/update-media-settings.service.d.ts +30 -0
  456. package/dist/lib/producers/socket-receive-methods/updated-co-host.service.d.ts +40 -0
  457. package/dist/lib/producers/socket-receive-methods/user-waiting.service.d.ts +14 -40
  458. package/dist/lib/sockets/socket-manager.service.d.ts +40 -0
  459. package/package.json +1 -1
@@ -16,6 +16,39 @@ export interface SwitchUserAudioOptions {
16
16
  parameters: SwitchUserAudioParameters;
17
17
  }
18
18
  export type SwitchUserAudioType = (options: SwitchUserAudioOptions) => Promise<void>;
19
+ /**
20
+ * Switches the user's audio input device based on the provided audio preference.
21
+ *
22
+ * This method checks for audio permissions, attempts to access the specified audio input device,
23
+ * and updates the application's state accordingly. If the audio input device cannot be accessed,
24
+ * it will revert to the previous audio input device.
25
+ *
26
+ * @param {SwitchUserAudioOptions} options - The options for switching the user's audio input device.
27
+ * @param {string} options.audioPreference - The preferred audio input device ID.
28
+ * @param {SwitchUserAudioParameters} options.parameters - Additional parameters required for switching the audio input device.
29
+ * @param {string} options.parameters.prevAudioInputDevice - The previous audio input device ID.
30
+ * @param {Function} options.parameters.showAlert - Function to show alert messages.
31
+ * @param {boolean} options.parameters.hasAudioPermission - Flag indicating if the user has granted audio permission.
32
+ * @param {Function} options.parameters.updateUserDefaultAudioInputDevice - Function to update the user's default audio input device.
33
+ * @param {Function} options.parameters.streamSuccessAudioSwitch - Function to handle successful audio stream switch.
34
+ * @param {Function} options.parameters.requestPermissionAudio - Function to request audio permission from the user.
35
+ * @param {Function} options.parameters.checkMediaPermission - Function to check if media permission is granted.
36
+ *
37
+ * @returns {Promise<void>} A promise that resolves when the audio input device has been successfully switched.
38
+ *
39
+ * @throws Will throw an error if the audio input device cannot be accessed or if there is an unexpected error.
40
+ *
41
+ * @example
42
+ * await switchUserAudio({
43
+ * audioPreference: 'new-audio-device-id',
44
+ * parameters: {
45
+ * prevAudioInputDevice: 'previous-device-id',
46
+ * hasAudioPermission: true,
47
+ * updateUserDefaultAudioInputDevice: updateDeviceFunction,
48
+ * // other parameters...
49
+ * },
50
+ * });
51
+ */
19
52
  export declare class SwitchUserAudio {
20
53
  /**
21
54
  * Switches the user's audio input device based on the provided audio preference.
@@ -22,6 +22,38 @@ export interface SwitchUserVideoAltOptions {
22
22
  parameters: SwitchUserVideoAltParameters;
23
23
  }
24
24
  export type SwitchUserVideoAltType = (options: SwitchUserVideoAltOptions) => Promise<void>;
25
+ /**
26
+ * Switches the user's video stream based on the provided video preference and other parameters.
27
+ *
28
+ * This method manages the process of switching the user's video input device,
29
+ * checking permissions, and updating the relevant application state.
30
+ * If the specified device is not accessible, it attempts to find an alternative.
31
+ *
32
+ * @param {SwitchUserVideoAltOptions} options - The options for switching the user's video.
33
+ * @param {string} options.videoPreference - The preferred video input device ID.
34
+ * @param {boolean} options.checkoff - A flag indicating whether to turn off the video before switching.
35
+ * @param {SwitchUserVideoAltParameters} options.parameters - The parameters required for switching the video.
36
+ * @param {Function} options.parameters.showAlert - Function to show alert messages to the user.
37
+ * @param {boolean} options.parameters.hasCameraPermission - Flag indicating if the user has granted camera permission.
38
+ * @param {Function} options.parameters.updateVideoSwitching - Function to update the video switching state.
39
+ * @param {Function} options.parameters.requestPermissionCamera - Function to request camera permission from the user.
40
+ * @param {Function} options.parameters.checkMediaPermission - Function to check if media permissions are granted.
41
+ *
42
+ * @returns {Promise<void>} A promise that resolves when the video switching is complete.
43
+ *
44
+ * @throws Will throw an error if the audio input device cannot be accessed or if there is an unexpected error.
45
+ *
46
+ * @example
47
+ * await switchUserVideoAlt({
48
+ * videoPreference: 'user',
49
+ * checkoff: false,
50
+ * parameters: {
51
+ * hasCameraPermission: true,
52
+ * updateVideoSwitching: (state) => { /* update state *\/ },
53
+ * // other parameters...
54
+ * },
55
+ * });
56
+ */
25
57
  export declare class SwitchUserVideoAlt {
26
58
  private ClickVideoService;
27
59
  constructor(ClickVideoService: ClickVideo);
@@ -24,6 +24,53 @@ export interface SwitchUserVideoOptions {
24
24
  parameters: SwitchUserVideoParameters;
25
25
  }
26
26
  export type SwitchUserVideoType = (options: SwitchUserVideoOptions) => Promise<void>;
27
+ /**
28
+ * Switches the user's video input device based on the provided options.
29
+ *
30
+ * This method checks permissions, enumerates available devices, and updates the
31
+ * video stream based on user preferences. It also manages UI updates and alerts.
32
+ *
33
+ * @param {SwitchUserVideoOptions} options - The options for switching the user's video.
34
+ * @param {string} options.videoPreference - The preferred video input device ID.
35
+ * @param {boolean} options.checkoff - Flag indicating whether to turn off the video.
36
+ * @param {SwitchUserVideoParameters} options.parameters - Additional parameters required for switching the video.
37
+ * @param {boolean} options.parameters.audioOnlyRoom - Indicates if the room is audio-only.
38
+ * @param {number} options.parameters.frameRate - The desired frame rate for the video.
39
+ * @param {Object} options.parameters.vidCons - Video constraints such as width and height.
40
+ * @param {string} options.parameters.prevVideoInputDevice - The previous video input device ID.
41
+ * @param {Function} options.parameters.showAlert - Function to show alerts to the user.
42
+ * @param {boolean} options.parameters.hasCameraPermission - Indicates if the user has camera permission.
43
+ * @param {Function} options.parameters.updateVideoSwitching - Function to update video switching state.
44
+ * @param {Function} options.parameters.updateUserDefaultVideoInputDevice - Function to update the default video input device.
45
+ * @param {Function} options.parameters.requestPermissionCamera - Function to request camera permission.
46
+ * @param {Function} options.parameters.streamSuccessVideo - Function to handle successful video stream.
47
+ * @param {Function} options.parameters.sleep - Function to pause execution for a specified duration.
48
+ * @param {Function} options.parameters.checkMediaPermission - Function to check media permissions.
49
+ *
50
+ * @returns {Promise<void>} A promise that resolves when the video input device has been successfully switched.
51
+ *
52
+ * @throws {Error} Throws an error if switching the video input device fails.
53
+ *
54
+ * @example
55
+ * await switchUserVideo({
56
+ * videoPreference: 'user',
57
+ * checkoff: false,
58
+ * parameters: {
59
+ * audioOnlyRoom: false,
60
+ * frameRate: 30,
61
+ * vidCons: { width: 1280, height: 720 },
62
+ * prevVideoInputDevice: 'device-id',
63
+ * showAlert: myShowAlertFunction,
64
+ * hasCameraPermission: true,
65
+ * updateVideoSwitching: myUpdateFunction,
66
+ * updateUserDefaultVideoInputDevice: myUpdateFunction,
67
+ * requestPermissionCamera: myRequestPermissionFunction,
68
+ * streamSuccessVideo: myStreamSuccessFunction,
69
+ * sleep: mySleepFunction,
70
+ * checkMediaPermission: true,
71
+ * },
72
+ * });
73
+ */
27
74
  export declare class SwitchUserVideo {
28
75
  private ClickVideoService;
29
76
  constructor(ClickVideoService: ClickVideo);
@@ -26,6 +26,44 @@ export interface TriggerOptions {
26
26
  parameters: TriggerParameters;
27
27
  }
28
28
  export type TriggerType = (options: TriggerOptions) => Promise<void>;
29
+ /**
30
+ * Triggers an update to the screen client based on the provided parameters.
31
+ *
32
+ * This function handles various conditions to determine the main screen person,
33
+ * adjusts the screen states, and emits an update to the screen client via socket.
34
+ *
35
+ * @param {TriggerOptions} options - The options for triggering the update.
36
+ * @param {string[]} options.ref_ActiveNames - Reference to the active names.
37
+ * @param {TriggerParameters} options.parameters - The parameters for the trigger.
38
+ * @returns {Promise<void>} A promise that resolves when the trigger is complete.
39
+ *
40
+ * @throws Will throw an error if the updateScreenClient operation fails.
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * await trigger({
45
+ * ref_ActiveNames: ["user1", "user2"],
46
+ * parameters: {
47
+ * socket: socketInstance,
48
+ * roomName: "room1",
49
+ * screenStates: [{ mainScreenPerson: "user1", mainScreenFilled: true, adminOnMainScreen: false }],
50
+ * participants: [{ name: "admin", islevel: "2" }],
51
+ * updateDateState: 0,
52
+ * lastUpdate: null,
53
+ * nForReadjust: 0,
54
+ * eventType: "conference",
55
+ * shared: false,
56
+ * shareScreenStarted: false,
57
+ * whiteboardStarted: false,
58
+ * whiteboardEnded: false,
59
+ * updateUpdateDateState: (date) => {},
60
+ * updateLastUpdate: (date) => {},
61
+ * updateNForReadjust: (n) => {},
62
+ * autoAdjust: async ({ n, parameters }) => [n, 0],
63
+ * },
64
+ * });
65
+ * ```
66
+ */
29
67
  export declare class Trigger {
30
68
  /**
31
69
  * Triggers an update to the screen client based on the provided parameters.
@@ -23,6 +23,60 @@ export interface UpdateMiniCardsGridOptions {
23
23
  parameters: UpdateMiniCardsGridParameters;
24
24
  }
25
25
  export type UpdateMiniCardsGridType = (options: UpdateMiniCardsGridOptions) => Promise<void>;
26
+ /**
27
+ * Updates the mini cards grid based on the specified rows and columns.
28
+ *
29
+ * This method calculates the dimensions for the mini cards based on the provided
30
+ * rows and columns, as well as the container sizes. It also considers pagination
31
+ * settings and updates the grid sizes accordingly. The method can update either
32
+ * the default grid or an alternative grid based on the `defal` parameter.
33
+ *
34
+ * @param {UpdateMiniCardsGridOptions} options - The options for updating the mini cards grid.
35
+ * @param {number} options.rows - The number of rows in the grid.
36
+ * @param {number} options.cols - The number of columns in the grid.
37
+ * @param {boolean} [options.defal=true] - Flag indicating whether to update the default grid or an alternative grid.
38
+ * @param {number} [options.actualRows=2] - The actual number of rows in the grid.
39
+ * @param {UpdateMiniCardsGridParameters} options.parameters - Additional parameters needed for the function.
40
+ * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
41
+ * @param {Function} options.parameters.updateGridRows - Function to update the grid rows.
42
+ * @param {Function} options.parameters.updateGridCols - Function to update the grid columns.
43
+ * @param {Function} options.parameters.updateAltGridRows - Function to update the alternative grid rows.
44
+ * @param {Function} options.parameters.updateAltGridCols - Function to update the alternative grid columns.
45
+ * @param {Function} options.parameters.updateGridSizes - Function to update the grid sizes.
46
+ * @param {GridSizes} options.parameters.gridSizes - Object containing grid width and height.
47
+ * @param {string} options.parameters.paginationDirection - The direction of pagination ('horizontal' or 'vertical').
48
+ * @param {number} options.parameters.paginationHeightWidth - The height or width of pagination.
49
+ * @param {boolean} options.parameters.doPaginate - Flag indicating whether pagination is enabled.
50
+ * @param {ComponentSizes} options.parameters.componentSizes - Object containing container width and height.
51
+ * @param {EventType} options.parameters.eventType - The type of event ('chat', etc.).
52
+ *
53
+ * @returns {Promise<void>} - A Promise that resolves after updating the mini cards grid.
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * const gridOptions = {
58
+ * rows: 3,
59
+ * cols: 4,
60
+ * parameters: {
61
+ * getUpdatedAllParams: () => updatedParams,
62
+ * updateGridRows: (rows) => console.log(`Grid Rows Updated: ${rows}`),
63
+ * updateGridCols: (cols) => console.log(`Grid Cols Updated: ${cols}`),
64
+ * updateAltGridRows: (rows) => console.log(`Alt Grid Rows Updated: ${rows}`),
65
+ * updateAltGridCols: (cols) => console.log(`Alt Grid Cols Updated: ${cols}`),
66
+ * updateGridSizes: (sizes) => console.log(`Grid Sizes Updated: ${JSON.stringify(sizes)}`),
67
+ * gridSizes: { gridWidth: 100, gridHeight: 100 },
68
+ * paginationDirection: 'horizontal',
69
+ * paginationHeightWidth: 50,
70
+ * doPaginate: true,
71
+ * componentSizes: { otherWidth: 800, otherHeight: 600 },
72
+ * eventType: 'chat',
73
+ * },
74
+ * };
75
+ *
76
+ * const miniCardGridService = new UpdateMiniCardsGrid();
77
+ * miniCardGridService.updateMiniCardsGrid(gridOptions);
78
+ * ```
79
+ */
26
80
  export declare class UpdateMiniCardsGrid {
27
81
  /**
28
82
  * Updates the mini cards grid based on the specified rows and columns.
@@ -7,6 +7,51 @@ export interface UpdateParticipantAudioDecibelsOptions {
7
7
  updateAudioDecibels: (audioDecibels: AudioDecibels[]) => void;
8
8
  }
9
9
  export type UpdateParticipantAudioDecibelsType = (options: UpdateParticipantAudioDecibelsOptions) => void;
10
+ /**
11
+ * Updates or adds a participant's audio decibel data in the array.
12
+ *
13
+ * This method checks if a participant's name exists in the audio decibels array.
14
+ * If it does, it updates the participant's `averageLoudness`; otherwise, it adds a new entry.
15
+ * After modification, it calls `updateAudioDecibels` to apply the changes to the array.
16
+ *
17
+ * @param {UpdateParticipantAudioDecibelsOptions} options - The options for updating participant audio decibels.
18
+ * @param {string} options.name - The name of the participant.
19
+ * @param {number} options.averageLoudness - The current average loudness of the participant.
20
+ * @param {AudioDecibels[]} options.audioDecibels - The array of current audio decibel entries.
21
+ * @param {Function} options.updateAudioDecibels - The function to update the audio decibels array.
22
+ *
23
+ * @returns {void} - This function does not return a value.
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const audioDecibels = [
28
+ * { name: 'Alice', averageLoudness: -10 },
29
+ * { name: 'Bob', averageLoudness: -12 },
30
+ * ];
31
+ *
32
+ * const updateAudioDecibels = (newDecibels) => {
33
+ * console.log('Updated audio decibels:', newDecibels);
34
+ * };
35
+ *
36
+ * const updateService = new UpdateParticipantAudioDecibels();
37
+ *
38
+ * // Update existing participant
39
+ * updateService.updateParticipantAudioDecibels({
40
+ * name: 'Alice',
41
+ * averageLoudness: -8,
42
+ * audioDecibels,
43
+ * updateAudioDecibels,
44
+ * });
45
+ *
46
+ * // Add a new participant
47
+ * updateService.updateParticipantAudioDecibels({
48
+ * name: 'Charlie',
49
+ * averageLoudness: -15,
50
+ * audioDecibels,
51
+ * updateAudioDecibels,
52
+ * });
53
+ * ```
54
+ */
10
55
  export declare class UpdateParticipantAudioDecibels {
11
56
  /**
12
57
  * Updates the audio decibels for a participant.
@@ -4,6 +4,31 @@ export interface LaunchBackgroundOptions {
4
4
  isBackgroundModalVisible: boolean;
5
5
  }
6
6
  export type LaunchBackgroundType = (options: LaunchBackgroundOptions) => void;
7
+ /**
8
+ * Toggles the visibility of the background modal.
9
+ *
10
+ * This method updates the visibility state of the background modal by calling
11
+ * the provided update function with the negation of the current visibility state.
12
+ *
13
+ * @param {LaunchBackgroundOptions} options - The options object containing necessary variables and functions.
14
+ * @param {Function} options.updateIsBackgroundModalVisible - Function to update the visibility state of the background modal.
15
+ * @param {boolean} options.isBackgroundModalVisible - Current visibility state of the background modal.
16
+ *
17
+ * @returns {void}
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const options = {
22
+ * updateIsBackgroundModalVisible: (isVisible) => {
23
+ * console.log(`Background modal is now ${isVisible ? 'visible' : 'hidden'}.`);
24
+ * },
25
+ * isBackgroundModalVisible: false,
26
+ * };
27
+ *
28
+ * const launchBackgroundService = new LaunchBackground();
29
+ * launchBackgroundService.launchBackground(options);
30
+ * ```
31
+ */
7
32
  export declare class LaunchBackground {
8
33
  /**
9
34
  * Toggles the visibility of the background modal.
@@ -27,6 +27,77 @@ export interface BreakoutRoomUpdatedOptions {
27
27
  parameters: BreakoutRoomUpdatedParameters;
28
28
  }
29
29
  export type BreakoutRoomUpdatedType = (options: BreakoutRoomUpdatedOptions) => Promise<void>;
30
+ /**
31
+ * Updates the state of breakout rooms based on the provided data and parameters.
32
+ *
33
+ * This method handles changes in breakout rooms, updates the relevant state variables,
34
+ * and triggers necessary UI updates based on the current status of the breakout rooms.
35
+ *
36
+ * @param {BreakoutRoomUpdatedOptions} options - The options object containing the data and parameters.
37
+ * @param {BreakoutRoomUpdatedData} options.data - The data object containing information about the breakout rooms.
38
+ * @param {BreakoutRoomUpdatedParameters} options.parameters - The parameters object containing various state update functions and other parameters.
39
+ * @param {boolean} options.parameters.breakOutRoomStarted - Indicates if the breakout room has started.
40
+ * @param {boolean} options.parameters.breakOutRoomEnded - Indicates if the breakout room has ended.
41
+ * @param {Array<BreakoutParticipant[]>} options.parameters.breakoutRooms - The list of current breakout rooms.
42
+ * @param {number} options.parameters.hostNewRoom - The ID of the new room for the host.
43
+ * @param {string} options.parameters.islevel - The level of the breakout room (e.g., '2' for host).
44
+ * @param {Array<Participant>} options.parameters.participantsAll - The list of all participants.
45
+ * @param {Array<Participant>} options.parameters.participants - The list of participants who are not banned.
46
+ * @param {string} options.parameters.meetingDisplayType - The current display type of the meeting.
47
+ * @param {string} options.parameters.prevMeetingDisplayType - The previous display type of the meeting.
48
+ * @param {Function} options.parameters.updateBreakoutRooms - Function to update the breakout rooms.
49
+ * @param {Function} options.parameters.updateBreakOutRoomStarted - Function to update the breakout room started state.
50
+ * @param {Function} options.parameters.updateBreakOutRoomEnded - Function to update the breakout room ended state.
51
+ * @param {Function} options.parameters.updateHostNewRoom - Function to update the host's new room.
52
+ * @param {Function} options.parameters.updateMeetingDisplayType - Function to update the meeting display type.
53
+ * @param {Function} options.parameters.updateParticipantsAll - Function to update the list of all participants.
54
+ * @param {Function} options.parameters.updateParticipants - Function to update the list of participants who are not banned.
55
+ * @param {Function} options.parameters.onScreenChanges - Function to handle screen changes.
56
+ * @param {Function} options.parameters.rePort - Function to handle reporting.
57
+ *
58
+ * @returns {Promise<void>} A promise that resolves when the breakout room state has been updated.
59
+ *
60
+ * @throws Will throw an error if the update process fails.
61
+ *
62
+ * @example
63
+ * ```typescript
64
+ * const options = {
65
+ * data: {
66
+ * forHost: true,
67
+ * newRoom: 3,
68
+ * status: 'started',
69
+ * members: [
70
+ * { name: 'user1', isBanned: false, audioID: 'audio1', videoID: 'video1' },
71
+ * { name: 'user2', isBanned: true, audioID: 'audio2', videoID: 'video2' },
72
+ * ],
73
+ * breakoutRooms: [[{ name: 'user1' }, { name: 'user2' }]],
74
+ * },
75
+ * parameters: {
76
+ * socket: socketInstance,
77
+ * roomName: 'mainRoom',
78
+ * screenStates: [{ mainScreenPerson: 'user1', mainScreenFilled: true, adminOnMainScreen: false }],
79
+ * participants: [{ name: 'admin', islevel: '2' }],
80
+ * breakOutRoomStarted: false,
81
+ * breakOutRoomEnded: false,
82
+ * hostNewRoom: 0,
83
+ * islevel: '2',
84
+ * participantsAll: [],
85
+ * updateBreakoutRooms: (rooms) => {},
86
+ * updateBreakOutRoomStarted: (started) => {},
87
+ * updateBreakOutRoomEnded: (ended) => {},
88
+ * updateHostNewRoom: (room) => {},
89
+ * updateMeetingDisplayType: (type) => {},
90
+ * updateParticipantsAll: (participants) => {},
91
+ * updateParticipants: (participants) => {},
92
+ * onScreenChanges: async () => {},
93
+ * rePort: async () => {},
94
+ * },
95
+ * };
96
+ *
97
+ * const breakoutRoomService = new BreakoutRoomUpdated();
98
+ * await breakoutRoomService.breakoutRoomUpdated(options);
99
+ * ```
100
+ */
30
101
  export declare class BreakoutRoomUpdated {
31
102
  /**
32
103
  * Updates the state of breakout rooms based on the provided data and parameters.
@@ -4,6 +4,30 @@ export interface LaunchBreakoutRoomsOptions {
4
4
  isBreakoutRoomsModalVisible: boolean;
5
5
  }
6
6
  export type LaunchBreakoutRoomsType = (options: LaunchBreakoutRoomsOptions) => void;
7
+ /**
8
+ * Launches the breakout rooms by toggling the visibility of the breakout rooms modal.
9
+ *
10
+ * This method is used to show or hide the breakout rooms modal based on the current visibility state.
11
+ *
12
+ * @param {LaunchBreakoutRoomsOptions} options - The options object containing necessary variables and functions.
13
+ * @param {Function} options.updateIsBreakoutRoomsModalVisible - Function to update the visibility state of the breakout rooms modal.
14
+ * @param {boolean} options.isBreakoutRoomsModalVisible - Current visibility state of the breakout rooms modal.
15
+ *
16
+ * @returns {void}
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const options: LaunchBreakoutRoomsOptions = {
21
+ * updateIsBreakoutRoomsModalVisible: (isVisible) => {
22
+ * console.log('Breakout Rooms Modal is now:', isVisible ? 'Visible' : 'Hidden');
23
+ * },
24
+ * isBreakoutRoomsModalVisible: false,
25
+ * };
26
+ *
27
+ * const launchBreakoutRoomsService = new LaunchBreakoutRooms();
28
+ * launchBreakoutRoomsService.launchBreakoutRooms(options);
29
+ * ```
30
+ */
7
31
  export declare class LaunchBreakoutRooms {
8
32
  /**
9
33
  * Launches the breakout rooms by toggling the visibility of the breakout rooms modal.
@@ -4,6 +4,30 @@ export interface LaunchCoHostOptions {
4
4
  isCoHostModalVisible: boolean;
5
5
  }
6
6
  export type LaunchCoHostType = (options: LaunchCoHostOptions) => void;
7
+ /**
8
+ * Toggles the visibility of the co-host modal.
9
+ *
10
+ * This method is used to show or hide the co-host modal based on the current visibility state.
11
+ *
12
+ * @param {LaunchCoHostOptions} options - The options object containing necessary variables and functions.
13
+ * @param {Function} options.updateIsCoHostModalVisible - Function to update the visibility state of the co-host modal.
14
+ * @param {boolean} options.isCoHostModalVisible - Current visibility state of the co-host modal.
15
+ *
16
+ * @returns {void}
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const options: LaunchCoHostOptions = {
21
+ * updateIsCoHostModalVisible: (isVisible) => {
22
+ * console.log('Co-Host Modal is now:', isVisible ? 'Visible' : 'Hidden');
23
+ * },
24
+ * isCoHostModalVisible: false,
25
+ * };
26
+ *
27
+ * const launchCoHostService = new launchCoHost();
28
+ * launchCoHostService.launchCoHost(options);
29
+ * ```
30
+ */
7
31
  export declare class launchCoHost {
8
32
  /**
9
33
  * Toggles the visibility of the co-host modal.
@@ -13,6 +13,50 @@ export interface ModifyCoHostSettingsOptions {
13
13
  socket: Socket;
14
14
  }
15
15
  export type ModifyCoHostSettingsType = (options: ModifyCoHostSettingsOptions) => Promise<void>;
16
+ /**
17
+ * Modifies the co-host settings for a given room.
18
+ *
19
+ * This method allows you to update the co-host for a chat room, set their responsibilities,
20
+ * and emit the relevant changes to the server. It also handles demo mode restrictions.
21
+ *
22
+ * @param {ModifyCoHostSettingsOptions} options - The options for modifying co-host settings.
23
+ * @param {string} options.roomName - The name of the room.
24
+ * @param {Function} options.showAlert - Function to show an alert message.
25
+ * @param {string} options.selectedParticipant - The participant selected to be co-host.
26
+ * @param {string} options.coHost - The current co-host.
27
+ * @param {Array<CoHostResponsibility>} options.coHostResponsibility - The responsibilities assigned to the co-host.
28
+ * @param {Function} options.updateIsCoHostModalVisible - Function to update the visibility of the co-host modal.
29
+ * @param {Function} options.updateCoHostResponsibility - Function to update the co-host responsibility.
30
+ * @param {Function} options.updateCoHost - Function to update the co-host.
31
+ * @param {Socket} options.socket - The socket instance for emitting events.
32
+ *
33
+ * @returns {Promise<void>} A promise that resolves when the co-host settings have been modified.
34
+ *
35
+ * @remarks
36
+ * - If the room is in demo mode (room name starts with "d"), co-host cannot be added and an alert is shown.
37
+ * - If a valid participant is selected, they are set as the new co-host.
38
+ * - The co-host responsibility is updated.
39
+ * - A socket event is emitted to update the co-host information.
40
+ * - The co-host modal is closed after updating the settings.
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * const options: ModifyCoHostSettingsOptions = {
45
+ * roomName: 'mainRoom',
46
+ * showAlert: (alert) => console.log(alert.message),
47
+ * selectedParticipant: 'JohnDoe',
48
+ * coHost: 'No coHost',
49
+ * coHostResponsibility: ['manage participants', 'start/stop recording'],
50
+ * updateIsCoHostModalVisible: (isVisible) => console.log('Co-host modal visible:', isVisible),
51
+ * updateCoHostResponsibility: (responsibility) => console.log('Updated co-host responsibility:', responsibility),
52
+ * updateCoHost: (coHost) => console.log('New co-host:', coHost),
53
+ * socket: socketInstance,
54
+ * };
55
+ *
56
+ * const modifyCoHostService = new ModifyCoHostSettings();
57
+ * await modifyCoHostService.modifyCoHostSettings(options);
58
+ * ```
59
+ */
16
60
  export declare class ModifyCoHostSettings {
17
61
  /**
18
62
  * Modifies the co-host settings for a given room.
@@ -4,6 +4,28 @@ export interface LaunchDisplaySettingsOptions {
4
4
  isDisplaySettingsModalVisible: boolean;
5
5
  }
6
6
  export type LaunchDisplaySettingsType = (options: LaunchDisplaySettingsOptions) => void;
7
+ /**
8
+ * Toggles the visibility of the display settings modal.
9
+ *
10
+ * This method allows you to show or hide the display settings modal by updating its visibility state.
11
+ *
12
+ * @param {LaunchDisplaySettingsOptions} options - The options for launching the display settings.
13
+ * @param {Function} options.updateIsDisplaySettingsModalVisible - Function to update the visibility state of the display settings modal.
14
+ * @param {boolean} options.isDisplaySettingsModalVisible - Current visibility state of the display settings modal.
15
+ *
16
+ * @returns {void}
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const options: LaunchDisplaySettingsOptions = {
21
+ * updateIsDisplaySettingsModalVisible: (isVisible) => console.log('Display settings modal is now:', isVisible),
22
+ * isDisplaySettingsModalVisible: false,
23
+ * };
24
+ *
25
+ * const launchDisplaySettingsService = new LaunchDisplaySettings();
26
+ * launchDisplaySettingsService.launchDisplaySettings(options);
27
+ * ```
28
+ */
7
29
  export declare class LaunchDisplaySettings {
8
30
  /**
9
31
  * Toggles the visibility of the display settings modal.
@@ -33,6 +33,81 @@ export interface ModifyDisplaySettingsOptions {
33
33
  parameters: ModifyDisplaySettingsParameters;
34
34
  }
35
35
  export type ModifyDisplaySettingsType = (options: ModifyDisplaySettingsOptions) => Promise<void>;
36
+ /**
37
+ * Modifies the display settings based on the provided parameters.
38
+ *
39
+ * This method updates the display settings for the meeting based on the participant's level,
40
+ * recording status, and other conditions. It validates display types and shows alerts
41
+ * when necessary. It also handles the display settings for breakout rooms.
42
+ *
43
+ * @param {ModifyDisplaySettingsOptions} options - The options containing the parameters to modify the display settings.
44
+ * @param {Object} options.parameters - The parameters for modifying the display settings.
45
+ * @param {Function} options.parameters.showAlert - Function to show alert messages.
46
+ * @param {string} options.parameters.meetingDisplayType - The current meeting display type.
47
+ * @param {boolean} options.parameters.autoWave - Flag indicating if auto wave is enabled.
48
+ * @param {boolean} options.parameters.forceFullDisplay - Flag indicating if full display is forced.
49
+ * @param {boolean} options.parameters.meetingVideoOptimized - Flag indicating if the meeting video is optimized.
50
+ * @param {string} options.parameters.islevel - The current level of the meeting.
51
+ * @param {boolean} options.parameters.recordStarted - Flag indicating if recording has started.
52
+ * @param {boolean} options.parameters.recordResumed - Flag indicating if recording has resumed.
53
+ * @param {boolean} options.parameters.recordStopped - Flag indicating if recording has stopped.
54
+ * @param {boolean} options.parameters.recordPaused - Flag indicating if recording is paused.
55
+ * @param {string} options.parameters.recordingDisplayType - The current recording display type.
56
+ * @param {boolean} options.parameters.recordingVideoOptimized - Flag indicating if the recording video is optimized.
57
+ * @param {string} options.parameters.prevForceFullDisplay - The previous force full display value.
58
+ * @param {string} options.parameters.prevMeetingDisplayType - The previous meeting display type.
59
+ * @param {Function} options.parameters.updateMeetingDisplayType - Function to update the meeting display type.
60
+ * @param {Function} options.parameters.updateAutoWave - Function to update the auto wave setting.
61
+ * @param {Function} options.parameters.updateForceFullDisplay - Function to update the force full display setting.
62
+ * @param {Function} options.parameters.updateMeetingVideoOptimized - Function to update the meeting video optimization setting.
63
+ * @param {Function} options.parameters.updatePrevForceFullDisplay - Function to update the previous force full display setting.
64
+ * @param {Function} options.parameters.updatePrevMeetingDisplayType - Function to update the previous meeting display type.
65
+ * @param {Function} options.parameters.updateIsDisplaySettingsModalVisible - Function to update the visibility of the display settings modal.
66
+ * @param {Function} options.parameters.updateFirstAll - Function to update the first all setting.
67
+ * @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window.
68
+ * @param {boolean} options.parameters.breakOutRoomStarted - Flag indicating if a breakout room has started.
69
+ * @param {boolean} options.parameters.breakOutRoomEnded - Flag indicating if a breakout room has ended.
70
+ * @param {Function} options.parameters.onScreenChanges - Function to handle screen changes.
71
+ *
72
+ * @returns {Promise<void>} A promise that resolves when the display settings have been modified.
73
+ *
74
+ * @example
75
+ * ```typescript
76
+ * const options: ModifyDisplaySettingsOptions = {
77
+ * parameters: {
78
+ * showAlert: (alert) => console.log(alert.message),
79
+ * meetingDisplayType: 'video',
80
+ * autoWave: true,
81
+ * forceFullDisplay: false,
82
+ * meetingVideoOptimized: true,
83
+ * islevel: '1',
84
+ * recordStarted: false,
85
+ * recordResumed: false,
86
+ * recordStopped: false,
87
+ * recordPaused: false,
88
+ * recordingDisplayType: 'media',
89
+ * recordingVideoOptimized: false,
90
+ * prevForceFullDisplay: false,
91
+ * prevMeetingDisplayType: 'media',
92
+ * updateMeetingDisplayType: (type) => console.log('Updated display type:', type),
93
+ * updateAutoWave: (wave) => console.log('Updated auto wave:', wave),
94
+ * updateForceFullDisplay: (fullDisplay) => console.log('Updated force full display:', fullDisplay),
95
+ * updateMeetingVideoOptimized: (optimized) => console.log('Updated video optimization:', optimized),
96
+ * updatePrevForceFullDisplay: (fullDisplay) => console.log('Updated previous full display:', fullDisplay),
97
+ * updatePrevMeetingDisplayType: (type) => console.log('Updated previous display type:', type),
98
+ * updateIsDisplaySettingsModalVisible: (isVisible) => console.log('Display settings modal is now:', isVisible),
99
+ * updateFirstAll: (firstAll) => console.log('Updated first all:', firstAll),
100
+ * updateUpdateMainWindow: (update) => console.log('Updated main window:', update),
101
+ * breakOutRoomStarted: false,
102
+ * breakOutRoomEnded: false,
103
+ * onScreenChanges: async ({ changed, parameters }) => console.log('Screen changes:', changed),
104
+ * },
105
+ * };
106
+ *
107
+ * const modifyDisplaySettingsService = new ModifyDisplaySettings();
108
+ * await modifyDisplaySettingsService.modifyDisplaySettings(options);
109
+ * ```
110
+ */
36
111
  export declare class ModifyDisplaySettings {
37
112
  /**
38
113
  * Modifies the display settings based on the provided parameters.
@@ -7,6 +7,30 @@ export interface ConfirmExitOptions {
7
7
  ban?: boolean;
8
8
  }
9
9
  export type ConfirmExitType = (options: ConfirmExitOptions) => Promise<void>;
10
+ /**
11
+ * Confirms the exit of a member from a room and optionally bans them.
12
+ *
13
+ * This method emits a socket event to disconnect the specified member from the given room.
14
+ * If the `ban` option is set to true, the member will be banned from rejoining the room.
15
+ *
16
+ * @param {ConfirmExitOptions} options - The options for confirming the exit.
17
+ * @param {Socket} options.socket - The socket instance to emit the event.
18
+ * @param {string} options.member - The member who is exiting.
19
+ * @param {string} options.roomName - The name of the room the member is exiting from.
20
+ * @param {boolean} [options.ban=false] - Whether to ban the member from the room.
21
+ * @returns {Promise<void>} A promise that resolves when the exit is confirmed.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const confirmExitService = new ConfirmExit();
26
+ * await confirmExitService.confirmExit({
27
+ * socket: socketInstance,
28
+ * member: 'JohnDoe',
29
+ * roomName: 'Room1',
30
+ * ban: true, // Optional: set to true if you want to ban the member
31
+ * });
32
+ * ```
33
+ */
10
34
  export declare class ConfirmExit {
11
35
  /**
12
36
  * Confirms the exit of a member from a room and optionally bans them.