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.
- package/LICENSE +21 -0
- package/README.md +194 -192
- package/dist/README.md +194 -192
- package/dist/esm2022/lib/components/background-components/background-modal/background-modal.component.mjs +37 -1
- package/dist/esm2022/lib/components/breakout-components/breakout-rooms-modal.component.mjs +51 -1
- package/dist/esm2022/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.mjs +49 -1
- package/dist/esm2022/lib/components/co-host-components/co-host-modal/co-host-modal.component.mjs +1 -2
- package/dist/esm2022/lib/components/display-components/alert-component/alert.component.component.mjs +25 -19
- package/dist/esm2022/lib/components/display-components/audio-card/audio-card.component.mjs +60 -1
- package/dist/esm2022/lib/components/display-components/audio-grid/audio-grid.component.mjs +21 -1
- package/dist/esm2022/lib/components/display-components/card-video-display/card-video-display.component.mjs +36 -1
- package/dist/esm2022/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.mjs +39 -1
- package/dist/esm2022/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.mjs +25 -41
- package/dist/esm2022/lib/components/display-components/control-widgets/menu-participants-widget.component.mjs +22 -1
- package/dist/esm2022/lib/components/display-components/control-widgets/menu-record-widget.component.mjs +23 -1
- package/dist/esm2022/lib/components/display-components/control-widgets/menu-widget.component.mjs +24 -1
- package/dist/esm2022/lib/components/display-components/control-widgets/message-widget.component.mjs +24 -1
- package/dist/esm2022/lib/components/display-components/control-widgets/record-timer-widget.component.mjs +16 -1
- package/dist/esm2022/lib/components/display-components/control-widgets/screenshare-widget.component.mjs +28 -1
- package/dist/esm2022/lib/components/display-components/flexible-grid/flexible-grid.component.mjs +28 -19
- package/dist/esm2022/lib/components/display-components/flexible-video/flexible-video.component.mjs +31 -46
- package/dist/esm2022/lib/components/display-components/loading-modal/loading-modal.component.mjs +20 -18
- package/dist/esm2022/lib/components/display-components/main-aspect-component/main-aspect-component.component.mjs +33 -25
- package/dist/esm2022/lib/components/display-components/main-container-component/main-container-component.component.mjs +29 -17
- package/dist/esm2022/lib/components/display-components/main-grid-component/main-grid-component.component.mjs +29 -15
- package/dist/esm2022/lib/components/display-components/main-screen-component/main-screen-component.component.mjs +44 -23
- package/dist/esm2022/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.mjs +26 -31
- package/dist/esm2022/lib/components/display-components/mini-audio/mini-audio.component.mjs +52 -59
- package/dist/esm2022/lib/components/display-components/mini-card/mini-card.component.mjs +20 -24
- package/dist/esm2022/lib/components/display-components/mini-card-audio/mini-card-audio.component.mjs +40 -40
- package/dist/esm2022/lib/components/display-components/other-grid-component/other-grid-component.component.mjs +29 -14
- package/dist/esm2022/lib/components/display-components/pagination/pagination.component.mjs +30 -24
- package/dist/esm2022/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.mjs +19 -25
- package/dist/esm2022/lib/components/display-components/video-card/video-card.component.mjs +63 -1
- package/dist/esm2022/lib/components/display-settings-components/display-settings-modal.component.mjs +29 -18
- package/dist/esm2022/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.mjs +48 -39
- package/dist/esm2022/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.mjs +36 -23
- package/dist/esm2022/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.mjs +36 -25
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-broadcast.component.mjs +54 -3
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-chat.component.mjs +54 -3
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-conference.component.mjs +52 -3
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-generic.component.mjs +52 -3
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-webinar.component.mjs +50 -3
- package/dist/esm2022/lib/components/menu-components/custom-buttons/custom-buttons.component.mjs +50 -52
- package/dist/esm2022/lib/components/menu-components/meeting-id-component/meeting-id-component.component.mjs +7 -2
- package/dist/esm2022/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.mjs +6 -1
- package/dist/esm2022/lib/components/menu-components/menu-modal/menu-modal.component.mjs +22 -29
- package/dist/esm2022/lib/components/menu-components/share-buttons-component/share-buttons-component.component.mjs +16 -14
- package/dist/esm2022/lib/components/message-components/message-panel/message-panel.component.mjs +25 -1
- package/dist/esm2022/lib/components/message-components/messages-modal/messages-modal.component.mjs +35 -1
- package/dist/esm2022/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.mjs +17 -34
- package/dist/esm2022/lib/components/misc-components/pre-join-page/pre-join-page.component.mjs +9 -1
- package/dist/esm2022/lib/components/misc-components/share-event-modal/share-event-modal.component.mjs +15 -1
- package/dist/esm2022/lib/components/misc-components/welcome-page/welcome-page.component.mjs +16 -1
- package/dist/esm2022/lib/components/participants-components/participant-list/participant-list.component.mjs +20 -1
- package/dist/esm2022/lib/components/participants-components/participant-list-item/participant-list-item.component.mjs +20 -1
- package/dist/esm2022/lib/components/participants-components/participant-list-others/participant-list-others.component.mjs +18 -1
- package/dist/esm2022/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.mjs +18 -1
- package/dist/esm2022/lib/components/participants-components/participants-modal/participants-modal.component.mjs +25 -1
- package/dist/esm2022/lib/components/polls-components/poll-modal/poll-modal.component.mjs +28 -1
- package/dist/esm2022/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.mjs +16 -1
- package/dist/esm2022/lib/components/recording-components/recording-modal/recording-modal.component.mjs +13 -1
- package/dist/esm2022/lib/components/recording-components/standard-panel-component/standard-panel-component.component.mjs +6 -1
- package/dist/esm2022/lib/components/requests-components/render-request-component/render-request-component.component.mjs +23 -1
- package/dist/esm2022/lib/components/requests-components/requests-modal/requests-modal.component.mjs +18 -1
- package/dist/esm2022/lib/components/screenboard-components/screenboard/screenboard.component.mjs +11 -1
- package/dist/esm2022/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.mjs +12 -1
- package/dist/esm2022/lib/components/waiting-components/waiting-room-modal.component.mjs +60 -1
- package/dist/esm2022/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.mjs +22 -1
- package/dist/esm2022/lib/components/whiteboard-components/whiteboard/whiteboard.component.mjs +50 -1
- package/dist/esm2022/lib/consumers/add-videos-grid.service.mjs +50 -1
- package/dist/esm2022/lib/consumers/auto-adjust.service.mjs +27 -1
- package/dist/esm2022/lib/consumers/calculate-rows-and-columns.service.mjs +19 -1
- package/dist/esm2022/lib/consumers/change-vids.service.mjs +132 -67
- package/dist/esm2022/lib/consumers/check-grid.service.mjs +33 -19
- package/dist/esm2022/lib/consumers/check-permission.service.mjs +26 -1
- package/dist/esm2022/lib/consumers/check-screen-share.service.mjs +36 -1
- package/dist/esm2022/lib/consumers/close-and-resize.service.mjs +103 -1
- package/dist/esm2022/lib/consumers/compare-active-names.service.mjs +32 -1
- package/dist/esm2022/lib/consumers/compare-screen-states.service.mjs +36 -1
- package/dist/esm2022/lib/consumers/connect-ips.service.mjs +43 -1
- package/dist/esm2022/lib/consumers/connect-recv-transport.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/connect-send-transport-audio.service.mjs +39 -1
- package/dist/esm2022/lib/consumers/connect-send-transport-screen.service.mjs +41 -1
- package/dist/esm2022/lib/consumers/connect-send-transport-video.service.mjs +45 -1
- package/dist/esm2022/lib/consumers/connect-send-transport.service.mjs +55 -1
- package/dist/esm2022/lib/consumers/consumer-resume.service.mjs +37 -1
- package/dist/esm2022/lib/consumers/control-media.service.mjs +46 -1
- package/dist/esm2022/lib/consumers/create-send-transport.service.mjs +47 -1
- package/dist/esm2022/lib/consumers/disconnect-send-transport-audio.service.mjs +51 -1
- package/dist/esm2022/lib/consumers/disconnect-send-transport-screen.service.mjs +40 -1
- package/dist/esm2022/lib/consumers/disconnect-send-transport-video.service.mjs +46 -1
- package/dist/esm2022/lib/consumers/disp-streams.service.mjs +93 -1
- package/dist/esm2022/lib/consumers/generate-page-content.service.mjs +48 -1
- package/dist/esm2022/lib/consumers/get-estimate.service.mjs +51 -1
- package/dist/esm2022/lib/consumers/get-piped-producers-alt.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/get-producers-piped.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/get-videos.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/mix-streams.service.mjs +23 -1
- package/dist/esm2022/lib/consumers/on-screen-changes.service.mjs +41 -1
- package/dist/esm2022/lib/consumers/prepopulate-user-media.service.mjs +100 -1
- package/dist/esm2022/lib/consumers/process-consumer-transports-audio.service.mjs +30 -1
- package/dist/esm2022/lib/consumers/process-consumer-transports.service.mjs +38 -1
- package/dist/esm2022/lib/consumers/re-port.service.mjs +49 -1
- package/dist/esm2022/lib/consumers/re-update-inter.service.mjs +83 -1
- package/dist/esm2022/lib/consumers/readjust.service.mjs +51 -1
- package/dist/esm2022/lib/consumers/receive-all-piped-transports.service.mjs +32 -1
- package/dist/esm2022/lib/consumers/receive-room-messages.service.mjs +28 -1
- package/dist/esm2022/lib/consumers/reorder-streams.service.mjs +59 -1
- package/dist/esm2022/lib/consumers/request-screen-share.service.mjs +35 -1
- package/dist/esm2022/lib/consumers/resume-pause-audio-streams.service.mjs +52 -1
- package/dist/esm2022/lib/consumers/resume-pause-streams.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/resume-send-transport-audio.service.mjs +37 -1
- package/dist/esm2022/lib/consumers/signal-new-consumer-transport.service.mjs +38 -38
- package/dist/esm2022/lib/consumers/socket-receive-methods/join-consume-room.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/socket-receive-methods/new-pipe-producer.service.mjs +40 -1
- package/dist/esm2022/lib/consumers/socket-receive-methods/producer-closed.service.mjs +28 -1
- package/dist/esm2022/lib/consumers/start-share-screen.service.mjs +41 -1
- package/dist/esm2022/lib/consumers/stop-share-screen.service.mjs +56 -1
- package/dist/esm2022/lib/consumers/stream-success-audio-switch.service.mjs +54 -1
- package/dist/esm2022/lib/consumers/stream-success-audio.service.mjs +62 -1
- package/dist/esm2022/lib/consumers/stream-success-screen.service.mjs +51 -1
- package/dist/esm2022/lib/consumers/stream-success-video.service.mjs +59 -1
- package/dist/esm2022/lib/consumers/switch-user-audio.service.mjs +34 -1
- package/dist/esm2022/lib/consumers/switch-user-video-alt.service.mjs +33 -1
- package/dist/esm2022/lib/consumers/switch-user-video.service.mjs +48 -1
- package/dist/esm2022/lib/consumers/trigger.service.mjs +39 -1
- package/dist/esm2022/lib/consumers/update-mini-cards-grid.service.mjs +55 -1
- package/dist/esm2022/lib/consumers/update-participant-audio-decibels.service.mjs +46 -1
- package/dist/esm2022/lib/methods/background-methods/launch-background.service.mjs +26 -1
- package/dist/esm2022/lib/methods/breakout-room-methods/breakout-room-updated.service.mjs +72 -1
- package/dist/esm2022/lib/methods/breakout-room-methods/launch-breakout-rooms.service.mjs +25 -1
- package/dist/esm2022/lib/methods/co-host-methods/launch-co-host.service.mjs +25 -1
- package/dist/esm2022/lib/methods/co-host-methods/modify-co-host-settings.service.mjs +45 -1
- package/dist/esm2022/lib/methods/display-settings-methods/launch-display-settings.service.mjs +23 -1
- package/dist/esm2022/lib/methods/display-settings-methods/modify-display-settings.service.mjs +76 -1
- package/dist/esm2022/lib/methods/exit-methods/confirm-exit.service.mjs +25 -1
- package/dist/esm2022/lib/methods/exit-methods/launch-confirm-exit.service.mjs +21 -1
- package/dist/esm2022/lib/methods/media-settings-methods/launch-media-settings.service.mjs +36 -1
- package/dist/esm2022/lib/methods/menu-methods/launch-menu-modal.service.mjs +23 -1
- package/dist/esm2022/lib/methods/message-methods/launch-messages.service.mjs +23 -1
- package/dist/esm2022/lib/methods/message-methods/send-message.service.mjs +50 -1
- package/dist/esm2022/lib/methods/participants-methods/launch-participants.service.mjs +25 -1
- package/dist/esm2022/lib/methods/participants-methods/message-participants.service.mjs +47 -1
- package/dist/esm2022/lib/methods/participants-methods/mute-participants.service.mjs +40 -1
- package/dist/esm2022/lib/methods/participants-methods/remove-participants.service.mjs +46 -1
- package/dist/esm2022/lib/methods/polls-methods/handle-create-poll.service.mjs +39 -1
- package/dist/esm2022/lib/methods/polls-methods/handle-end-poll.service.mjs +33 -1
- package/dist/esm2022/lib/methods/polls-methods/handle-vote-poll.service.mjs +35 -1
- package/dist/esm2022/lib/methods/polls-methods/launch-poll.service.mjs +21 -1
- package/dist/esm2022/lib/methods/polls-methods/poll-updated.service.mjs +32 -1
- package/dist/esm2022/lib/methods/recording-methods/check-pause-state.service.mjs +25 -1
- package/dist/esm2022/lib/methods/recording-methods/check-resume-state.service.mjs +23 -1
- package/dist/esm2022/lib/methods/recording-methods/confirm-recording.service.mjs +64 -1
- package/dist/esm2022/lib/methods/recording-methods/launch-recording.service.mjs +44 -1
- package/dist/esm2022/lib/methods/recording-methods/record-pause-timer.service.mjs +28 -1
- package/dist/esm2022/lib/methods/recording-methods/record-resume-timer.service.mjs +45 -1
- package/dist/esm2022/lib/methods/recording-methods/record-start-timer.service.mjs +46 -1
- package/dist/esm2022/lib/methods/recording-methods/record-update-timer.service.mjs +33 -1
- package/dist/esm2022/lib/methods/recording-methods/start-recording.service.mjs +51 -1
- package/dist/esm2022/lib/methods/recording-methods/stop-recording.service.mjs +39 -1
- package/dist/esm2022/lib/methods/recording-methods/update-recording.service.mjs +49 -1
- package/dist/esm2022/lib/methods/requests-methods/launch-requests.service.mjs +26 -1
- package/dist/esm2022/lib/methods/requests-methods/respond-to-requests.service.mjs +40 -1
- package/dist/esm2022/lib/methods/settings-methods/launch-settings.service.mjs +26 -1
- package/dist/esm2022/lib/methods/settings-methods/modify-settings.service.mjs +43 -1
- package/dist/esm2022/lib/methods/stream-methods/click-audio.service.mjs +98 -1
- package/dist/esm2022/lib/methods/stream-methods/click-chat.service.mjs +32 -1
- package/dist/esm2022/lib/methods/stream-methods/click-screen-share.service.mjs +69 -1
- package/dist/esm2022/lib/methods/stream-methods/click-video.service.mjs +89 -1
- package/dist/esm2022/lib/methods/stream-methods/switch-audio.service.mjs +48 -1
- package/dist/esm2022/lib/methods/stream-methods/switch-video-alt.service.mjs +51 -1
- package/dist/esm2022/lib/methods/stream-methods/switch-video.service.mjs +57 -1
- package/dist/esm2022/lib/methods/utils/format-number.service.mjs +27 -15
- package/dist/esm2022/lib/methods/utils/generate-random-messages.service.mjs +34 -1
- package/dist/esm2022/lib/methods/utils/generate-random-participants.service.mjs +28 -1
- package/dist/esm2022/lib/methods/utils/generate-random-polls.service.mjs +27 -1
- package/dist/esm2022/lib/methods/utils/generate-random-request-list.service.mjs +37 -1
- package/dist/esm2022/lib/methods/utils/generate-random-waiting-room-list.service.mjs +22 -1
- package/dist/esm2022/lib/methods/utils/get-modal-position.util.mjs +14 -4
- package/dist/esm2022/lib/methods/utils/get-overlay-position.util.mjs +14 -4
- package/dist/esm2022/lib/methods/utils/initial-values.util.mjs +13 -3
- package/dist/esm2022/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.mjs +38 -1
- package/dist/esm2022/lib/methods/utils/mini-audio-player/mini-audio-player.component.mjs +56 -1
- package/dist/esm2022/lib/methods/utils/producer/a-params.service.mjs +38 -1
- package/dist/esm2022/lib/methods/utils/producer/h-params.service.mjs +51 -1
- package/dist/esm2022/lib/methods/utils/producer/screen-params.service.mjs +38 -1
- package/dist/esm2022/lib/methods/utils/producer/v-params.service.mjs +51 -1
- package/dist/esm2022/lib/methods/utils/producer/video-capture-constraints.service.mjs +47 -1
- package/dist/esm2022/lib/methods/utils/sleep.util.mjs +10 -4
- package/dist/esm2022/lib/methods/utils/sound-player.service.mjs +22 -1
- package/dist/esm2022/lib/methods/utils/validate-alphanumeric.service.mjs +17 -1
- package/dist/esm2022/lib/methods/waiting-methods/launch-waiting.service.mjs +19 -1
- package/dist/esm2022/lib/methods/waiting-methods/respond-to-waiting.service.mjs +30 -1
- package/dist/esm2022/lib/methods/whiteboard-methods/capture-canvas-stream.service.mjs +30 -1
- package/dist/esm2022/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.mjs +21 -1
- package/dist/esm2022/lib/producer-client/producer-client-emits/create-device-client.service.mjs +24 -1
- package/dist/esm2022/lib/producer-client/producer-client-emits/join-room-client.service.mjs +32 -1
- package/dist/esm2022/lib/producer-client/producer-client-emits/update-room-parameters-client.service.mjs +45 -1
- package/dist/esm2022/lib/producers/producer-emits/join-con-room.service.mjs +39 -1
- package/dist/esm2022/lib/producers/producer-emits/join-room.service.mjs +39 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/all-members-rest.service.mjs +74 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/all-members.service.mjs +72 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/all-waiting-room-members.service.mjs +28 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/ban-participant.service.mjs +37 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/control-media-host.service.mjs +38 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/disconnect-user-self.service.mjs +25 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/disconnect.service.mjs +27 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/get-domains.service.mjs +25 -10
- package/dist/esm2022/lib/producers/socket-receive-methods/host-request-response.service.mjs +32 -49
- package/dist/esm2022/lib/producers/socket-receive-methods/meeting-ended.service.mjs +30 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/meeting-still-there.service.mjs +24 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/meeting-time-remaining.service.mjs +28 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/participant-requested.service.mjs +32 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/person-joined.service.mjs +26 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-closed.service.mjs +62 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-paused.service.mjs +63 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-resumed.service.mjs +46 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/re-initiate-recording.service.mjs +30 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/receive-message.service.mjs +39 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/recording-notice.service.mjs +39 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/room-record-params.service.mjs +63 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/screen-producer-id.service.mjs +42 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/start-records.service.mjs +26 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/stopped-recording.service.mjs +26 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/time-left-recording.service.mjs +22 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/update-consuming-domains.service.mjs +43 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/update-media-settings.service.mjs +31 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/updated-co-host.service.mjs +41 -1
- package/dist/esm2022/lib/producers/socket-receive-methods/user-waiting.service.mjs +15 -41
- package/dist/esm2022/lib/sockets/socket-manager.service.mjs +41 -1
- package/dist/fesm2022/mediasfu-angular.mjs +8192 -910
- package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
- package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +36 -0
- package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +50 -0
- package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +48 -0
- package/dist/lib/components/co-host-components/co-host-modal/co-host-modal.component.d.ts +62 -0
- package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +24 -18
- package/dist/lib/components/display-components/audio-card/audio-card.component.d.ts +59 -0
- package/dist/lib/components/display-components/audio-grid/audio-grid.component.d.ts +20 -0
- package/dist/lib/components/display-components/card-video-display/card-video-display.component.d.ts +35 -0
- package/dist/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.d.ts +38 -0
- package/dist/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.d.ts +24 -40
- package/dist/lib/components/display-components/control-widgets/menu-participants-widget.component.d.ts +21 -0
- package/dist/lib/components/display-components/control-widgets/menu-record-widget.component.d.ts +22 -0
- package/dist/lib/components/display-components/control-widgets/menu-widget.component.d.ts +23 -0
- package/dist/lib/components/display-components/control-widgets/message-widget.component.d.ts +23 -0
- package/dist/lib/components/display-components/control-widgets/record-timer-widget.component.d.ts +15 -0
- package/dist/lib/components/display-components/control-widgets/screenshare-widget.component.d.ts +27 -0
- package/dist/lib/components/display-components/flexible-grid/flexible-grid.component.d.ts +27 -18
- package/dist/lib/components/display-components/flexible-video/flexible-video.component.d.ts +30 -45
- package/dist/lib/components/display-components/loading-modal/loading-modal.component.d.ts +19 -17
- package/dist/lib/components/display-components/main-aspect-component/main-aspect-component.component.d.ts +32 -24
- package/dist/lib/components/display-components/main-container-component/main-container-component.component.d.ts +28 -16
- package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +28 -14
- package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +43 -22
- package/dist/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.d.ts +25 -30
- package/dist/lib/components/display-components/mini-audio/mini-audio.component.d.ts +55 -62
- package/dist/lib/components/display-components/mini-card/mini-card.component.d.ts +19 -23
- package/dist/lib/components/display-components/mini-card-audio/mini-card-audio.component.d.ts +39 -39
- package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +28 -13
- package/dist/lib/components/display-components/pagination/pagination.component.d.ts +29 -23
- package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +18 -24
- package/dist/lib/components/display-components/video-card/video-card.component.d.ts +62 -0
- package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +28 -17
- package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +47 -38
- package/dist/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.d.ts +35 -22
- package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +35 -24
- package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +49 -0
- package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +49 -0
- package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +47 -11
- package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +47 -11
- package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +45 -11
- package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +49 -51
- package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +6 -1
- package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +5 -0
- package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +21 -28
- package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +15 -13
- package/dist/lib/components/message-components/message-panel/message-panel.component.d.ts +24 -0
- package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +34 -0
- package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +16 -33
- package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +8 -0
- package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +14 -0
- package/dist/lib/components/misc-components/welcome-page/welcome-page.component.d.ts +15 -0
- package/dist/lib/components/participants-components/participant-list/participant-list.component.d.ts +19 -0
- package/dist/lib/components/participants-components/participant-list-item/participant-list-item.component.d.ts +19 -0
- package/dist/lib/components/participants-components/participant-list-others/participant-list-others.component.d.ts +17 -0
- package/dist/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.d.ts +17 -0
- package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +24 -0
- package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +27 -0
- package/dist/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.d.ts +15 -0
- package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +12 -0
- package/dist/lib/components/recording-components/standard-panel-component/standard-panel-component.component.d.ts +5 -0
- package/dist/lib/components/requests-components/render-request-component/render-request-component.component.d.ts +22 -0
- package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +17 -0
- package/dist/lib/components/screenboard-components/screenboard/screenboard.component.d.ts +10 -0
- package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +11 -0
- package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +59 -0
- package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +21 -0
- package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +49 -0
- package/dist/lib/consumers/add-videos-grid.service.d.ts +49 -0
- package/dist/lib/consumers/auto-adjust.service.d.ts +26 -0
- package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +18 -0
- package/dist/lib/consumers/change-vids.service.d.ts +131 -66
- package/dist/lib/consumers/check-grid.service.d.ts +32 -18
- package/dist/lib/consumers/check-permission.service.d.ts +25 -0
- package/dist/lib/consumers/check-screen-share.service.d.ts +35 -0
- package/dist/lib/consumers/close-and-resize.service.d.ts +102 -0
- package/dist/lib/consumers/compare-active-names.service.d.ts +31 -0
- package/dist/lib/consumers/compare-screen-states.service.d.ts +35 -0
- package/dist/lib/consumers/connect-ips.service.d.ts +42 -0
- package/dist/lib/consumers/connect-recv-transport.service.d.ts +33 -0
- package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +38 -0
- package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +40 -0
- package/dist/lib/consumers/connect-send-transport-video.service.d.ts +44 -0
- package/dist/lib/consumers/connect-send-transport.service.d.ts +54 -0
- package/dist/lib/consumers/consumer-resume.service.d.ts +36 -0
- package/dist/lib/consumers/control-media.service.d.ts +45 -0
- package/dist/lib/consumers/create-send-transport.service.d.ts +46 -0
- package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +50 -0
- package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +39 -0
- package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +45 -0
- package/dist/lib/consumers/disp-streams.service.d.ts +92 -0
- package/dist/lib/consumers/generate-page-content.service.d.ts +47 -0
- package/dist/lib/consumers/get-estimate.service.d.ts +50 -0
- package/dist/lib/consumers/get-piped-producers-alt.service.d.ts +33 -0
- package/dist/lib/consumers/get-producers-piped.service.d.ts +33 -0
- package/dist/lib/consumers/get-videos.service.d.ts +33 -0
- package/dist/lib/consumers/mix-streams.service.d.ts +22 -0
- package/dist/lib/consumers/on-screen-changes.service.d.ts +40 -0
- package/dist/lib/consumers/prepopulate-user-media.service.d.ts +99 -0
- package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +29 -0
- package/dist/lib/consumers/process-consumer-transports.service.d.ts +37 -0
- package/dist/lib/consumers/re-port.service.d.ts +48 -0
- package/dist/lib/consumers/re-update-inter.service.d.ts +82 -0
- package/dist/lib/consumers/readjust.service.d.ts +50 -0
- package/dist/lib/consumers/receive-all-piped-transports.service.d.ts +31 -0
- package/dist/lib/consumers/receive-room-messages.service.d.ts +27 -0
- package/dist/lib/consumers/reorder-streams.service.d.ts +58 -0
- package/dist/lib/consumers/request-screen-share.service.d.ts +34 -0
- package/dist/lib/consumers/resume-pause-audio-streams.service.d.ts +51 -0
- package/dist/lib/consumers/resume-pause-streams.service.d.ts +33 -0
- package/dist/lib/consumers/resume-send-transport-audio.service.d.ts +36 -0
- package/dist/lib/consumers/signal-new-consumer-transport.service.d.ts +37 -37
- package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +33 -0
- package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +39 -0
- package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +27 -0
- package/dist/lib/consumers/start-share-screen.service.d.ts +40 -0
- package/dist/lib/consumers/stop-share-screen.service.d.ts +55 -0
- package/dist/lib/consumers/stream-success-audio-switch.service.d.ts +53 -0
- package/dist/lib/consumers/stream-success-audio.service.d.ts +61 -0
- package/dist/lib/consumers/stream-success-screen.service.d.ts +50 -0
- package/dist/lib/consumers/stream-success-video.service.d.ts +58 -0
- package/dist/lib/consumers/switch-user-audio.service.d.ts +33 -0
- package/dist/lib/consumers/switch-user-video-alt.service.d.ts +32 -0
- package/dist/lib/consumers/switch-user-video.service.d.ts +47 -0
- package/dist/lib/consumers/trigger.service.d.ts +38 -0
- package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +54 -0
- package/dist/lib/consumers/update-participant-audio-decibels.service.d.ts +45 -0
- package/dist/lib/methods/background-methods/launch-background.service.d.ts +25 -0
- package/dist/lib/methods/breakout-room-methods/breakout-room-updated.service.d.ts +71 -0
- package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +24 -0
- package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +24 -0
- package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +44 -0
- package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +22 -0
- package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +75 -0
- package/dist/lib/methods/exit-methods/confirm-exit.service.d.ts +24 -0
- package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +20 -0
- package/dist/lib/methods/media-settings-methods/launch-media-settings.service.d.ts +35 -0
- package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +22 -0
- package/dist/lib/methods/message-methods/launch-messages.service.d.ts +22 -0
- package/dist/lib/methods/message-methods/send-message.service.d.ts +49 -0
- package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +24 -0
- package/dist/lib/methods/participants-methods/message-participants.service.d.ts +46 -0
- package/dist/lib/methods/participants-methods/mute-participants.service.d.ts +39 -0
- package/dist/lib/methods/participants-methods/remove-participants.service.d.ts +45 -0
- package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +38 -0
- package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +32 -0
- package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +34 -0
- package/dist/lib/methods/polls-methods/launch-poll.service.d.ts +20 -0
- package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +31 -0
- package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +24 -0
- package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +22 -0
- package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +63 -0
- package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +43 -0
- package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +27 -0
- package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +44 -0
- package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +45 -0
- package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +32 -0
- package/dist/lib/methods/recording-methods/start-recording.service.d.ts +50 -0
- package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +38 -0
- package/dist/lib/methods/recording-methods/update-recording.service.d.ts +48 -0
- package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +25 -0
- package/dist/lib/methods/requests-methods/respond-to-requests.service.d.ts +39 -0
- package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +25 -0
- package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +42 -0
- package/dist/lib/methods/stream-methods/click-audio.service.d.ts +97 -0
- package/dist/lib/methods/stream-methods/click-chat.service.d.ts +31 -0
- package/dist/lib/methods/stream-methods/click-screen-share.service.d.ts +68 -0
- package/dist/lib/methods/stream-methods/click-video.service.d.ts +88 -0
- package/dist/lib/methods/stream-methods/switch-audio.service.d.ts +47 -0
- package/dist/lib/methods/stream-methods/switch-video-alt.service.d.ts +50 -0
- package/dist/lib/methods/stream-methods/switch-video.service.d.ts +56 -0
- package/dist/lib/methods/utils/format-number.service.d.ts +26 -14
- package/dist/lib/methods/utils/generate-random-messages.service.d.ts +33 -0
- package/dist/lib/methods/utils/generate-random-participants.service.d.ts +27 -0
- package/dist/lib/methods/utils/generate-random-polls.service.d.ts +26 -0
- package/dist/lib/methods/utils/generate-random-request-list.service.d.ts +36 -0
- package/dist/lib/methods/utils/generate-random-waiting-room-list.service.d.ts +21 -0
- package/dist/lib/methods/utils/get-modal-position.util.d.ts +13 -3
- package/dist/lib/methods/utils/get-overlay-position.util.d.ts +13 -3
- package/dist/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.d.ts +37 -0
- package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +55 -0
- package/dist/lib/methods/utils/producer/a-params.service.d.ts +37 -0
- package/dist/lib/methods/utils/producer/h-params.service.d.ts +50 -0
- package/dist/lib/methods/utils/producer/screen-params.service.d.ts +37 -0
- package/dist/lib/methods/utils/producer/v-params.service.d.ts +50 -0
- package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +46 -0
- package/dist/lib/methods/utils/sleep.util.d.ts +9 -3
- package/dist/lib/methods/utils/sound-player.service.d.ts +21 -0
- package/dist/lib/methods/utils/validate-alphanumeric.service.d.ts +16 -0
- package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +18 -0
- package/dist/lib/methods/waiting-methods/respond-to-waiting.service.d.ts +29 -0
- package/dist/lib/methods/whiteboard-methods/capture-canvas-stream.service.d.ts +29 -0
- package/dist/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.d.ts +20 -0
- package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +23 -0
- package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +31 -0
- package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +44 -0
- package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +38 -0
- package/dist/lib/producers/producer-emits/join-room.service.d.ts +38 -0
- package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +73 -0
- package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +71 -0
- package/dist/lib/producers/socket-receive-methods/all-waiting-room-members.service.d.ts +27 -0
- package/dist/lib/producers/socket-receive-methods/ban-participant.service.d.ts +36 -0
- package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +37 -0
- package/dist/lib/producers/socket-receive-methods/disconnect-user-self.service.d.ts +24 -0
- package/dist/lib/producers/socket-receive-methods/disconnect.service.d.ts +26 -0
- package/dist/lib/producers/socket-receive-methods/get-domains.service.d.ts +24 -9
- package/dist/lib/producers/socket-receive-methods/host-request-response.service.d.ts +31 -48
- package/dist/lib/producers/socket-receive-methods/meeting-ended.service.d.ts +29 -0
- package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +23 -0
- package/dist/lib/producers/socket-receive-methods/meeting-time-remaining.service.d.ts +27 -0
- package/dist/lib/producers/socket-receive-methods/participant-requested.service.d.ts +31 -0
- package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +25 -0
- package/dist/lib/producers/socket-receive-methods/producer-media-closed.service.d.ts +61 -0
- package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +62 -0
- package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +45 -0
- package/dist/lib/producers/socket-receive-methods/re-initiate-recording.service.d.ts +29 -0
- package/dist/lib/producers/socket-receive-methods/receive-message.service.d.ts +38 -0
- package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +38 -0
- package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +62 -0
- package/dist/lib/producers/socket-receive-methods/screen-producer-id.service.d.ts +41 -0
- package/dist/lib/producers/socket-receive-methods/start-records.service.d.ts +25 -0
- package/dist/lib/producers/socket-receive-methods/stopped-recording.service.d.ts +25 -0
- package/dist/lib/producers/socket-receive-methods/time-left-recording.service.d.ts +21 -0
- package/dist/lib/producers/socket-receive-methods/update-consuming-domains.service.d.ts +42 -0
- package/dist/lib/producers/socket-receive-methods/update-media-settings.service.d.ts +30 -0
- package/dist/lib/producers/socket-receive-methods/updated-co-host.service.d.ts +40 -0
- package/dist/lib/producers/socket-receive-methods/user-waiting.service.d.ts +14 -40
- package/dist/lib/sockets/socket-manager.service.d.ts +40 -0
- package/package.json +11 -2
|
@@ -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.
|
|
@@ -4,6 +4,26 @@ export interface LaunchConfirmExitOptions {
|
|
|
4
4
|
isConfirmExitModalVisible: boolean;
|
|
5
5
|
}
|
|
6
6
|
export type LaunchConfirmExitType = (options: LaunchConfirmExitOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Toggles the visibility of the confirmation exit modal.
|
|
9
|
+
*
|
|
10
|
+
* This method updates the state of the confirmation exit modal by inverting its current visibility status.
|
|
11
|
+
*
|
|
12
|
+
* @param {LaunchConfirmExitOptions} options - The options for toggling the confirmation exit modal visibility.
|
|
13
|
+
* @param {Function} options.updateIsConfirmExitModalVisible - Function to update the visibility state of the confirmation exit modal.
|
|
14
|
+
* @param {boolean} options.isConfirmExitModalVisible - Current visibility state of the confirmation exit modal.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const launchConfirmExitService = new LaunchConfirmExit();
|
|
19
|
+
* launchConfirmExitService.launchConfirmExit({
|
|
20
|
+
* updateIsConfirmExitModalVisible: (isVisible) => {
|
|
21
|
+
* console.log('Confirm exit modal is now:', isVisible ? 'Visible' : 'Hidden');
|
|
22
|
+
* },
|
|
23
|
+
* isConfirmExitModalVisible: false, // Initially not visible
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
7
27
|
export declare class LaunchConfirmExit {
|
|
8
28
|
/**
|
|
9
29
|
* Toggles the visibility of the confirmation exit modal.
|
|
@@ -8,6 +8,41 @@ export interface LaunchMediaSettingsOptions {
|
|
|
8
8
|
updateVideoInputs: (inputs: MediaDeviceInfo[]) => void;
|
|
9
9
|
}
|
|
10
10
|
export type LaunchMediaSettingsType = (options: LaunchMediaSettingsOptions) => Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Launches the media settings modal and updates the available audio and video input devices.
|
|
13
|
+
*
|
|
14
|
+
* This method checks the current visibility of the media settings modal and, if it is not visible,
|
|
15
|
+
* retrieves the list of available audio and video input devices. It then updates the state with
|
|
16
|
+
* these devices and opens the modal. If the modal is already visible, it closes the modal.
|
|
17
|
+
*
|
|
18
|
+
* @param {LaunchMediaSettingsOptions} options - The options for launching media settings.
|
|
19
|
+
* @param {Function} options.updateIsMediaSettingsModalVisible - Function to update the visibility state of the media settings modal.
|
|
20
|
+
* @param {boolean} options.isMediaSettingsModalVisible - Current visibility state of the media settings modal.
|
|
21
|
+
* @param {MediaDeviceInfo[]} options.audioInputs - Array to store available audio input devices.
|
|
22
|
+
* @param {MediaDeviceInfo[]} options.videoInputs - Array to store available video input devices.
|
|
23
|
+
* @param {Function} options.updateAudioInputs - Function to update the available audio input devices.
|
|
24
|
+
* @param {Function} options.updateVideoInputs - Function to update the available video input devices.
|
|
25
|
+
* @returns {Promise<void>} A promise that resolves when the media settings have been updated.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const launchMediaSettingsService = new LaunchMediaSettings();
|
|
30
|
+
* launchMediaSettingsService.launchMediaSettings({
|
|
31
|
+
* updateIsMediaSettingsModalVisible: (isVisible) => {
|
|
32
|
+
* console.log('Media settings modal is now:', isVisible ? 'Visible' : 'Hidden');
|
|
33
|
+
* },
|
|
34
|
+
* isMediaSettingsModalVisible: false, // Initially not visible
|
|
35
|
+
* audioInputs: [],
|
|
36
|
+
* videoInputs: [],
|
|
37
|
+
* updateAudioInputs: (inputs) => {
|
|
38
|
+
* console.log('Available audio inputs:', inputs);
|
|
39
|
+
* },
|
|
40
|
+
* updateVideoInputs: (inputs) => {
|
|
41
|
+
* console.log('Available video inputs:', inputs);
|
|
42
|
+
* },
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
11
46
|
export declare class LaunchMediaSettings {
|
|
12
47
|
/**
|
|
13
48
|
* Launches the media settings modal and updates the available audio and video input devices.
|
|
@@ -4,6 +4,28 @@ export interface LaunchMenuModalOptions {
|
|
|
4
4
|
isMenuModalVisible: boolean;
|
|
5
5
|
}
|
|
6
6
|
export type LaunchMenuModalType = (options: LaunchMenuModalOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Toggles the visibility of the menu modal.
|
|
9
|
+
*
|
|
10
|
+
* This method updates the visibility state of the menu modal by calling the provided
|
|
11
|
+
* function with the negated current visibility state. If the modal is currently visible,
|
|
12
|
+
* it will be hidden, and vice versa.
|
|
13
|
+
*
|
|
14
|
+
* @param {LaunchMenuModalOptions} options - The options for launching the menu modal.
|
|
15
|
+
* @param {Function} options.updateIsMenuModalVisible - Function to update the visibility state of the menu modal.
|
|
16
|
+
* @param {boolean} options.isMenuModalVisible - Current visibility state of the menu modal.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const launchMenuModalService = new LaunchMenuModal();
|
|
21
|
+
* launchMenuModalService.launchMenuModal({
|
|
22
|
+
* updateIsMenuModalVisible: (isVisible) => {
|
|
23
|
+
* console.log('Menu modal is now:', isVisible ? 'Visible' : 'Hidden');
|
|
24
|
+
* },
|
|
25
|
+
* isMenuModalVisible: false, // Initially not visible
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
7
29
|
export declare class LaunchMenuModal {
|
|
8
30
|
/**
|
|
9
31
|
* Toggles the visibility of the menu modal.
|
|
@@ -4,6 +4,28 @@ export interface LaunchMessagesOptions {
|
|
|
4
4
|
isMessagesModalVisible: boolean;
|
|
5
5
|
}
|
|
6
6
|
export type LaunchMessagesType = (options: LaunchMessagesOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Toggles the visibility state of the messages modal.
|
|
9
|
+
*
|
|
10
|
+
* This method updates the visibility state of the messages modal by calling the provided
|
|
11
|
+
* function with the negated current visibility state. If the modal is currently visible,
|
|
12
|
+
* it will be closed; if it's hidden, it will be opened.
|
|
13
|
+
*
|
|
14
|
+
* @param {LaunchMessagesOptions} options - The options for launching the messages modal.
|
|
15
|
+
* @param {Function} options.updateIsMessagesModalVisible - Function to update the visibility state of the messages modal.
|
|
16
|
+
* @param {boolean} options.isMessagesModalVisible - Current visibility state of the messages modal.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const launchMessagesService = new LaunchMessages();
|
|
21
|
+
* launchMessagesService.launchMessages({
|
|
22
|
+
* updateIsMessagesModalVisible: (visible) => {
|
|
23
|
+
* console.log('Messages modal is now:', visible ? 'Visible' : 'Hidden');
|
|
24
|
+
* },
|
|
25
|
+
* isMessagesModalVisible: false, // Initially not visible
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
7
29
|
export declare class LaunchMessages {
|
|
8
30
|
/**
|
|
9
31
|
* Toggles the visibility state of the messages modal.
|
|
@@ -17,6 +17,55 @@ export interface SendMessageOptions {
|
|
|
17
17
|
socket: Socket;
|
|
18
18
|
}
|
|
19
19
|
export type SendMessageType = (options: SendMessageOptions) => Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Sends a message to the specified room.
|
|
22
|
+
*
|
|
23
|
+
* This method validates the message and its recipients, checks user permissions,
|
|
24
|
+
* and then emits the message to the server via a socket connection. It also
|
|
25
|
+
* handles alerting the user for any errors encountered during the process,
|
|
26
|
+
* such as exceeding message limits or invalid input.
|
|
27
|
+
*
|
|
28
|
+
* @param {SendMessageOptions} options - The options for sending the message.
|
|
29
|
+
* @param {string} options.member - The member sending the message.
|
|
30
|
+
* @param {string} options.islevel - The level of the member.
|
|
31
|
+
* @param {Function} options.showAlert - Function to show alert messages.
|
|
32
|
+
* @param {Array} options.coHostResponsibility - List of co-host responsibilities.
|
|
33
|
+
* @param {string} options.coHost - The co-host of the room.
|
|
34
|
+
* @param {string} options.chatSetting - Chat setting for the room.
|
|
35
|
+
* @param {string} options.message - The message to be sent.
|
|
36
|
+
* @param {string} options.roomName - The name of the room.
|
|
37
|
+
* @param {number} options.messagesLength - The current number of messages in the room.
|
|
38
|
+
* @param {Array} options.receivers - List of receivers for the message.
|
|
39
|
+
* @param {boolean} options.group - Indicates if the message is for a group.
|
|
40
|
+
* @param {string} options.sender - The sender of the message.
|
|
41
|
+
* @param {Object} options.socket - The socket instance for emitting events.
|
|
42
|
+
*
|
|
43
|
+
* @returns {Promise<void>} A promise that resolves when the message is sent.
|
|
44
|
+
*
|
|
45
|
+
* @throws Will throw an error if the message count limit is exceeded.
|
|
46
|
+
* @throws Will throw an error if the message, sender, or receivers are not valid.
|
|
47
|
+
* @throws Will throw an error if the user is not allowed to send a message in the event room.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const sendMessageService = new SendMessage();
|
|
52
|
+
* await sendMessageService.sendMessage({
|
|
53
|
+
* member: 'JohnDoe',
|
|
54
|
+
* islevel: '1',
|
|
55
|
+
* showAlert: (alert) => console.log(alert.message),
|
|
56
|
+
* coHostResponsibility: [],
|
|
57
|
+
* coHost: 'JaneDoe',
|
|
58
|
+
* chatSetting: 'allowed',
|
|
59
|
+
* message: 'Hello everyone!',
|
|
60
|
+
* roomName: 'Room1',
|
|
61
|
+
* messagesLength: 50,
|
|
62
|
+
* receivers: ['user1', 'user2'],
|
|
63
|
+
* group: true,
|
|
64
|
+
* sender: 'JohnDoe',
|
|
65
|
+
* socket: socketInstance,
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
20
69
|
export declare class SendMessage {
|
|
21
70
|
/**
|
|
22
71
|
* Sends a message to the specified room.
|
|
@@ -4,6 +4,30 @@ export interface LaunchParticipantsOptions {
|
|
|
4
4
|
isParticipantsModalVisible: boolean;
|
|
5
5
|
}
|
|
6
6
|
export type LaunchParticipantsType = (options: LaunchParticipantsOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Toggles the visibility of the participants modal.
|
|
9
|
+
*
|
|
10
|
+
* This method checks the current visibility state of the participants modal
|
|
11
|
+
* and updates it accordingly. If the modal is currently visible, it will be hidden.
|
|
12
|
+
* If it is hidden, it will be displayed.
|
|
13
|
+
*
|
|
14
|
+
* @param {LaunchParticipantsOptions} options - The options for toggling the participants modal.
|
|
15
|
+
* @param {Function} options.updateIsParticipantsModalVisible - Function to update the visibility state of the participants modal.
|
|
16
|
+
* @param {boolean} options.isParticipantsModalVisible - Current visibility state of the participants modal.
|
|
17
|
+
*
|
|
18
|
+
* @returns {void}
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* const launchParticipantsService = new LaunchParticipants();
|
|
23
|
+
* launchParticipantsService.launchParticipants({
|
|
24
|
+
* updateIsParticipantsModalVisible: (isVisible) => {
|
|
25
|
+
* console.log(`Participants modal is now ${isVisible ? 'visible' : 'hidden'}`);
|
|
26
|
+
* },
|
|
27
|
+
* isParticipantsModalVisible: false,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
7
31
|
export declare class LaunchParticipants {
|
|
8
32
|
/**
|
|
9
33
|
* Toggles the visibility of the participants modal.
|
|
@@ -12,6 +12,52 @@ export interface MessageParticipantsOptions {
|
|
|
12
12
|
updateStartDirectMessage: (start: boolean) => void;
|
|
13
13
|
}
|
|
14
14
|
export type MessageParticipantsType = (options: MessageParticipantsOptions) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Sends a direct message to a participant if certain conditions are met.
|
|
17
|
+
*
|
|
18
|
+
* This method checks the current user's level and their co-host responsibilities
|
|
19
|
+
* to determine if they are allowed to send a direct message to a specified participant.
|
|
20
|
+
* If the user has the appropriate permissions, the method updates the direct message
|
|
21
|
+
* details and opens the messages modal. If the user is not allowed to send the message,
|
|
22
|
+
* an alert is displayed.
|
|
23
|
+
*
|
|
24
|
+
* @param {MessageParticipantsOptions} options - The options for sending a message to a participant.
|
|
25
|
+
* @param {CoHostResponsibility[]} options.coHostResponsibility - Array of responsibilities assigned to the co-host.
|
|
26
|
+
* @param {Participant} options.participant - The participant to whom the message is to be sent.
|
|
27
|
+
* @param {string} options.member - The current member attempting to send the message.
|
|
28
|
+
* @param {string} options.islevel - The level of the current member.
|
|
29
|
+
* @param {Function} [options.showAlert] - Function to show an alert message if the message cannot be sent.
|
|
30
|
+
* @param {string} options.coHost - The co-host member.
|
|
31
|
+
* @param {Function} options.updateIsMessagesModalVisible - Function to update the visibility of the messages modal.
|
|
32
|
+
* @param {Function} options.updateDirectMessageDetails - Function to update the details of the direct message.
|
|
33
|
+
* @param {Function} options.updateStartDirectMessage - Function to start the direct message.
|
|
34
|
+
*
|
|
35
|
+
* @returns {void}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* const messageService = new MessageParticipants();
|
|
40
|
+
* messageService.messageParticipants({
|
|
41
|
+
* coHostResponsibility: [{ name: 'chat', value: true }],
|
|
42
|
+
* participant: { name: 'John', islevel: '1' },
|
|
43
|
+
* member: 'Alice',
|
|
44
|
+
* islevel: '1',
|
|
45
|
+
* showAlert: ({ message, type, duration }) => {
|
|
46
|
+
* console.log(`Alert: ${message} - Type: ${type} - Duration: ${duration}`);
|
|
47
|
+
* },
|
|
48
|
+
* coHost: 'Bob',
|
|
49
|
+
* updateIsMessagesModalVisible: (isVisible) => {
|
|
50
|
+
* console.log(`Messages modal is now ${isVisible ? 'visible' : 'hidden'}`);
|
|
51
|
+
* },
|
|
52
|
+
* updateDirectMessageDetails: (participant) => {
|
|
53
|
+
* console.log(`Direct messaging: ${participant.name}`);
|
|
54
|
+
* },
|
|
55
|
+
* updateStartDirectMessage: (start) => {
|
|
56
|
+
* console.log(`Direct messaging started: ${start}`);
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
15
61
|
export declare class MessageParticipants {
|
|
16
62
|
/**
|
|
17
63
|
* Sends a direct message to a participant if certain conditions are met.
|
|
@@ -12,6 +12,45 @@ export interface MuteParticipantsOptions {
|
|
|
12
12
|
roomName: string;
|
|
13
13
|
}
|
|
14
14
|
export type MuteParticipantsType = (options: MuteParticipantsOptions) => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Mutes a participant in a media session if certain conditions are met.
|
|
17
|
+
*
|
|
18
|
+
* This method checks the current user's level and their co-host responsibilities
|
|
19
|
+
* to determine if they are allowed to mute a specified participant. If allowed,
|
|
20
|
+
* the method emits a socket event to mute the participant. If not allowed, an alert
|
|
21
|
+
* is displayed.
|
|
22
|
+
*
|
|
23
|
+
* @param {MuteParticipantsOptions} options - The options for muting participants.
|
|
24
|
+
* @param {Socket} options.socket - The socket instance for communication.
|
|
25
|
+
* @param {CoHostResponsibility[]} options.coHostResponsibility - List of co-host responsibilities.
|
|
26
|
+
* @param {Participant} options.participant - The participant to be muted.
|
|
27
|
+
* @param {string} options.member - The current member attempting to mute.
|
|
28
|
+
* @param {string} options.islevel - The level of the current member.
|
|
29
|
+
* @param {Function} [options.showAlert] - Optional function to show alerts.
|
|
30
|
+
* @param {string} options.coHost - The co-host information.
|
|
31
|
+
* @param {string} options.roomName - The name of the room.
|
|
32
|
+
*
|
|
33
|
+
* @returns {Promise<void>} A promise that resolves when the participant is muted.
|
|
34
|
+
*
|
|
35
|
+
* @throws Will log an error if there is an issue accessing co-host responsibilities.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* const muteService = new MuteParticipants();
|
|
40
|
+
* muteService.muteParticipants({
|
|
41
|
+
* socket: socketInstance,
|
|
42
|
+
* coHostResponsibility: [{ name: 'media', value: true }],
|
|
43
|
+
* participant: { id: '123', name: 'John', islevel: '1', muted: false },
|
|
44
|
+
* member: 'Alice',
|
|
45
|
+
* islevel: '1',
|
|
46
|
+
* showAlert: ({ message, type }) => {
|
|
47
|
+
* console.log(`Alert: ${message} - Type: ${type}`);
|
|
48
|
+
* },
|
|
49
|
+
* coHost: 'Bob',
|
|
50
|
+
* roomName: 'room1',
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
15
54
|
export declare class MuteParticipants {
|
|
16
55
|
/**
|
|
17
56
|
* Mutes a participant in a media session if certain conditions are met.
|