mediasfu-angular 1.0.1 → 2.0.0
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/README.md +871 -769
- package/dist/README.md +870 -769
- package/dist/fesm2022/mediasfu-angular.mjs +13241 -3372
- package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
- package/dist/lib/@types/types.d.ts +22 -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 +51 -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 +258 -117
- package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +254 -117
- package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +312 -162
- package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +312 -162
- package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +310 -162
- 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 +27 -29
- package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +20 -15
- 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 +20 -35
- package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +79 -66
- package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +19 -1
- 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-local-ips.service.d.ts +81 -0
- package/dist/lib/consumers/connect-recv-transport.service.d.ts +33 -0
- package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +81 -11
- package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +96 -15
- package/dist/lib/consumers/connect-send-transport-video.service.d.ts +101 -11
- package/dist/lib/consumers/connect-send-transport.service.d.ts +59 -1
- 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 +149 -13
- package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +100 -13
- package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +75 -2
- package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +99 -17
- 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 +38 -1
- 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 +36 -1
- 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 +76 -7
- 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 +148 -11
- 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 +41 -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 +29 -1
- 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 +53 -0
- package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +42 -1
- package/dist/lib/methods/recording-methods/update-recording.service.d.ts +51 -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 +100 -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/check-limits-and-make-request.service.d.ts +23 -0
- package/dist/lib/methods/utils/create-response-join-room.util.d.ts +33 -0
- package/dist/lib/methods/utils/create-room-on-media-sfu.service.d.ts +25 -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/initial-values.util.d.ts +6 -0
- package/dist/lib/methods/utils/join-room-on-media-sfu.service.d.ts +52 -0
- 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 +46 -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-local-room.service.d.ts +125 -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 +80 -2
- package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +78 -2
- 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 +29 -1
- 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 +130 -0
- package/dist/public-api.d.ts +11 -1
- package/package.json +17 -20
- package/dist/esm2022/lib/@types/types.mjs +0 -2
- package/dist/esm2022/lib/components/background-components/background-modal/background-modal.component.mjs +0 -763
- package/dist/esm2022/lib/components/breakout-components/breakout-rooms-modal.component.mjs +0 -316
- package/dist/esm2022/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.mjs +0 -95
- package/dist/esm2022/lib/components/breakout-components/room-list/room-list.component.mjs +0 -40
- package/dist/esm2022/lib/components/co-host-components/co-host-modal/co-host-modal.component.mjs +0 -246
- package/dist/esm2022/lib/components/display-components/alert-component/alert.component.component.mjs +0 -73
- package/dist/esm2022/lib/components/display-components/audio-card/audio-card.component.mjs +0 -297
- package/dist/esm2022/lib/components/display-components/audio-grid/audio-grid.component.mjs +0 -60
- package/dist/esm2022/lib/components/display-components/card-video-display/card-video-display.component.mjs +0 -94
- package/dist/esm2022/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.mjs +0 -100
- package/dist/esm2022/lib/components/display-components/control-buttons-component/control-buttons-component.component.mjs +0 -231
- package/dist/esm2022/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.mjs +0 -298
- package/dist/esm2022/lib/components/display-components/control-widgets/menu-participants-widget.component.mjs +0 -61
- package/dist/esm2022/lib/components/display-components/control-widgets/menu-record-widget.component.mjs +0 -43
- package/dist/esm2022/lib/components/display-components/control-widgets/menu-widget.component.mjs +0 -114
- package/dist/esm2022/lib/components/display-components/control-widgets/message-widget.component.mjs +0 -114
- package/dist/esm2022/lib/components/display-components/control-widgets/record-timer-widget.component.mjs +0 -36
- package/dist/esm2022/lib/components/display-components/control-widgets/screenshare-widget.component.mjs +0 -74
- package/dist/esm2022/lib/components/display-components/flexible-grid/flexible-grid.component.mjs +0 -142
- package/dist/esm2022/lib/components/display-components/flexible-video/flexible-video.component.mjs +0 -265
- package/dist/esm2022/lib/components/display-components/loading-modal/loading-modal.component.mjs +0 -100
- package/dist/esm2022/lib/components/display-components/main-aspect-component/main-aspect-component.component.mjs +0 -132
- package/dist/esm2022/lib/components/display-components/main-container-component/main-container-component.component.mjs +0 -119
- package/dist/esm2022/lib/components/display-components/main-grid-component/main-grid-component.component.mjs +0 -106
- package/dist/esm2022/lib/components/display-components/main-screen-component/main-screen-component.component.mjs +0 -180
- package/dist/esm2022/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.mjs +0 -120
- package/dist/esm2022/lib/components/display-components/mini-audio/mini-audio.component.mjs +0 -326
- package/dist/esm2022/lib/components/display-components/mini-card/mini-card.component.mjs +0 -165
- package/dist/esm2022/lib/components/display-components/mini-card-audio/mini-card-audio.component.mjs +0 -230
- package/dist/esm2022/lib/components/display-components/other-grid-component/other-grid-component.component.mjs +0 -111
- package/dist/esm2022/lib/components/display-components/pagination/pagination.component.mjs +0 -328
- package/dist/esm2022/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.mjs +0 -118
- package/dist/esm2022/lib/components/display-components/video-card/video-card.component.mjs +0 -330
- package/dist/esm2022/lib/components/display-settings-components/display-settings-modal.component.mjs +0 -95
- package/dist/esm2022/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.mjs +0 -190
- package/dist/esm2022/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.mjs +0 -119
- package/dist/esm2022/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.mjs +0 -209
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-broadcast.component.mjs +0 -4189
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-chat.component.mjs +0 -3705
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-conference.component.mjs +0 -5024
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-generic.component.mjs +0 -5333
- package/dist/esm2022/lib/components/mediasfu-components/mediasfu-webinar.component.mjs +0 -5023
- package/dist/esm2022/lib/components/menu-components/custom-buttons/custom-buttons.component.mjs +0 -85
- package/dist/esm2022/lib/components/menu-components/meeting-id-component/meeting-id-component.component.mjs +0 -22
- package/dist/esm2022/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.mjs +0 -22
- package/dist/esm2022/lib/components/menu-components/menu-modal/menu-modal.component.mjs +0 -132
- package/dist/esm2022/lib/components/menu-components/share-buttons-component/share-buttons-component.component.mjs +0 -104
- package/dist/esm2022/lib/components/message-components/message-panel/message-panel.component.mjs +0 -204
- package/dist/esm2022/lib/components/message-components/messages-modal/messages-modal.component.mjs +0 -243
- package/dist/esm2022/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.mjs +0 -147
- package/dist/esm2022/lib/components/misc-components/pre-join-page/pre-join-page.component.mjs +0 -335
- package/dist/esm2022/lib/components/misc-components/share-event-modal/share-event-modal.component.mjs +0 -113
- package/dist/esm2022/lib/components/misc-components/welcome-page/welcome-page.component.mjs +0 -226
- package/dist/esm2022/lib/components/participants-components/participant-list/participant-list.component.mjs +0 -63
- package/dist/esm2022/lib/components/participants-components/participant-list-item/participant-list-item.component.mjs +0 -120
- package/dist/esm2022/lib/components/participants-components/participant-list-others/participant-list-others.component.mjs +0 -23
- package/dist/esm2022/lib/components/participants-components/participant-list-others-item/participant-list-others-item.component.mjs +0 -43
- package/dist/esm2022/lib/components/participants-components/participants-modal/participants-modal.component.mjs +0 -100
- package/dist/esm2022/lib/components/polls-components/poll-modal/poll-modal.component.mjs +0 -174
- package/dist/esm2022/lib/components/recording-components/advanced-panel-component/advanced-panel-components.component.mjs +0 -77
- package/dist/esm2022/lib/components/recording-components/recording-modal/recording-modal.component.mjs +0 -121
- package/dist/esm2022/lib/components/recording-components/standard-panel-component/standard-panel-component.component.mjs +0 -85
- package/dist/esm2022/lib/components/requests-components/render-request-component/render-request-component.component.mjs +0 -59
- package/dist/esm2022/lib/components/requests-components/requests-modal/requests-modal.component.mjs +0 -130
- package/dist/esm2022/lib/components/screenboard-components/screenboard/screenboard.component.mjs +0 -617
- package/dist/esm2022/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.mjs +0 -380
- package/dist/esm2022/lib/components/waiting-components/waiting-room-modal.component.mjs +0 -142
- package/dist/esm2022/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.mjs +0 -265
- package/dist/esm2022/lib/components/whiteboard-components/whiteboard/whiteboard.component.mjs +0 -1784
- package/dist/esm2022/lib/consumers/add-videos-grid.service.mjs +0 -296
- package/dist/esm2022/lib/consumers/auto-adjust.service.mjs +0 -83
- package/dist/esm2022/lib/consumers/calculate-rows-and-columns.service.mjs +0 -42
- package/dist/esm2022/lib/consumers/change-vids.service.mjs +0 -486
- package/dist/esm2022/lib/consumers/check-grid.service.mjs +0 -79
- package/dist/esm2022/lib/consumers/check-permission.service.mjs +0 -80
- package/dist/esm2022/lib/consumers/check-screen-share.service.mjs +0 -71
- package/dist/esm2022/lib/consumers/close-and-resize.service.mjs +0 -229
- package/dist/esm2022/lib/consumers/compare-active-names.service.mjs +0 -75
- package/dist/esm2022/lib/consumers/compare-screen-states.service.mjs +0 -63
- package/dist/esm2022/lib/consumers/connect-ips.service.mjs +0 -112
- package/dist/esm2022/lib/consumers/connect-recv-transport.service.mjs +0 -113
- package/dist/esm2022/lib/consumers/connect-send-transport-audio.service.mjs +0 -46
- package/dist/esm2022/lib/consumers/connect-send-transport-screen.service.mjs +0 -62
- package/dist/esm2022/lib/consumers/connect-send-transport-video.service.mjs +0 -55
- package/dist/esm2022/lib/consumers/connect-send-transport.service.mjs +0 -86
- package/dist/esm2022/lib/consumers/consumer-resume.service.mjs +0 -332
- package/dist/esm2022/lib/consumers/control-media.service.mjs +0 -68
- package/dist/esm2022/lib/consumers/create-send-transport.service.mjs +0 -126
- package/dist/esm2022/lib/consumers/disconnect-send-transport-audio.service.mjs +0 -58
- package/dist/esm2022/lib/consumers/disconnect-send-transport-screen.service.mjs +0 -45
- package/dist/esm2022/lib/consumers/disconnect-send-transport-video.service.mjs +0 -56
- package/dist/esm2022/lib/consumers/disp-streams.service.mjs +0 -421
- package/dist/esm2022/lib/consumers/generate-page-content.service.mjs +0 -59
- package/dist/esm2022/lib/consumers/get-estimate.service.mjs +0 -70
- package/dist/esm2022/lib/consumers/get-piped-producers-alt.service.mjs +0 -49
- package/dist/esm2022/lib/consumers/get-producers-piped.service.mjs +0 -46
- package/dist/esm2022/lib/consumers/get-videos.service.mjs +0 -58
- package/dist/esm2022/lib/consumers/mix-streams.service.mjs +0 -73
- package/dist/esm2022/lib/consumers/on-screen-changes.service.mjs +0 -63
- package/dist/esm2022/lib/consumers/prepopulate-user-media.service.mjs +0 -442
- package/dist/esm2022/lib/consumers/process-consumer-transports-audio.service.mjs +0 -72
- package/dist/esm2022/lib/consumers/process-consumer-transports.service.mjs +0 -91
- package/dist/esm2022/lib/consumers/re-port.service.mjs +0 -66
- package/dist/esm2022/lib/consumers/re-update-inter.service.mjs +0 -157
- package/dist/esm2022/lib/consumers/readjust.service.mjs +0 -123
- package/dist/esm2022/lib/consumers/receive-all-piped-transports.service.mjs +0 -56
- package/dist/esm2022/lib/consumers/receive-room-messages.service.mjs +0 -42
- package/dist/esm2022/lib/consumers/reorder-streams.service.mjs +0 -181
- package/dist/esm2022/lib/consumers/request-screen-share.service.mjs +0 -67
- package/dist/esm2022/lib/consumers/resume-pause-audio-streams.service.mjs +0 -99
- package/dist/esm2022/lib/consumers/resume-pause-streams.service.mjs +0 -70
- package/dist/esm2022/lib/consumers/resume-send-transport-audio.service.mjs +0 -55
- package/dist/esm2022/lib/consumers/signal-new-consumer-transport.service.mjs +0 -136
- package/dist/esm2022/lib/consumers/socket-receive-methods/join-consume-room.service.mjs +0 -63
- package/dist/esm2022/lib/consumers/socket-receive-methods/new-pipe-producer.service.mjs +0 -61
- package/dist/esm2022/lib/consumers/socket-receive-methods/producer-closed.service.mjs +0 -51
- package/dist/esm2022/lib/consumers/start-share-screen.service.mjs +0 -80
- package/dist/esm2022/lib/consumers/stop-share-screen.service.mjs +0 -120
- package/dist/esm2022/lib/consumers/stream-success-audio-switch.service.mjs +0 -132
- package/dist/esm2022/lib/consumers/stream-success-audio.service.mjs +0 -149
- package/dist/esm2022/lib/consumers/stream-success-screen.service.mjs +0 -143
- package/dist/esm2022/lib/consumers/stream-success-video.service.mjs +0 -202
- package/dist/esm2022/lib/consumers/switch-user-audio.service.mjs +0 -87
- package/dist/esm2022/lib/consumers/switch-user-video-alt.service.mjs +0 -228
- package/dist/esm2022/lib/consumers/switch-user-video.service.mjs +0 -125
- package/dist/esm2022/lib/consumers/trigger.service.mjs +0 -172
- package/dist/esm2022/lib/consumers/update-mini-cards-grid.service.mjs +0 -81
- package/dist/esm2022/lib/consumers/update-participant-audio-decibels.service.mjs +0 -39
- package/dist/esm2022/lib/methods/background-methods/launch-background.service.mjs +0 -23
- package/dist/esm2022/lib/methods/breakout-room-methods/breakout-room-updated.service.mjs +0 -112
- package/dist/esm2022/lib/methods/breakout-room-methods/launch-breakout-rooms.service.mjs +0 -22
- package/dist/esm2022/lib/methods/co-host-methods/launch-co-host.service.mjs +0 -22
- package/dist/esm2022/lib/methods/co-host-methods/modify-co-host-settings.service.mjs +0 -60
- package/dist/esm2022/lib/methods/display-settings-methods/launch-display-settings.service.mjs +0 -24
- package/dist/esm2022/lib/methods/display-settings-methods/modify-display-settings.service.mjs +0 -119
- package/dist/esm2022/lib/methods/exit-methods/confirm-exit.service.mjs +0 -28
- package/dist/esm2022/lib/methods/exit-methods/launch-confirm-exit.service.mjs +0 -22
- package/dist/esm2022/lib/methods/media-settings-methods/launch-media-settings.service.mjs +0 -50
- package/dist/esm2022/lib/methods/menu-methods/launch-menu-modal.service.mjs +0 -22
- package/dist/esm2022/lib/methods/message-methods/launch-messages.service.mjs +0 -23
- package/dist/esm2022/lib/methods/message-methods/send-message.service.mjs +0 -94
- package/dist/esm2022/lib/methods/participants-methods/launch-participants.service.mjs +0 -23
- package/dist/esm2022/lib/methods/participants-methods/message-participants.service.mjs +0 -52
- package/dist/esm2022/lib/methods/participants-methods/mute-participants.service.mjs +0 -57
- package/dist/esm2022/lib/methods/participants-methods/remove-participants.service.mjs +0 -62
- package/dist/esm2022/lib/methods/polls-methods/handle-create-poll.service.mjs +0 -37
- package/dist/esm2022/lib/methods/polls-methods/handle-end-poll.service.mjs +0 -40
- package/dist/esm2022/lib/methods/polls-methods/handle-vote-poll.service.mjs +0 -49
- package/dist/esm2022/lib/methods/polls-methods/launch-poll.service.mjs +0 -23
- package/dist/esm2022/lib/methods/polls-methods/poll-updated.service.mjs +0 -64
- package/dist/esm2022/lib/methods/recording-methods/check-pause-state.service.mjs +0 -45
- package/dist/esm2022/lib/methods/recording-methods/check-resume-state.service.mjs +0 -34
- package/dist/esm2022/lib/methods/recording-methods/confirm-recording.service.mjs +0 -215
- package/dist/esm2022/lib/methods/recording-methods/launch-recording.service.mjs +0 -82
- package/dist/esm2022/lib/methods/recording-methods/record-pause-timer.service.mjs +0 -40
- package/dist/esm2022/lib/methods/recording-methods/record-resume-timer.service.mjs +0 -86
- package/dist/esm2022/lib/methods/recording-methods/record-start-timer.service.mjs +0 -89
- package/dist/esm2022/lib/methods/recording-methods/record-update-timer.service.mjs +0 -48
- package/dist/esm2022/lib/methods/recording-methods/start-recording.service.mjs +0 -147
- package/dist/esm2022/lib/methods/recording-methods/stop-recording.service.mjs +0 -74
- package/dist/esm2022/lib/methods/recording-methods/update-recording.service.mjs +0 -224
- package/dist/esm2022/lib/methods/requests-methods/launch-requests.service.mjs +0 -26
- package/dist/esm2022/lib/methods/requests-methods/respond-to-requests.service.mjs +0 -45
- package/dist/esm2022/lib/methods/settings-methods/launch-settings.service.mjs +0 -26
- package/dist/esm2022/lib/methods/settings-methods/modify-settings.service.mjs +0 -67
- package/dist/esm2022/lib/methods/stream-methods/click-audio.service.mjs +0 -178
- package/dist/esm2022/lib/methods/stream-methods/click-chat.service.mjs +0 -44
- package/dist/esm2022/lib/methods/stream-methods/click-screen-share.service.mjs +0 -110
- package/dist/esm2022/lib/methods/stream-methods/click-video.service.mjs +0 -183
- package/dist/esm2022/lib/methods/stream-methods/switch-audio.service.mjs +0 -33
- package/dist/esm2022/lib/methods/stream-methods/switch-video-alt.service.mjs +0 -66
- package/dist/esm2022/lib/methods/stream-methods/switch-video.service.mjs +0 -76
- package/dist/esm2022/lib/methods/utils/format-number.service.mjs +0 -45
- package/dist/esm2022/lib/methods/utils/generate-random-messages.service.mjs +0 -87
- package/dist/esm2022/lib/methods/utils/generate-random-participants.service.mjs +0 -99
- package/dist/esm2022/lib/methods/utils/generate-random-polls.service.mjs +0 -52
- package/dist/esm2022/lib/methods/utils/generate-random-request-list.service.mjs +0 -54
- package/dist/esm2022/lib/methods/utils/generate-random-waiting-room-list.service.mjs +0 -38
- package/dist/esm2022/lib/methods/utils/get-modal-position.util.mjs +0 -22
- package/dist/esm2022/lib/methods/utils/get-overlay-position.util.mjs +0 -21
- package/dist/esm2022/lib/methods/utils/initial-values.util.mjs +0 -379
- package/dist/esm2022/lib/methods/utils/meeting-timer/start-meeting-progress-timer.service.mjs +0 -59
- package/dist/esm2022/lib/methods/utils/mini-audio-player/mini-audio-player.component.mjs +0 -260
- package/dist/esm2022/lib/methods/utils/producer/a-params.service.mjs +0 -21
- package/dist/esm2022/lib/methods/utils/producer/h-params.service.mjs +0 -37
- package/dist/esm2022/lib/methods/utils/producer/screen-params.service.mjs +0 -24
- package/dist/esm2022/lib/methods/utils/producer/v-params.service.mjs +0 -37
- package/dist/esm2022/lib/methods/utils/producer/video-capture-constraints.service.mjs +0 -38
- package/dist/esm2022/lib/methods/utils/sleep.util.mjs +0 -11
- package/dist/esm2022/lib/methods/utils/sound-player.service.mjs +0 -42
- package/dist/esm2022/lib/methods/utils/validate-alphanumeric.service.mjs +0 -33
- package/dist/esm2022/lib/methods/waiting-methods/launch-waiting.service.mjs +0 -23
- package/dist/esm2022/lib/methods/waiting-methods/respond-to-waiting.service.mjs +0 -40
- package/dist/esm2022/lib/methods/whiteboard-methods/capture-canvas-stream.service.mjs +0 -69
- package/dist/esm2022/lib/methods/whiteboard-methods/launch-configure-whiteboard.service.mjs +0 -24
- package/dist/esm2022/lib/producer-client/producer-client-emits/create-device-client.service.mjs +0 -51
- package/dist/esm2022/lib/producer-client/producer-client-emits/join-room-client.service.mjs +0 -65
- package/dist/esm2022/lib/producer-client/producer-client-emits/update-room-parameters-client.service.mjs +0 -232
- package/dist/esm2022/lib/producers/producer-emits/join-con-room.service.mjs +0 -114
- package/dist/esm2022/lib/producers/producer-emits/join-room.service.mjs +0 -114
- package/dist/esm2022/lib/producers/socket-receive-methods/all-members-rest.service.mjs +0 -155
- package/dist/esm2022/lib/producers/socket-receive-methods/all-members.service.mjs +0 -147
- package/dist/esm2022/lib/producers/socket-receive-methods/all-waiting-room-members.service.mjs +0 -30
- package/dist/esm2022/lib/producers/socket-receive-methods/ban-participant.service.mjs +0 -40
- package/dist/esm2022/lib/producers/socket-receive-methods/control-media-host.service.mjs +0 -146
- package/dist/esm2022/lib/producers/socket-receive-methods/disconnect-user-self.service.mjs +0 -26
- package/dist/esm2022/lib/producers/socket-receive-methods/disconnect.service.mjs +0 -38
- package/dist/esm2022/lib/producers/socket-receive-methods/get-domains.service.mjs +0 -63
- package/dist/esm2022/lib/producers/socket-receive-methods/host-request-response.service.mjs +0 -167
- package/dist/esm2022/lib/producers/socket-receive-methods/meeting-ended.service.mjs +0 -44
- package/dist/esm2022/lib/producers/socket-receive-methods/meeting-still-there.service.mjs +0 -24
- package/dist/esm2022/lib/producers/socket-receive-methods/meeting-time-remaining.service.mjs +0 -36
- package/dist/esm2022/lib/producers/socket-receive-methods/participant-requested.service.mjs +0 -32
- package/dist/esm2022/lib/producers/socket-receive-methods/person-joined.service.mjs +0 -29
- package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-closed.service.mjs +0 -68
- package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-paused.service.mjs +0 -90
- package/dist/esm2022/lib/producers/socket-receive-methods/producer-media-resumed.service.mjs +0 -54
- package/dist/esm2022/lib/producers/socket-receive-methods/re-initiate-recording.service.mjs +0 -38
- package/dist/esm2022/lib/producers/socket-receive-methods/receive-message.service.mjs +0 -96
- package/dist/esm2022/lib/producers/socket-receive-methods/recording-notice.service.mjs +0 -195
- package/dist/esm2022/lib/producers/socket-receive-methods/room-record-params.service.mjs +0 -59
- package/dist/esm2022/lib/producers/socket-receive-methods/screen-producer-id.service.mjs +0 -45
- package/dist/esm2022/lib/producers/socket-receive-methods/start-records.service.mjs +0 -35
- package/dist/esm2022/lib/producers/socket-receive-methods/stopped-recording.service.mjs +0 -37
- package/dist/esm2022/lib/producers/socket-receive-methods/time-left-recording.service.mjs +0 -36
- package/dist/esm2022/lib/producers/socket-receive-methods/update-consuming-domains.service.mjs +0 -63
- package/dist/esm2022/lib/producers/socket-receive-methods/update-media-settings.service.mjs +0 -36
- package/dist/esm2022/lib/producers/socket-receive-methods/updated-co-host.service.mjs +0 -56
- package/dist/esm2022/lib/producers/socket-receive-methods/user-waiting.service.mjs +0 -78
- package/dist/esm2022/lib/sockets/socket-manager.service.mjs +0 -73
- package/dist/esm2022/mediasfu-angular.mjs +0 -5
- package/dist/esm2022/public-api.mjs +0 -187
|
@@ -6,6 +6,28 @@ export interface CheckResumeStateOptions {
|
|
|
6
6
|
pauseRecordCount: number;
|
|
7
7
|
}
|
|
8
8
|
export type CheckResumeStateType = (options: CheckResumeStateOptions) => Promise<boolean>;
|
|
9
|
+
/**
|
|
10
|
+
* Checks if the recording can be resumed based on the media type and pause limits.
|
|
11
|
+
*
|
|
12
|
+
* @param {CheckResumeStateOptions} options - The options for checking resume state.
|
|
13
|
+
* @param {string} options.recordingMediaOptions - The type of media being recorded ("video" or "audio").
|
|
14
|
+
* @param {number} options.recordingVideoPausesLimit - The maximum number of pauses allowed for video recording.
|
|
15
|
+
* @param {number} options.recordingAudioPausesLimit - The maximum number of pauses allowed for audio recording.
|
|
16
|
+
* @param {number} options.pauseRecordCount - The current number of pauses that have occurred.
|
|
17
|
+
* @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether the recording can be resumed.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const checkResumeStateService = new CheckResumeState();
|
|
22
|
+
* const canResume = await checkResumeStateService.checkResumeState({
|
|
23
|
+
* recordingMediaOptions: 'audio',
|
|
24
|
+
* recordingVideoPausesLimit: 3,
|
|
25
|
+
* recordingAudioPausesLimit: 5,
|
|
26
|
+
* pauseRecordCount: 2,
|
|
27
|
+
* });
|
|
28
|
+
* console.log('Can resume recording:', canResume);
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
9
31
|
export declare class CheckResumeState {
|
|
10
32
|
/**
|
|
11
33
|
* Checks if the recording can be resumed based on the media type and pause limits.
|
|
@@ -40,6 +40,69 @@ export interface ConfirmRecordingOptions {
|
|
|
40
40
|
parameters: ConfirmRecordingParameters;
|
|
41
41
|
}
|
|
42
42
|
export type ConfirmRecordingType = (options: ConfirmRecordingOptions) => Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Confirms the recording settings based on the provided parameters and updates the recording state.
|
|
45
|
+
*
|
|
46
|
+
* @param {ConfirmRecordingOptions} options - The options for confirming the recording.
|
|
47
|
+
* @param {ConfirmRecordingParameters} options.parameters - The parameters for the recording, including:
|
|
48
|
+
* - {ShowAlert} [options.parameters.showAlert] - Optional function to show alert messages.
|
|
49
|
+
* - {string} options.parameters.recordingMediaOptions - Type of media being recorded ("video" or "audio").
|
|
50
|
+
* - {string} options.parameters.recordingAudioOptions - Audio recording options.
|
|
51
|
+
* - {string} options.parameters.recordingVideoOptions - Video recording options.
|
|
52
|
+
* - {string} options.parameters.recordingVideoType - Type of video recording.
|
|
53
|
+
* - {'video' | 'media' | 'all'} options.parameters.recordingDisplayType - The display type for the recording.
|
|
54
|
+
* - {boolean} options.parameters.recordingNameTags - Flag for including name tags in the recording.
|
|
55
|
+
* - {string} options.parameters.recordingBackgroundColor - Background color for the recording.
|
|
56
|
+
* - {string} options.parameters.recordingNameTagsColor - Color for the name tags.
|
|
57
|
+
* - {string} options.parameters.recordingOrientationVideo - Orientation for video recording.
|
|
58
|
+
* - {boolean} options.parameters.recordingAddHLS - Flag for adding HLS support.
|
|
59
|
+
* - {boolean} options.parameters.recordingAddText - Flag for adding custom text.
|
|
60
|
+
* - {string} options.parameters.recordingCustomText - Custom text for the recording.
|
|
61
|
+
* - {string} options.parameters.recordingCustomTextPosition - Position of the custom text.
|
|
62
|
+
* - {string} options.parameters.recordingCustomTextColor - Color of the custom text.
|
|
63
|
+
* - {string} options.parameters.meetingDisplayType - Current display type of the meeting.
|
|
64
|
+
* - {boolean} options.parameters.recordingVideoParticipantsFullRoomSupport - Support for video participants in full room.
|
|
65
|
+
* - {boolean} options.parameters.recordingAllParticipantsSupport - Support for recording all participants.
|
|
66
|
+
* - {boolean} options.parameters.recordingVideoParticipantsSupport - Support for video participants.
|
|
67
|
+
* - {boolean} options.parameters.recordingSupportForOtherOrientation - Support for other orientations.
|
|
68
|
+
* - {string} options.parameters.recordingPreferredOrientation - Preferred orientation for recording.
|
|
69
|
+
* - {boolean} options.parameters.recordingMultiFormatsSupport - Support for multiple formats.
|
|
70
|
+
* - {boolean} options.parameters.recordingVideoOptimized - Flag for video optimization.
|
|
71
|
+
* - {boolean} options.parameters.recordingAllParticipantsFullRoomSupport - Support for recording all participants in full room.
|
|
72
|
+
* - {boolean} options.parameters.meetingVideoOptimized - Flag for meeting video optimization.
|
|
73
|
+
* - {EventType} options.parameters.eventType - Type of the event.
|
|
74
|
+
* - {boolean} options.parameters.breakOutRoomStarted - Indicates if a breakout room has started.
|
|
75
|
+
* - {boolean} options.parameters.breakOutRoomEnded - Indicates if a breakout room has ended.
|
|
76
|
+
* - {Function} options.parameters.updateRecordingDisplayType - Function to update the recording display type.
|
|
77
|
+
* - {Function} options.parameters.updateRecordingVideoOptimized - Function to update video optimization status.
|
|
78
|
+
* - {Function} options.parameters.updateUserRecordingParams - Function to update user recording parameters.
|
|
79
|
+
* - {Function} options.parameters.updateConfirmedToRecord - Function to confirm the recording.
|
|
80
|
+
*
|
|
81
|
+
* @returns {Promise<void>} A promise that resolves when the recording settings have been confirmed.
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* This function performs several checks to ensure that the recording settings are valid based on the provided parameters.
|
|
85
|
+
* If any of the checks fail, an alert is shown and the function returns early without updating the recording state.
|
|
86
|
+
*
|
|
87
|
+
* The function checks for the following conditions:
|
|
88
|
+
* - Whether recording videos of all participants is allowed.
|
|
89
|
+
* - Whether recording all participants is allowed.
|
|
90
|
+
* - Whether recording other video participants is allowed.
|
|
91
|
+
* - Whether recording all orientations is allowed.
|
|
92
|
+
* - Whether recording the preferred orientation is allowed.
|
|
93
|
+
* - Whether recording all formats is allowed.
|
|
94
|
+
* - Whether the recording display type is valid based on the meeting display type.
|
|
95
|
+
* - Whether recording all participants with media is allowed.
|
|
96
|
+
*
|
|
97
|
+
* If all checks pass, the function constructs the `mainSpecs`, `dispSpecs`, and `textSpecs` objects based on the state variables,
|
|
98
|
+
* updates the user recording parameters, and confirms the recording.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* const options: ConfirmRecordingOptions = { parameters: someParameters };
|
|
103
|
+
* await confirmRecording(options);
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
43
106
|
export declare class ConfirmRecording {
|
|
44
107
|
/**
|
|
45
108
|
* Confirms the recording settings based on the provided parameters and updates the recording state.
|
|
@@ -16,6 +16,49 @@ export interface LaunchRecordingOptions {
|
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
18
|
export type LaunchRecordingType = (options: LaunchRecordingOptions) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Launches the recording process based on various conditions and updates the UI accordingly.
|
|
21
|
+
*
|
|
22
|
+
* @param {LaunchRecordingOptions} options - The options for launching the recording.
|
|
23
|
+
* @param {Function} options.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
|
|
24
|
+
* @param {boolean} options.isRecordingModalVisible - Indicates if the recording modal is currently visible.
|
|
25
|
+
* @param {Function} [options.showAlert] - Optional function to show an alert message.
|
|
26
|
+
* @param {boolean} options.stopLaunchRecord - Indicates if the recording launch should be stopped.
|
|
27
|
+
* @param {boolean} options.canLaunchRecord - Indicates if the recording can be launched.
|
|
28
|
+
* @param {boolean} options.recordingAudioSupport - Indicates if audio recording is supported.
|
|
29
|
+
* @param {boolean} options.recordingVideoSupport - Indicates if video recording is supported.
|
|
30
|
+
* @param {Function} options.updateCanRecord - Function to update the recording capability.
|
|
31
|
+
* @param {Function} options.updateClearedToRecord - Function to update the cleared-to-record status.
|
|
32
|
+
* @param {boolean} options.recordStarted - Indicates if the recording has started.
|
|
33
|
+
* @param {boolean} options.recordPaused - Indicates if the recording is paused.
|
|
34
|
+
* @param {boolean} options.localUIMode - Indicates if the local UI mode is active.
|
|
35
|
+
*
|
|
36
|
+
* @returns {void}
|
|
37
|
+
*
|
|
38
|
+
* @throws Will show an alert if:
|
|
39
|
+
* - The recording has already ended or the user is not allowed to record.
|
|
40
|
+
* - The recording initiation is not allowed due to insufficient permissions.
|
|
41
|
+
* - The recording is currently running and cannot be reconfigured unless paused.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const options: LaunchRecordingOptions = {
|
|
46
|
+
* updateIsRecordingModalVisible: (visible) => { /* update visibility logic *\/ },
|
|
47
|
+
* isRecordingModalVisible: false,
|
|
48
|
+
* showAlert: (alert) => { /* show alert logic *\/ },
|
|
49
|
+
* stopLaunchRecord: false,
|
|
50
|
+
* canLaunchRecord: true,
|
|
51
|
+
* recordingAudioSupport: true,
|
|
52
|
+
* recordingVideoSupport: true,
|
|
53
|
+
* updateCanRecord: (canRecord) => { /* update record capability *\/ },
|
|
54
|
+
* updateClearedToRecord: (cleared) => { /* update cleared status *\/ },
|
|
55
|
+
* recordStarted: false,
|
|
56
|
+
* recordPaused: false,
|
|
57
|
+
* localUIMode: false,
|
|
58
|
+
* };
|
|
59
|
+
* launchRecording(options);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
19
62
|
export declare class LaunchRecording {
|
|
20
63
|
/**
|
|
21
64
|
* Launches the recording process based on various conditions and updates the UI accordingly.
|
|
@@ -7,6 +7,33 @@ export interface RecordPauseTimerOptions {
|
|
|
7
7
|
showAlert?: ShowAlert;
|
|
8
8
|
}
|
|
9
9
|
export type RecordPauseTimerType = (options: RecordPauseTimerOptions) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Controls the pause and resume functionality of a recording timer.
|
|
12
|
+
*
|
|
13
|
+
* @param {RecordPauseTimerOptions} options - The options for controlling the timer.
|
|
14
|
+
* @param {boolean} [options.stop=false] - Indicates whether to stop the timer.
|
|
15
|
+
* @param {boolean} options.isTimerRunning - Indicates if the timer is currently running.
|
|
16
|
+
* @param {boolean} options.canPauseResume - Indicates if the timer can be paused or resumed.
|
|
17
|
+
* @param {Function} [options.showAlert] - Optional function to show an alert message.
|
|
18
|
+
* @returns {boolean} - Returns true if the timer can be paused or resumed, otherwise false.
|
|
19
|
+
*
|
|
20
|
+
* @throws Will show an alert message if:
|
|
21
|
+
* - The timer cannot be stopped, paused, or resumed due to not meeting the required time condition.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const options: RecordPauseTimerOptions = {
|
|
26
|
+
* stop: false,
|
|
27
|
+
* isTimerRunning: true,
|
|
28
|
+
* canPauseResume: true,
|
|
29
|
+
* showAlert: (alert) => { },
|
|
30
|
+
* };
|
|
31
|
+
* const canPause = recordPauseTimer(options);
|
|
32
|
+
* if (canPause) {
|
|
33
|
+
* // proceed with pausing or resuming the recording
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
10
37
|
export declare class RecordPauseTimer {
|
|
11
38
|
/**
|
|
12
39
|
* Controls the pause and resume functionality of a recording timer.
|
|
@@ -19,6 +19,50 @@ export interface RecordResumeTimerOptions {
|
|
|
19
19
|
parameters: RecordResumeTimerParameters;
|
|
20
20
|
}
|
|
21
21
|
export type RecordResumeTimerType = (options: RecordResumeTimerOptions) => Promise<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Resumes the recording timer if it is not already running and can be paused/resumed.
|
|
24
|
+
*
|
|
25
|
+
* @param {RecordResumeTimerOptions} options - The options for resuming the recording timer.
|
|
26
|
+
* @param {Object} options.parameters - The parameters for the recording timer.
|
|
27
|
+
* @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
28
|
+
* @param {boolean} options.parameters.isTimerRunning - Indicates if the timer is currently running.
|
|
29
|
+
* @param {boolean} options.parameters.canPauseResume - Indicates if the timer can be paused/resumed.
|
|
30
|
+
* @param {number} options.parameters.recordElapsedTime - The elapsed recording time in seconds.
|
|
31
|
+
* @param {number} options.parameters.recordStartTime - The start time of the recording.
|
|
32
|
+
* @param {NodeJS.Timeout | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
|
|
33
|
+
* @param {Function} options.parameters.showAlert - Function to show an alert message.
|
|
34
|
+
* @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
|
|
35
|
+
* @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
|
|
36
|
+
* @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running status.
|
|
37
|
+
* @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume status.
|
|
38
|
+
*
|
|
39
|
+
* @returns {Promise<boolean>} - Returns a promise that resolves to true if the timer was successfully resumed, otherwise false.
|
|
40
|
+
*
|
|
41
|
+
* @throws Will show an alert if the timer cannot be resumed due to conditions not being met.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const options: RecordResumeTimerOptions = {
|
|
46
|
+
* parameters: {
|
|
47
|
+
* isTimerRunning: false,
|
|
48
|
+
* canPauseResume: true,
|
|
49
|
+
* recordElapsedTime: 10,
|
|
50
|
+
* recordStartTime: Date.now(),
|
|
51
|
+
* recordTimerInterval: null,
|
|
52
|
+
* showAlert: (alert) => { },
|
|
53
|
+
* updateRecordStartTime: (time) => { },
|
|
54
|
+
* updateRecordTimerInterval: (interval) => { },
|
|
55
|
+
* updateIsTimerRunning: (isRunning) => { },
|
|
56
|
+
* updateCanPauseResume: (canPause) => { },
|
|
57
|
+
* getUpdatedAllParams: () => ({ }),
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* const canResume = await recordResumeTimer(options);
|
|
61
|
+
* if (canResume) {
|
|
62
|
+
* // proceed with the resumed recording
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
22
66
|
export declare class RecordResumeTimer {
|
|
23
67
|
private RecordUpdateTimerService;
|
|
24
68
|
constructor(RecordUpdateTimerService: RecordUpdateTimer);
|
|
@@ -20,6 +20,51 @@ export interface RecordStartTimerOptions {
|
|
|
20
20
|
parameters: RecordStartTimerParameters;
|
|
21
21
|
}
|
|
22
22
|
export type RecordStartTimerType = (options: RecordStartTimerOptions) => Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Starts the recording timer and manages its state.
|
|
25
|
+
*
|
|
26
|
+
* @param {RecordStartTimerOptions} options - The options for starting the recording timer.
|
|
27
|
+
* @param {Object} options.parameters - The parameters for the recording timer.
|
|
28
|
+
* @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
29
|
+
* @param {number} options.parameters.recordStartTime - The start time of the recording.
|
|
30
|
+
* @param {NodeJS.Timeout | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
|
|
31
|
+
* @param {boolean} options.parameters.isTimerRunning - Flag indicating if the timer is currently running.
|
|
32
|
+
* @param {boolean} options.parameters.canPauseResume - Flag indicating if pause/resume actions are enabled.
|
|
33
|
+
* @param {number} options.parameters.recordChangeSeconds - The time after which pause/resume actions are enabled.
|
|
34
|
+
* @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
|
|
35
|
+
* @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
|
|
36
|
+
* @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running state.
|
|
37
|
+
* @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume state.
|
|
38
|
+
*
|
|
39
|
+
* @returns {Promise<void>} A promise that resolves when the timer is started.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This function initializes the recording start time and sets up an interval to update the timer every second.
|
|
43
|
+
* It also manages the state of the timer, including enabling and disabling pause/resume actions.
|
|
44
|
+
* The timer is stopped if the recording is paused, stopped, or if the room name is invalid.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const options: RecordStartTimerOptions = {
|
|
49
|
+
* parameters: {
|
|
50
|
+
* recordStartTime: Date.now(),
|
|
51
|
+
* recordTimerInterval: null,
|
|
52
|
+
* isTimerRunning: false,
|
|
53
|
+
* canPauseResume: false,
|
|
54
|
+
* recordChangeSeconds: 15,
|
|
55
|
+
* recordPaused: false,
|
|
56
|
+
* recordStopped: false,
|
|
57
|
+
* roomName: 'room1',
|
|
58
|
+
* updateRecordStartTime: (time) => { },
|
|
59
|
+
* updateRecordTimerInterval: (interval) => { },
|
|
60
|
+
* updateIsTimerRunning: (isRunning) => { },
|
|
61
|
+
* updateCanPauseResume: (canPause) => {},
|
|
62
|
+
* getUpdatedAllParams: () => { },
|
|
63
|
+
* },
|
|
64
|
+
* };
|
|
65
|
+
* await recordStartTimer(options);
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
23
68
|
export declare class RecordStartTimer {
|
|
24
69
|
private RecordUpdateTimerService;
|
|
25
70
|
constructor(RecordUpdateTimerService: RecordUpdateTimer);
|
|
@@ -6,6 +6,38 @@ export interface RecordUpdateTimerOptions {
|
|
|
6
6
|
updateRecordingProgressTime: (formattedTime: string) => void;
|
|
7
7
|
}
|
|
8
8
|
export type RecordUpdateTimerType = (options: RecordUpdateTimerOptions) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Updates the recording timer and progress time.
|
|
11
|
+
* @function
|
|
12
|
+
* @param {RecordUpdateTimerOptions} options - The options object containing necessary variables and functions.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Updates the recording timer by calculating the elapsed time since the recording started
|
|
16
|
+
* and formatting it in HH:MM:SS format.
|
|
17
|
+
*
|
|
18
|
+
* @param {Object} options - The options object.
|
|
19
|
+
* @param {number} options.recordElapsedTime - The elapsed recording time in seconds.
|
|
20
|
+
* @param {number} options.recordStartTime - The timestamp when the recording started.
|
|
21
|
+
* @param {Function} options.updateRecordElapsedTime - Callback to update the elapsed recording time.
|
|
22
|
+
* @param {Function} options.updateRecordingProgressTime - Callback to update the formatted recording time.
|
|
23
|
+
* @returns {void}
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This function calculates the elapsed time since the recording started and formats it into
|
|
27
|
+
* a string in HH:MM:SS format. It updates both the elapsed time in seconds and the formatted
|
|
28
|
+
* time via the provided callback functions.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const options: RecordUpdateTimerOptions = {
|
|
33
|
+
* recordElapsedTime: 0,
|
|
34
|
+
* recordStartTime: Date.now(),
|
|
35
|
+
* updateRecordElapsedTime: (elapsedTime) => { console.log(`Elapsed Time: ${elapsedTime} seconds`); },
|
|
36
|
+
* updateRecordingProgressTime: (formattedTime) => { console.log(`Formatted Time: ${formattedTime}`); },
|
|
37
|
+
* };
|
|
38
|
+
* recordUpdateTimer(options);
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
9
41
|
export declare class RecordUpdateTimer {
|
|
10
42
|
/**
|
|
11
43
|
* Updates the recording timer and progress time.
|
|
@@ -7,6 +7,7 @@ export interface StartRecordingParameters extends CaptureCanvasStreamParameters,
|
|
|
7
7
|
roomName: string;
|
|
8
8
|
userRecordingParams: UserRecordingParams;
|
|
9
9
|
socket: Socket;
|
|
10
|
+
localSocket?: Socket;
|
|
10
11
|
updateIsRecordingModalVisible: (visible: boolean) => void;
|
|
11
12
|
confirmedToRecord: boolean;
|
|
12
13
|
showAlert?: ShowAlert;
|
|
@@ -38,6 +39,57 @@ export interface StartRecordingOptions {
|
|
|
38
39
|
parameters: StartRecordingParameters;
|
|
39
40
|
}
|
|
40
41
|
export type StartRecordingType = (options: StartRecordingOptions) => Promise<boolean | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Starts the recording process based on the provided parameters.
|
|
44
|
+
*
|
|
45
|
+
* @param {StartRecordingOptions} options - The options for starting the recording.
|
|
46
|
+
* @param {object} options.parameters - The parameters required for starting the recording.
|
|
47
|
+
* @param {string} options.parameters.roomName - The name of the room where recording is to be started.
|
|
48
|
+
* @param {object} options.parameters.userRecordingParams - User-specific recording parameters.
|
|
49
|
+
* @param {object} options.parameters.socket - The socket instance for communication.
|
|
50
|
+
* @param {object} options.parameters.localSocket - The local socket instance for communication.
|
|
51
|
+
* @param {function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
|
|
52
|
+
* @param {boolean} options.parameters.confirmedToRecord - Flag indicating if the user has confirmed to record.
|
|
53
|
+
* @param {function} options.parameters.showAlert - Function to show alerts.
|
|
54
|
+
* @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
|
|
55
|
+
* @param {boolean} options.parameters.videoAlreadyOn - Flag indicating if the video is already on.
|
|
56
|
+
* @param {boolean} options.parameters.audioAlreadyOn - Flag indicating if the audio is already on.
|
|
57
|
+
* @param {boolean} options.parameters.recordStarted - Flag indicating if the recording has started.
|
|
58
|
+
* @param {boolean} options.parameters.recordPaused - Flag indicating if the recording is paused.
|
|
59
|
+
* @param {boolean} options.parameters.recordResumed - Flag indicating if the recording is resumed.
|
|
60
|
+
* @param {boolean} options.parameters.recordStopped - Flag indicating if the recording is stopped.
|
|
61
|
+
* @param {boolean} options.parameters.startReport - Flag indicating if the start report is active.
|
|
62
|
+
* @param {boolean} options.parameters.endReport - Flag indicating if the end report is active.
|
|
63
|
+
* @param {boolean} options.parameters.canRecord - Flag indicating if recording is allowed.
|
|
64
|
+
* @param {function} options.parameters.updateClearedToRecord - Function to update the cleared to record status.
|
|
65
|
+
* @param {function} options.parameters.updateRecordStarted - Function to update the record started status.
|
|
66
|
+
* @param {function} options.parameters.updateRecordPaused - Function to update the record paused status.
|
|
67
|
+
* @param {function} options.parameters.updateRecordResumed - Function to update the record resumed status.
|
|
68
|
+
* @param {function} options.parameters.updateStartReport - Function to update the start report status.
|
|
69
|
+
* @param {function} options.parameters.updateEndReport - Function to update the end report status.
|
|
70
|
+
* @param {function} options.parameters.updateCanRecord - Function to update the can record status.
|
|
71
|
+
* @param {boolean} options.parameters.whiteboardStarted - Flag indicating if the whiteboard has started.
|
|
72
|
+
* @param {boolean} options.parameters.whiteboardEnded - Flag indicating if the whiteboard has ended.
|
|
73
|
+
* @param {function} options.parameters.rePort - Function to report the recording status.
|
|
74
|
+
* @param {function} options.parameters.captureCanvasStream - Function to capture the canvas stream.
|
|
75
|
+
*
|
|
76
|
+
* @returns {Promise<boolean | undefined>} - A promise that resolves to a boolean indicating if the recording attempt was successful, or undefined if not applicable.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* This method checks various conditions, such as whether the user has confirmed recording and whether audio or video is already on,
|
|
80
|
+
* before starting the recording. It updates the recording state, manages socket communication, and handles whiteboard functionality if applicable.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const options: StartRecordingOptions = { parameters: someParameters };
|
|
85
|
+
* const result = await startRecording(options);
|
|
86
|
+
* if (result) {
|
|
87
|
+
* console.log('Recording started successfully.');
|
|
88
|
+
* } else {
|
|
89
|
+
* console.log('Failed to start recording.');
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
41
93
|
export declare class StartRecording {
|
|
42
94
|
private RecordStartTimerService;
|
|
43
95
|
private RecordResumeTimerService;
|
|
@@ -50,6 +102,7 @@ export declare class StartRecording {
|
|
|
50
102
|
* @param {string} options.parameters.roomName - The name of the room where recording is to be started.
|
|
51
103
|
* @param {object} options.parameters.userRecordingParams - User-specific recording parameters.
|
|
52
104
|
* @param {object} options.parameters.socket - The socket instance for communication.
|
|
105
|
+
* @param {object} options.parameters.localSocket - The local socket instance for communication.
|
|
53
106
|
* @param {function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
|
|
54
107
|
* @param {boolean} options.parameters.confirmedToRecord - Flag indicating if the user has confirmed to record.
|
|
55
108
|
* @param {function} options.parameters.showAlert - Function to show alerts.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { RecordPauseTimer } from './record-pause-timer.service';
|
|
2
2
|
import { ShowAlert } from '../../@types/types';
|
|
3
|
+
import { Socket } from 'socket.io-client';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface StopRecordingParameters {
|
|
5
6
|
roomName: string;
|
|
6
|
-
socket:
|
|
7
|
+
socket: Socket;
|
|
8
|
+
localSocket?: Socket;
|
|
7
9
|
showAlert?: ShowAlert;
|
|
8
10
|
startReport: boolean;
|
|
9
11
|
endReport: boolean;
|
|
@@ -28,6 +30,45 @@ export interface StopRecordingOptions {
|
|
|
28
30
|
parameters: StopRecordingParameters;
|
|
29
31
|
}
|
|
30
32
|
export type StopRecordingType = (options: StopRecordingOptions) => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Stops the recording process based on the provided parameters.
|
|
35
|
+
*
|
|
36
|
+
* @param {StopRecordingOptions} options - The options for stopping the recording.
|
|
37
|
+
* @param {Object} options.parameters - The parameters required for stopping the recording.
|
|
38
|
+
* @param {string} options.parameters.roomName - The name of the room where the recording is being stopped.
|
|
39
|
+
* @param {Socket} options.parameters.socket - The socket instance for communication.
|
|
40
|
+
* @param {Socket} [options.parameters.localSocket] - The local socket instance for communication.
|
|
41
|
+
* @param {Function} options.parameters.showAlert - Function to show alerts.
|
|
42
|
+
* @param {boolean} options.parameters.startReport - Flag indicating if the start report is active.
|
|
43
|
+
* @param {boolean} options.parameters.endReport - Flag indicating if the end report is active.
|
|
44
|
+
* @param {boolean} options.parameters.recordStarted - Flag indicating if the recording has started.
|
|
45
|
+
* @param {boolean} options.parameters.recordPaused - Flag indicating if the recording is paused.
|
|
46
|
+
* @param {boolean} options.parameters.recordStopped - Flag indicating if the recording is stopped.
|
|
47
|
+
* @param {Function} options.parameters.updateRecordPaused - Function to update the record paused status.
|
|
48
|
+
* @param {Function} options.parameters.updateRecordStopped - Function to update the record stopped status.
|
|
49
|
+
* @param {Function} options.parameters.updateStartReport - Function to update the start report status.
|
|
50
|
+
* @param {Function} options.parameters.updateEndReport - Function to update the end report status.
|
|
51
|
+
* @param {Function} options.parameters.updateShowRecordButtons - Function to update the visibility of recording buttons.
|
|
52
|
+
* @param {boolean} options.parameters.whiteboardStarted - Flag indicating if the whiteboard has started.
|
|
53
|
+
* @param {boolean} options.parameters.whiteboardEnded - Flag indicating if the whiteboard has ended.
|
|
54
|
+
* @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
|
|
55
|
+
* @param {Function} options.parameters.captureCanvasStream - Function to capture the canvas stream.
|
|
56
|
+
*
|
|
57
|
+
* @returns {Promise<void>} - A promise that resolves when the recording is stopped.
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* This method checks if the recording has started and is not already stopped.
|
|
61
|
+
* It pauses the timer and emits a stop recording event via socket communication.
|
|
62
|
+
* If successful, it updates the recording state and alerts the user.
|
|
63
|
+
* Additionally, if the whiteboard feature is active, it captures the canvas stream.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const options: StopRecordingOptions = { parameters: someParameters };
|
|
68
|
+
* await stopRecording(options);
|
|
69
|
+
* console.log('Recording stopped successfully.');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
31
72
|
export declare class StopRecording {
|
|
32
73
|
private RecordPauseTimerService;
|
|
33
74
|
constructor(RecordPauseTimerService: RecordPauseTimer);
|
|
@@ -9,6 +9,7 @@ export interface UpdateRecordingParameters extends RecordResumeTimerParameters,
|
|
|
9
9
|
roomName: string;
|
|
10
10
|
userRecordingParams: UserRecordingParams;
|
|
11
11
|
socket: Socket;
|
|
12
|
+
localSocket?: Socket;
|
|
12
13
|
updateIsRecordingModalVisible: (visible: boolean) => void;
|
|
13
14
|
confirmedToRecord: boolean;
|
|
14
15
|
showAlert?: ShowAlert;
|
|
@@ -41,6 +42,55 @@ export interface UpdateRecordingOptions {
|
|
|
41
42
|
parameters: UpdateRecordingParameters;
|
|
42
43
|
}
|
|
43
44
|
export type UpdateRecordingType = (options: UpdateRecordingOptions) => Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Updates the recording state based on the provided parameters.
|
|
47
|
+
*
|
|
48
|
+
* @param {UpdateRecordingOptions} options - The options for updating the recording state.
|
|
49
|
+
* @param {Object} options.parameters - The parameters required for updating the recording state.
|
|
50
|
+
* @param {string} options.parameters.roomName - The name of the room where the recording is taking place.
|
|
51
|
+
* @param {UserRecordingParams} options.parameters.userRecordingParams - User-specific recording parameters.
|
|
52
|
+
* @param {Socket} options.parameters.socket - The socket instance for communication.
|
|
53
|
+
* @param {Socket} [options.parameters.localSocket] - The local socket instance for communication.
|
|
54
|
+
* @param {Function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
|
|
55
|
+
* @param {boolean} options.parameters.confirmedToRecord - Indicates if the user has confirmed to start recording.
|
|
56
|
+
* @param {Function} options.parameters.showAlert - Function to show alerts.
|
|
57
|
+
* @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
|
|
58
|
+
* @param {boolean} options.parameters.videoAlreadyOn - Indicates if the video is already turned on.
|
|
59
|
+
* @param {boolean} options.parameters.audioAlreadyOn - Indicates if the audio is already turned on.
|
|
60
|
+
* @param {boolean} options.parameters.recordStarted - Indicates if the recording has started.
|
|
61
|
+
* @param {boolean} options.parameters.recordPaused - Indicates if the recording is paused.
|
|
62
|
+
* @param {boolean} options.parameters.recordResumed - Indicates if the recording has resumed.
|
|
63
|
+
* @param {boolean} options.parameters.recordStopped - Indicates if the recording has stopped.
|
|
64
|
+
* @param {number} options.parameters.recordChangeSeconds - The interval in seconds for changing the recording state.
|
|
65
|
+
* @param {number} options.parameters.pauseRecordCount - The count of pauses during the recording.
|
|
66
|
+
* @param {boolean} options.parameters.startReport - Indicates if the start report is active.
|
|
67
|
+
* @param {boolean} options.parameters.endReport - Indicates if the end report is active.
|
|
68
|
+
* @param {boolean} options.parameters.canRecord - Indicates if recording is allowed.
|
|
69
|
+
* @param {boolean} options.parameters.canPauseResume - Indicates if pausing and resuming the recording is allowed.
|
|
70
|
+
* @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume state.
|
|
71
|
+
* @param {Function} options.parameters.updatePauseRecordCount - Function to update the pause record count.
|
|
72
|
+
* @param {Function} options.parameters.updateClearedToRecord - Function to update the cleared-to-record state.
|
|
73
|
+
* @param {Function} options.parameters.updateRecordPaused - Function to update the record paused state.
|
|
74
|
+
* @param {Function} options.parameters.updateRecordResumed - Function to update the record resumed state.
|
|
75
|
+
* @param {Function} options.parameters.updateStartReport - Function to update the start report state.
|
|
76
|
+
* @param {Function} options.parameters.updateEndReport - Function to update the end report state.
|
|
77
|
+
* @param {Function} options.parameters.updateCanRecord - Function to update the can record state.
|
|
78
|
+
* @param {Function} options.parameters.rePort - Function to handle reporting.
|
|
79
|
+
*
|
|
80
|
+
* @returns {Promise<void>} A promise that resolves when the recording state has been updated.
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* This method handles the recording state updates, including starting, pausing, resuming, and stopping the recording.
|
|
84
|
+
* It also performs necessary checks to ensure that the user can perform the requested actions based on their current state.
|
|
85
|
+
* Alerts are displayed for any issues encountered during the process.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const options: UpdateRecordingOptions = { parameters: someParameters };
|
|
90
|
+
* await updateRecording(options);
|
|
91
|
+
* console.log('Recording state updated successfully.');
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
44
94
|
export declare class UpdateRecording {
|
|
45
95
|
private CheckPauseStateService;
|
|
46
96
|
private CheckResumeStateService;
|
|
@@ -56,6 +106,7 @@ export declare class UpdateRecording {
|
|
|
56
106
|
* @property {string} roomName - The name of the room where the recording is taking place.
|
|
57
107
|
* @property {any} userRecordingParams - Parameters related to the user's recording settings.
|
|
58
108
|
* @property {any} socket - The socket connection used for communication.
|
|
109
|
+
* @property {any} localSocket - The local socket connection used for communication.
|
|
59
110
|
* @property {Function} updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
|
|
60
111
|
* @property {boolean} confirmedToRecord - Indicates if the user has confirmed to start recording.
|
|
61
112
|
* @property {Function} showAlert - Function to show alert messages.
|
|
@@ -4,6 +4,31 @@ export interface LaunchRequestsOptions {
|
|
|
4
4
|
isRequestsModalVisible: boolean;
|
|
5
5
|
}
|
|
6
6
|
export type LaunchRequestsType = (options: LaunchRequestsOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Toggles the visibility state of the requests modal.
|
|
9
|
+
*
|
|
10
|
+
* @param {LaunchRequestsOptions} options - The options for launching requests.
|
|
11
|
+
* @param {Function} options.updateIsRequestsModalVisible - Function to update the visibility state of the requests modal.
|
|
12
|
+
* @param {boolean} options.isRequestsModalVisible - Current visibility state of the requests modal.
|
|
13
|
+
* @returns {void}
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* This method is used to open or close the requests modal by toggling its visibility state.
|
|
17
|
+
* It takes the current visibility state as input and updates it accordingly.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const options: LaunchRequestsOptions = {
|
|
22
|
+
* updateIsRequestsModalVisible: (isVisible) => {
|
|
23
|
+
* console.log('Requests modal visibility:', isVisible);
|
|
24
|
+
* },
|
|
25
|
+
* isRequestsModalVisible: false,
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* const launchRequestsService = new LaunchRequests();
|
|
29
|
+
* launchRequestsService.launchRequests(options);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
7
32
|
export declare class LaunchRequests {
|
|
8
33
|
/**
|
|
9
34
|
* Toggles the visibility state of the requests modal.
|
|
@@ -10,6 +10,45 @@ export interface RespondToRequestsOptions {
|
|
|
10
10
|
roomName: string;
|
|
11
11
|
}
|
|
12
12
|
export type RespondToRequestsType = (options: RespondToRequestsOptions) => Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Responds to incoming requests by updating the request list and emitting a response to the server.
|
|
15
|
+
*
|
|
16
|
+
* @param {RespondToRequestsOptions} options - The options for responding to requests.
|
|
17
|
+
* @param {Socket} options.socket - The socket instance used to emit the response.
|
|
18
|
+
* @param {Request} options.request - The request object containing details of the request.
|
|
19
|
+
* @param {Function} options.updateRequestList - The function to update the request list.
|
|
20
|
+
* @param {Request[]} options.requestList - The current list of requests.
|
|
21
|
+
* @param {string} options.action - The action to be taken on the request.
|
|
22
|
+
* @param {string} options.roomName - The name of the room to which the response should be emitted.
|
|
23
|
+
*
|
|
24
|
+
* @returns {Promise<void>} A promise that resolves when the response has been emitted.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* This method filters out the request that is being responded to from the current request list,
|
|
28
|
+
* updates the list, and emits the response to the server using the provided socket.
|
|
29
|
+
* It ensures that the state of the requests is accurately reflected in the application.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const options: RespondToRequestsOptions = {
|
|
34
|
+
* socket: socketInstance,
|
|
35
|
+
* request: {
|
|
36
|
+
* id: 'request_id',
|
|
37
|
+
* name: 'Request Name',
|
|
38
|
+
* icon: 'request_icon'
|
|
39
|
+
* },
|
|
40
|
+
* updateRequestList: (newRequestList) => {
|
|
41
|
+
* console.log('Updated request list:', newRequestList);
|
|
42
|
+
* },
|
|
43
|
+
* requestList: currentRequestList,
|
|
44
|
+
* action: 'accept',
|
|
45
|
+
* roomName: 'Room 1',
|
|
46
|
+
* };
|
|
47
|
+
*
|
|
48
|
+
* const respondToRequestsService = new RespondToRequests();
|
|
49
|
+
* await respondToRequestsService.respondToRequests(options);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
13
52
|
export declare class RespondToRequests {
|
|
14
53
|
/**
|
|
15
54
|
* Responds to incoming requests by updating the request list and emitting a response to the server.
|
|
@@ -4,6 +4,31 @@ export interface LaunchSettingsOptions {
|
|
|
4
4
|
isSettingsModalVisible: boolean;
|
|
5
5
|
}
|
|
6
6
|
export type LaunchSettingsType = (options: LaunchSettingsOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Toggles the visibility state of the settings modal.
|
|
9
|
+
*
|
|
10
|
+
* @param {LaunchSettingsOptions} options - The options for launching settings.
|
|
11
|
+
* @param {Function} options.updateIsSettingsModalVisible - Function to update the visibility state of the settings modal.
|
|
12
|
+
* @param {boolean} options.isSettingsModalVisible - Current visibility state of the settings modal.
|
|
13
|
+
* @returns {void}
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* This method toggles the current visibility state of the settings modal.
|
|
17
|
+
* If the modal is currently visible, it will be hidden, and vice versa.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const options: LaunchSettingsOptions = {
|
|
22
|
+
* updateIsSettingsModalVisible: (isVisible) => {
|
|
23
|
+
* console.log('Settings modal visibility:', isVisible);
|
|
24
|
+
* },
|
|
25
|
+
* isSettingsModalVisible: false,
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* const launchSettingsService = new LaunchSettings();
|
|
29
|
+
* launchSettingsService.launchSettings(options);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
7
32
|
export declare class LaunchSettings {
|
|
8
33
|
/**
|
|
9
34
|
* Toggles the visibility state of the settings modal.
|