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
@@ -46,6 +46,59 @@ export interface StreamSuccessAudioSwitchOptions {
46
46
  parameters: StreamSuccessAudioSwitchParameters;
47
47
  }
48
48
  export type StreamSuccessAudioSwitchType = (options: StreamSuccessAudioSwitchOptions) => Promise<void>;
49
+ /**
50
+ * Handles the switching of the audio stream upon successful stream connection.
51
+ *
52
+ * This method updates the audio producer, manages the transport connections,
53
+ * and ensures that the UI reflects the current audio state after switching devices.
54
+ *
55
+ * @param {StreamSuccessAudioSwitchOptions} options - The options for the stream success audio switch.
56
+ * @param {MediaStream} options.stream - The new media stream with the switched audio device.
57
+ * @param {Object} options.parameters - The parameters required for the audio switch.
58
+ * @param {Producer | null} options.parameters.audioProducer - The current audio producer.
59
+ * @param {Socket} options.parameters.socket - The socket connection.
60
+ * @param {string} options.parameters.roomName - The name of the room for the connection.
61
+ * @param {MediaStream | null} options.parameters.localStream - The local media stream.
62
+ * @param {MediaStream | null} options.parameters.localStreamAudio - The local audio stream.
63
+ * @param {ProducerOptions} options.parameters.audioParams - The audio parameters for the producer.
64
+ * @param {boolean} options.parameters.audioPaused - Indicates if the audio is currently paused.
65
+ * @param {boolean} options.parameters.audioAlreadyOn - Indicates if the audio was already active.
66
+ * @param {boolean} options.parameters.transportCreated - Indicates if the transport has been created.
67
+ * @param {ProducerCodecOptions} [options.parameters.audioParamse] - Additional audio parameters.
68
+ * @param {string} options.parameters.defAudioID - The default audio device ID.
69
+ * @param {string} options.parameters.userDefaultAudioInputDevice - The user default audio input device.
70
+ * @param {string} options.parameters.hostLabel - The label of the host for the session.
71
+ * @param {boolean} options.parameters.updateMainWindow - Indicates if the main window needs to be updated.
72
+ * @param {boolean} options.parameters.videoAlreadyOn - Indicates if the video stream is active.
73
+ * @param {string} options.parameters.islevel - The level of the user in the session.
74
+ * @param {boolean} options.parameters.lock_screen - Indicates if the screen is locked.
75
+ * @param {boolean} options.parameters.shared - Indicates if the screen is shared.
76
+ * @param {Function} options.parameters.updateAudioProducer - Function to update the audio producer state.
77
+ * @param {Function} options.parameters.updateLocalStream - Function to update the local stream.
78
+ * @param {Function} options.parameters.updateAudioParams - Function to update the audio parameters.
79
+ * @param {Function} options.parameters.updateDefAudioID - Function to update the default audio device ID.
80
+ * @param {Function} options.parameters.updateUserDefaultAudioInputDevice - Function to update the user default audio input device.
81
+ * @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window state.
82
+ * @param {Function} options.parameters.sleep - Function to pause execution for a specified time.
83
+ * @param {Function} options.parameters.prepopulateUserMedia - Function to prepopulate user media.
84
+ * @param {Function} options.parameters.createSendTransport - Function to create a send transport for audio.
85
+ * @param {Function} options.parameters.connectSendTransportAudio - Function to connect the send transport for audio.
86
+ *
87
+ * @returns {Promise<void>} A promise that resolves when the audio switch is complete.
88
+ *
89
+ * @throws {Error} Throws an error if there is an issue during the audio stream switch process.
90
+ *
91
+ * @example
92
+ * await streamSuccessAudioSwitch({
93
+ * stream: newStream,
94
+ * parameters: {
95
+ * audioProducer: currentAudioProducer,
96
+ * socket: socketInstance,
97
+ * roomName: 'exampleRoom',
98
+ * // other parameters...
99
+ * },
100
+ * });
101
+ */
49
102
  export declare class StreamSuccessAudioSwitch {
50
103
  /**
51
104
  * Handles the switching of the audio stream upon successful stream connection.
@@ -48,6 +48,67 @@ export interface StreamSuccessAudioOptions {
48
48
  parameters: StreamSuccessAudioParameters;
49
49
  }
50
50
  export type StreamSuccessAudioType = (options: StreamSuccessAudioOptions) => Promise<void>;
51
+ /**
52
+ * Handles the successful streaming of audio by setting up the necessary transports and updating the relevant states.
53
+ *
54
+ * This method updates the local media stream with the new audio track, manages the transport connection,
55
+ * and updates the participants' states to reflect changes in audio settings.
56
+ *
57
+ * @param {StreamSuccessAudioOptions} options - The options for streaming success audio.
58
+ * @param {MediaStream} options.stream - The media stream containing the audio track.
59
+ * @param {StreamSuccessAudioParameters} options.parameters - The parameters required for setting up the audio stream.
60
+ * @param {Socket} options.parameters.socket - The socket connection for real-time communication.
61
+ * @param {Participant[]} options.parameters.participants - The list of participants in the session.
62
+ * @param {MediaStream | null} options.parameters.localStream - The local media stream that includes video and audio tracks.
63
+ * @param {boolean} options.parameters.transportCreated - Indicates if the audio transport has been created.
64
+ * @param {boolean} options.parameters.transportCreatedAudio - Indicates if the audio transport has been created.
65
+ * @param {boolean} options.parameters.audioAlreadyOn - Indicates if the audio is already active.
66
+ * @param {boolean} options.parameters.micAction - Indicates the microphone action state.
67
+ * @param {ProducerOptions} options.parameters.audioParams - The current audio parameters for the producer.
68
+ * @param {MediaStream | null} options.parameters.localStreamAudio - The local audio stream.
69
+ * @param {string} options.parameters.defAudioID - The default audio device ID for the stream.
70
+ * @param {string} options.parameters.userDefaultAudioInputDevice - The user default audio input device.
71
+ * @param {ProducerOptions} options.parameters.params - Additional parameters for the producer.
72
+ * @param {ProducerOptions} [options.parameters.audioParamse] - Additional audio parameters.
73
+ * @param {ProducerOptions} options.parameters.aParams - Producer parameters for the audio.
74
+ * @param {string} options.parameters.hostLabel - The label of the host for this session.
75
+ * @param {string} options.parameters.islevel - The participant's level (e.g., admin, regular user).
76
+ * @param {string} options.parameters.member - The member name for identification.
77
+ * @param {boolean} options.parameters.updateMainWindow - Indicates if the main window needs to be updated.
78
+ * @param {boolean} options.parameters.lock_screen - Indicates if the screen is locked for participants.
79
+ * @param {boolean} options.parameters.shared - Indicates if the screen is currently shared.
80
+ * @param {boolean} options.parameters.videoAlreadyOn - Indicates if the video stream is currently active.
81
+ * @param {ShowAlert} [options.parameters.showAlert] - Optional function to show alert messages.
82
+ * @param {Function} options.parameters.updateParticipants - Function to update the list of participants.
83
+ * @param {Function} options.parameters.updateTransportCreated - Function to update the audio transport created status.
84
+ * @param {Function} options.parameters.updateTransportCreatedAudio - Function to update the audio transport created status.
85
+ * @param {Function} options.parameters.updateAudioAlreadyOn - Function to update the audio active status.
86
+ * @param {Function} options.parameters.updateMicAction - Function to update the microphone action state.
87
+ * @param {Function} options.parameters.updateAudioParams - Function to update the audio parameters.
88
+ * @param {Function} options.parameters.updateLocalStream - Function to update the local stream.
89
+ * @param {Function} options.parameters.updateLocalStreamAudio - Function to update the local audio stream.
90
+ * @param {Function} options.parameters.updateDefAudioID - Function to update the default audio device ID.
91
+ * @param {Function} options.parameters.updateUserDefaultAudioInputDevice - Function to update the default audio input device.
92
+ * @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window status.
93
+ * @param {Function} options.parameters.createSendTransport - Function to create a send transport for audio.
94
+ * @param {Function} options.parameters.connectSendTransportAudio - Function to connect the send transport for audio.
95
+ * @param {Function} options.parameters.resumeSendTransportAudio - Function to resume the send transport for audio.
96
+ * @param {Function} options.parameters.prepopulateUserMedia - Function to prepopulate user media based on current settings.
97
+ *
98
+ * @returns {Promise<void>} A promise that resolves when the audio streaming setup is complete.
99
+ *
100
+ * @throws {Error} Throws an error if there is an issue during the audio stream setup.
101
+ *
102
+ * @example
103
+ * await streamSuccessAudio({
104
+ * stream: newAudioStream,
105
+ * parameters: {
106
+ * socket: socketInstance,
107
+ * participants: participantList,
108
+ * // other parameters...
109
+ * },
110
+ * });
111
+ */
51
112
  export declare class StreamSuccessAudio {
52
113
  /**
53
114
  * Handles the successful streaming of audio by setting up the necessary transports and updating the relevant states.
@@ -36,6 +36,56 @@ export interface StreamSuccessScreenOptions {
36
36
  parameters: StreamSuccessScreenParameters;
37
37
  }
38
38
  export type StreamSuccessScreenType = (options: StreamSuccessScreenOptions) => Promise<void>;
39
+ /**
40
+ * Handles the successful initiation of screen sharing.
41
+ *
42
+ * This method sets up the necessary transport connections for screen sharing,
43
+ * updates relevant application states, and notifies participants of the screen
44
+ * sharing status.
45
+ *
46
+ * @param {StreamSuccessScreenOptions} options - The options for the screen sharing success handler.
47
+ * @param {MediaStream} options.stream - The media stream to be shared.
48
+ * @param {StreamSuccessScreenParameters} options.parameters - The parameters required for screen sharing.
49
+ * @param {Socket} options.parameters.socket - The socket instance for real-time communication.
50
+ * @param {boolean} options.parameters.transportCreated - Flag indicating if the transport is already created.
51
+ * @param {MediaStream | null} options.parameters.localStreamScreen - The local screen media stream.
52
+ * @param {boolean} options.parameters.screenAlreadyOn - Flag indicating if the screen is already being shared.
53
+ * @param {boolean} options.parameters.screenAction - Flag indicating if the screen share action is requested.
54
+ * @param {boolean} options.parameters.transportCreatedScreen - Flag indicating if the screen transport is created.
55
+ * @param {string} options.parameters.hostLabel - The label of the host for this session.
56
+ * @param {string} options.parameters.eventType - The type of event (e.g., conference).
57
+ * @param {ShowAlert} [options.parameters.showAlert] - Optional function to show alert messages.
58
+ * @param {boolean} options.parameters.annotateScreenStream - Flag indicating if screen annotation is enabled.
59
+ * @param {Function} options.parameters.updateTransportCreatedScreen - Function to update the screen transport creation state.
60
+ * @param {Function} options.parameters.updateScreenAlreadyOn - Function to update the screen sharing state.
61
+ * @param {Function} options.parameters.updateScreenAction - Function to update the screen action state.
62
+ * @param {Function} options.parameters.updateTransportCreated - Function to update the transport creation state.
63
+ * @param {Function} options.parameters.updateLocalStreamScreen - Function to update the local screen stream.
64
+ * @param {Function} options.parameters.updateShared - Function to update the shared state.
65
+ * @param {Function} options.parameters.updateIsScreenboardModalVisible - Function to update the screenboard modal visibility.
66
+ * @param {Function} options.parameters.sleep - Function to pause execution for a specified time.
67
+ * @param {Function} options.parameters.createSendTransport - Function to create a send transport for screen sharing.
68
+ * @param {Function} options.parameters.connectSendTransportScreen - Function to connect the send transport for screen sharing.
69
+ * @param {Function} options.parameters.disconnectSendTransportScreen - Function to disconnect the send transport for screen sharing.
70
+ * @param {Function} options.parameters.stopShareScreen - Function to stop the screen sharing process.
71
+ * @param {Function} options.parameters.reorderStreams - Function to reorder streams based on current state.
72
+ * @param {Function} options.parameters.prepopulateUserMedia - Function to prepopulate user media based on current settings.
73
+ * @param {Function} options.parameters.rePort - Function to reinitialize ports if needed.
74
+ *
75
+ * @returns {Promise<void>} A promise that resolves when the screen sharing setup is complete.
76
+ *
77
+ * @throws {Error} Throws an error if there is an issue during the screen sharing setup.
78
+ *
79
+ * @example
80
+ * await streamSuccessScreen({
81
+ * stream: newScreenStream,
82
+ * parameters: {
83
+ * socket: socketInstance,
84
+ * localStreamScreen: null,
85
+ * // other parameters...
86
+ * },
87
+ * });
88
+ */
39
89
  export declare class StreamSuccessScreen {
40
90
  /**
41
91
  * Handles the successful initiation of screen sharing.
@@ -57,6 +57,64 @@ export interface StreamSuccessVideoOptions {
57
57
  parameters: StreamSuccessVideoParameters;
58
58
  }
59
59
  export type StreamSuccessVideoType = (options: StreamSuccessVideoOptions) => Promise<void>;
60
+ /**
61
+ * Streams a video successfully by managing the local stream, updating parameters, and handling video transport.
62
+ *
63
+ * This method initiates the video streaming process by updating the local video stream with the new stream,
64
+ * creating or connecting to the video transport, and notifying participants of the streaming status.
65
+ *
66
+ * @param {StreamSuccessVideoOptions} options - The options for streaming the video.
67
+ * @param {MediaStream} options.stream - The media stream to be used for the video.
68
+ * @param {StreamSuccessVideoParameters} options.parameters - The parameters required for streaming.
69
+ * @param {Socket} options.parameters.socket - The socket instance for real-time communication.
70
+ * @param {Participant[]} options.parameters.participants - The list of participants in the session.
71
+ * @param {MediaStream | null} options.parameters.localStream - The local media stream.
72
+ * @param {boolean} options.parameters.transportCreated - Indicates if the transport has already been created.
73
+ * @param {boolean} options.parameters.transportCreatedVideo - Indicates if the video transport has been created.
74
+ * @param {boolean} options.parameters.videoAlreadyOn - Indicates if the video is already on.
75
+ * @param {boolean} options.parameters.videoAction - Indicates if a video action is being performed.
76
+ * @param {ProducerOptions} options.parameters.videoParams - The parameters for the video producer.
77
+ * @param {MediaStream | null} options.parameters.localStreamVideo - The local video stream.
78
+ * @param {string} options.parameters.defVideoID - The default video device ID.
79
+ * @param {string} options.parameters.userDefaultVideoInputDevice - The user's default video input device.
80
+ * @param {ProducerOptions} options.parameters.params - Additional parameters for the producer.
81
+ * @param {ProducerOptions} options.parameters.videoParamse - Additional parameters for the video.
82
+ * @param {string} options.parameters.islevel - The level of the user (e.g., host, participant).
83
+ * @param {string} options.parameters.member - The member's name in the session.
84
+ * @param {boolean} options.parameters.updateMainWindow - Indicates if the main window should be updated.
85
+ * @param {boolean} options.parameters.lock_screen - Indicates if the screen is locked.
86
+ * @param {boolean} options.parameters.shared - Indicates if the screen is shared.
87
+ * @param {boolean} options.parameters.videoAlreadyOn - Indicates if the video is already on.
88
+ * @param {Function} options.parameters.showAlert - Function to show alert messages.
89
+ * @param {Function} options.parameters.updateParticipants - Function to update the participants list.
90
+ * @param {Function} options.parameters.updateTransportCreatedVideo - Function to update the transport creation state.
91
+ * @param {Function} options.parameters.updateVideoAlreadyOn - Function to update the video status.
92
+ * @param {Function} options.parameters.updateVideoAction - Function to update the video action state.
93
+ * @param {Function} options.parameters.updateLocalStream - Function to update the local stream.
94
+ * @param {Function} options.parameters.updateLocalStreamVideo - Function to update the local video stream.
95
+ * @param {Function} options.parameters.updateUserDefaultVideoInputDevice - Function to update the default video input device.
96
+ * @param {Function} options.parameters.updateCurrentFacingMode - Function to update the current facing mode.
97
+ * @param {Function} options.parameters.updateDefVideoID - Function to update the default video device ID.
98
+ * @param {Function} options.parameters.updateAllowed - Function to update the allowed state.
99
+ * @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window state.
100
+ * @param {Function} options.parameters.createSendTransport - Function to create a send transport for video.
101
+ * @param {Function} options.parameters.connectSendTransportVideo - Function to connect the send transport for video.
102
+ * @param {Function} options.parameters.resumeSendTransportAudio - Function to resume audio transport.
103
+ *
104
+ * @returns {Promise<void>} A promise that resolves when the video has been successfully streamed.
105
+ *
106
+ * @throws {Error} Throws an error if there is an issue with streaming the video.
107
+ *
108
+ * @example
109
+ * await streamSuccessVideo({
110
+ * stream: newVideoStream,
111
+ * parameters: {
112
+ * socket: socketInstance,
113
+ * localStream: null,
114
+ * // other parameters...
115
+ * },
116
+ * });
117
+ */
60
118
  export declare class StreamSuccessVideo {
61
119
  /**
62
120
  * Streams a video successfully by managing the local stream, updating parameters, and handling video transport.
@@ -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.