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
|
@@ -64,73 +64,138 @@ export interface ChangeVidsOptions {
|
|
|
64
64
|
parameters: ChangeVidsParameters;
|
|
65
65
|
}
|
|
66
66
|
export type ChangeVidsType = (options: ChangeVidsOptions) => Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Asynchronously changes the video streams based on the provided options.
|
|
69
|
+
*
|
|
70
|
+
* @param {Object} options - The options for changing video streams.
|
|
71
|
+
* @param {boolean} [options.screenChanged=false] - Indicates if the screen has changed.
|
|
72
|
+
* @param {ChangeVidsOptions} options.parameters - The parameters for changing video streams.
|
|
73
|
+
* @returns {Promise<void>} A promise that resolves when the video streams have been changed.
|
|
74
|
+
*
|
|
75
|
+
* @typedef {Object} ChangeVidsOptions
|
|
76
|
+
* @property {Function} getUpdatedAllParams - Function to get updated parameters.
|
|
77
|
+
* @property {Array} allVideoStreams - Array of all video streams.
|
|
78
|
+
* @property {Array} p_activeNames - Array of active participant names.
|
|
79
|
+
* @property {Array} activeNames - Array of active names.
|
|
80
|
+
* @property {Array} dispActiveNames - Array of displayed active names.
|
|
81
|
+
* @property {boolean} shareScreenStarted - Indicates if screen sharing has started.
|
|
82
|
+
* @property {boolean} shared - Indicates if the screen is shared.
|
|
83
|
+
* @property {Array} newLimitedStreams - Array of new limited streams.
|
|
84
|
+
* @property {Array} non_alVideoStreams - Array of non-al video streams.
|
|
85
|
+
* @property {Array} ref_participants - Array of reference participants.
|
|
86
|
+
* @property {Array} participants - Array of participants.
|
|
87
|
+
* @property {string} eventType - Type of the event.
|
|
88
|
+
* @property {string} islevel - Level of the participant.
|
|
89
|
+
* @property {string} member - Name of the member.
|
|
90
|
+
* @property {boolean} sortAudioLoudness - Indicates if audio loudness should be sorted.
|
|
91
|
+
* @property {Array} audioDecibels - Array of audio decibels.
|
|
92
|
+
* @property {Array} mixed_alVideoStreams - Array of mixed al video streams.
|
|
93
|
+
* @property {Array} non_alVideoStreams_muted - Array of muted non-al video streams.
|
|
94
|
+
* @property {string} remoteProducerId - ID of the remote producer.
|
|
95
|
+
* @property {Object} localStreamVideo - Local stream video object.
|
|
96
|
+
* @property {Array} oldAllStreams - Array of old all streams.
|
|
97
|
+
* @property {number} screenPageLimit - Limit of streams per screen page.
|
|
98
|
+
* @property {string} meetingDisplayType - Type of meeting display.
|
|
99
|
+
* @property {boolean} meetingVideoOptimized - Indicates if meeting video is optimized.
|
|
100
|
+
* @property {boolean} recordingVideoOptimized - Indicates if recording video is optimized.
|
|
101
|
+
* @property {string} recordingDisplayType - Type of recording display.
|
|
102
|
+
* @property {Array} paginatedStreams - Array of paginated streams.
|
|
103
|
+
* @property {number} itemPageLimit - Limit of items per page.
|
|
104
|
+
* @property {boolean} doPaginate - Indicates if pagination should be done.
|
|
105
|
+
* @property {boolean} prevDoPaginate - Indicates if pagination was previously done.
|
|
106
|
+
* @property {number} currentUserPage - Current user page number.
|
|
107
|
+
* @property {Array} breakoutRooms - Array of breakout rooms.
|
|
108
|
+
* @property {number} hostNewRoom - Index of the new room for the host.
|
|
109
|
+
* @property {boolean} breakOutRoomStarted - Indicates if breakout room has started.
|
|
110
|
+
* @property {boolean} breakOutRoomEnded - Indicates if breakout room has ended.
|
|
111
|
+
* @property {Object} virtualStream - Virtual stream object.
|
|
112
|
+
* @property {number} mainRoomsLength - Length of main rooms.
|
|
113
|
+
* @property {string} memberRoom - Room of the member.
|
|
114
|
+
* @property {Function} updateP_activeNames - Function to update active participant names.
|
|
115
|
+
* @property {Function} updateActiveNames - Function to update active names.
|
|
116
|
+
* @property {Function} updateDispActiveNames - Function to update displayed active names.
|
|
117
|
+
* @property {Function} updateNewLimitedStreams - Function to update new limited streams.
|
|
118
|
+
* @property {Function} updateNon_alVideoStreams - Function to update non-al video streams.
|
|
119
|
+
* @property {Function} updateRef_participants - Function to update reference participants.
|
|
120
|
+
* @property {Function} updateSortAudioLoudness - Function to update audio loudness sorting.
|
|
121
|
+
* @property {Function} updateMixed_alVideoStreams - Function to update mixed al video streams.
|
|
122
|
+
* @property {Function} updateNon_alVideoStreams_muted - Function to update muted non-al video streams.
|
|
123
|
+
* @property {Function} updatePaginatedStreams - Function to update paginated streams.
|
|
124
|
+
* @property {Function} updateDoPaginate - Function to update pagination status.
|
|
125
|
+
* @property {Function} updatePrevDoPaginate - Function to update previous pagination status.
|
|
126
|
+
* @property {Function} updateCurrentUserPage - Function to update current user page.
|
|
127
|
+
* @property {Function} updateNumberPages - Function to update number of pages.
|
|
128
|
+
* @property {Function} updateMainRoomsLength - Function to update main rooms length.
|
|
129
|
+
* @property {Function} updateMemberRoom - Function to update member room.
|
|
130
|
+
* @property {Function} mixStreams - Function to mix streams.
|
|
131
|
+
* @property {Function} dispStreams - Function to display streams.
|
|
132
|
+
*
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* await changeVidsService.changeVids({
|
|
137
|
+
* screenChanged: true,
|
|
138
|
+
* parameters: {
|
|
139
|
+
* allVideoStreams: [], // Your array of video streams
|
|
140
|
+
* p_activeNames: [], // Active participant names
|
|
141
|
+
* activeNames: [], // Names of active streams
|
|
142
|
+
* dispActiveNames: [], // Names of displayed active streams
|
|
143
|
+
* shareScreenStarted: false,
|
|
144
|
+
* shared: false,
|
|
145
|
+
* newLimitedStreams: [], // New limited streams
|
|
146
|
+
* non_alVideoStreams: [], // Non-audio video streams
|
|
147
|
+
* ref_participants: [], // Reference participants
|
|
148
|
+
* participants: [], // All participants
|
|
149
|
+
* eventType: 'conference', // Type of event
|
|
150
|
+
* islevel: '1', // Level of the participant
|
|
151
|
+
* member: 'John Doe', // Member's name
|
|
152
|
+
* sortAudioLoudness: true,
|
|
153
|
+
* audioDecibels: [], // Audio decibel levels
|
|
154
|
+
* mixed_alVideoStreams: [], // Mixed audio/video streams
|
|
155
|
+
* non_alVideoStreams_muted: [], // Muted non-audio video streams
|
|
156
|
+
* remoteProducerId: 'abc123',
|
|
157
|
+
* localStreamVideo: null, // Local video stream
|
|
158
|
+
* oldAllStreams: [], // Previous streams
|
|
159
|
+
* screenPageLimit: 4, // Limit of streams per screen
|
|
160
|
+
* meetingDisplayType: 'grid', // Type of display
|
|
161
|
+
* meetingVideoOptimized: true, // Video optimization status
|
|
162
|
+
* recordingVideoOptimized: false, // Recording optimization status
|
|
163
|
+
* recordingDisplayType: 'video', // Recording display type
|
|
164
|
+
* paginatedStreams: [], // Paginated streams
|
|
165
|
+
* itemPageLimit: 2, // Items per page limit
|
|
166
|
+
* doPaginate: true, // Pagination flag
|
|
167
|
+
* prevDoPaginate: false, // Previous pagination state
|
|
168
|
+
* currentUserPage: 1, // Current page number
|
|
169
|
+
* breakoutRooms: [], // Breakout room information
|
|
170
|
+
* hostNewRoom: 0, // Host room number
|
|
171
|
+
* breakOutRoomStarted: false, // Breakout room status
|
|
172
|
+
* breakOutRoomEnded: false, // Breakout room end status
|
|
173
|
+
* virtualStream: null, // Virtual stream
|
|
174
|
+
* mainRoomsLength: 3, // Number of main rooms
|
|
175
|
+
* memberRoom: 1, // Member's room number
|
|
176
|
+
* updateP_activeNames: (names) => {}, // Update function for active names
|
|
177
|
+
* updateActiveNames: (names) => {}, // Update function for all names
|
|
178
|
+
* updateDispActiveNames: (names) => {}, // Update function for displayed names
|
|
179
|
+
* updateNewLimitedStreams: (streams) => {}, // Update function for limited streams
|
|
180
|
+
* updateNon_alVideoStreams: (participants) => {}, // Update function for non-audio streams
|
|
181
|
+
* updateRef_participants: (participants) => {}, // Update function for reference participants
|
|
182
|
+
* updateSortAudioLoudness: (sort) => {}, // Update function for sorting audio
|
|
183
|
+
* updateMixed_alVideoStreams: (streams) => {}, // Update function for mixed streams
|
|
184
|
+
* updateNon_alVideoStreams_muted: (participants) => {}, // Update function for muted streams
|
|
185
|
+
* updatePaginatedStreams: (streams) => {}, // Update function for paginated streams
|
|
186
|
+
* updateDoPaginate: (paginate) => {}, // Update function for pagination
|
|
187
|
+
* updatePrevDoPaginate: (paginate) => {}, // Update function for previous pagination
|
|
188
|
+
* updateCurrentUserPage: (page) => {}, // Update function for current page
|
|
189
|
+
* updateNumberPages: (pages) => {}, // Update function for number of pages
|
|
190
|
+
* updateMainRoomsLength: (length) => {}, // Update function for main room length
|
|
191
|
+
* updateMemberRoom: (room) => {}, // Update function for member's room
|
|
192
|
+
* mixStreams: async ({ streams, displayType }) => {}, // Function to mix streams
|
|
193
|
+
* dispStreams: async ({ streams, displayType }) => {}, // Function to display streams
|
|
194
|
+
* },
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
67
198
|
export declare class ChangeVids {
|
|
68
|
-
/**
|
|
69
|
-
* Asynchronously changes the video streams based on the provided options.
|
|
70
|
-
*
|
|
71
|
-
* @param {Object} options - The options for changing video streams.
|
|
72
|
-
* @param {boolean} [options.screenChanged=false] - Indicates if the screen has changed.
|
|
73
|
-
* @param {ChangeVidsOptions} options.parameters - The parameters for changing video streams.
|
|
74
|
-
* @returns {Promise<void>} A promise that resolves when the video streams have been changed.
|
|
75
|
-
*
|
|
76
|
-
* @typedef {Object} ChangeVidsOptions
|
|
77
|
-
* @property {Function} getUpdatedAllParams - Function to get updated parameters.
|
|
78
|
-
* @property {Array} allVideoStreams - Array of all video streams.
|
|
79
|
-
* @property {Array} p_activeNames - Array of active participant names.
|
|
80
|
-
* @property {Array} activeNames - Array of active names.
|
|
81
|
-
* @property {Array} dispActiveNames - Array of displayed active names.
|
|
82
|
-
* @property {boolean} shareScreenStarted - Indicates if screen sharing has started.
|
|
83
|
-
* @property {boolean} shared - Indicates if the screen is shared.
|
|
84
|
-
* @property {Array} newLimitedStreams - Array of new limited streams.
|
|
85
|
-
* @property {Array} non_alVideoStreams - Array of non-al video streams.
|
|
86
|
-
* @property {Array} ref_participants - Array of reference participants.
|
|
87
|
-
* @property {Array} participants - Array of participants.
|
|
88
|
-
* @property {string} eventType - Type of the event.
|
|
89
|
-
* @property {string} islevel - Level of the participant.
|
|
90
|
-
* @property {string} member - Name of the member.
|
|
91
|
-
* @property {boolean} sortAudioLoudness - Indicates if audio loudness should be sorted.
|
|
92
|
-
* @property {Array} audioDecibels - Array of audio decibels.
|
|
93
|
-
* @property {Array} mixed_alVideoStreams - Array of mixed al video streams.
|
|
94
|
-
* @property {Array} non_alVideoStreams_muted - Array of muted non-al video streams.
|
|
95
|
-
* @property {string} remoteProducerId - ID of the remote producer.
|
|
96
|
-
* @property {Object} localStreamVideo - Local stream video object.
|
|
97
|
-
* @property {Array} oldAllStreams - Array of old all streams.
|
|
98
|
-
* @property {number} screenPageLimit - Limit of streams per screen page.
|
|
99
|
-
* @property {string} meetingDisplayType - Type of meeting display.
|
|
100
|
-
* @property {boolean} meetingVideoOptimized - Indicates if meeting video is optimized.
|
|
101
|
-
* @property {boolean} recordingVideoOptimized - Indicates if recording video is optimized.
|
|
102
|
-
* @property {string} recordingDisplayType - Type of recording display.
|
|
103
|
-
* @property {Array} paginatedStreams - Array of paginated streams.
|
|
104
|
-
* @property {number} itemPageLimit - Limit of items per page.
|
|
105
|
-
* @property {boolean} doPaginate - Indicates if pagination should be done.
|
|
106
|
-
* @property {boolean} prevDoPaginate - Indicates if pagination was previously done.
|
|
107
|
-
* @property {number} currentUserPage - Current user page number.
|
|
108
|
-
* @property {Array} breakoutRooms - Array of breakout rooms.
|
|
109
|
-
* @property {number} hostNewRoom - Index of the new room for the host.
|
|
110
|
-
* @property {boolean} breakOutRoomStarted - Indicates if breakout room has started.
|
|
111
|
-
* @property {boolean} breakOutRoomEnded - Indicates if breakout room has ended.
|
|
112
|
-
* @property {Object} virtualStream - Virtual stream object.
|
|
113
|
-
* @property {number} mainRoomsLength - Length of main rooms.
|
|
114
|
-
* @property {string} memberRoom - Room of the member.
|
|
115
|
-
* @property {Function} updateP_activeNames - Function to update active participant names.
|
|
116
|
-
* @property {Function} updateActiveNames - Function to update active names.
|
|
117
|
-
* @property {Function} updateDispActiveNames - Function to update displayed active names.
|
|
118
|
-
* @property {Function} updateNewLimitedStreams - Function to update new limited streams.
|
|
119
|
-
* @property {Function} updateNon_alVideoStreams - Function to update non-al video streams.
|
|
120
|
-
* @property {Function} updateRef_participants - Function to update reference participants.
|
|
121
|
-
* @property {Function} updateSortAudioLoudness - Function to update audio loudness sorting.
|
|
122
|
-
* @property {Function} updateMixed_alVideoStreams - Function to update mixed al video streams.
|
|
123
|
-
* @property {Function} updateNon_alVideoStreams_muted - Function to update muted non-al video streams.
|
|
124
|
-
* @property {Function} updatePaginatedStreams - Function to update paginated streams.
|
|
125
|
-
* @property {Function} updateDoPaginate - Function to update pagination status.
|
|
126
|
-
* @property {Function} updatePrevDoPaginate - Function to update previous pagination status.
|
|
127
|
-
* @property {Function} updateCurrentUserPage - Function to update current user page.
|
|
128
|
-
* @property {Function} updateNumberPages - Function to update number of pages.
|
|
129
|
-
* @property {Function} updateMainRoomsLength - Function to update main rooms length.
|
|
130
|
-
* @property {Function} updateMemberRoom - Function to update member room.
|
|
131
|
-
* @property {Function} mixStreams - Function to mix streams.
|
|
132
|
-
* @property {Function} dispStreams - Function to display streams.
|
|
133
|
-
*/
|
|
134
199
|
changeVids: ({ screenChanged, parameters }: ChangeVidsOptions) => Promise<void>;
|
|
135
200
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChangeVids, never>;
|
|
136
201
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChangeVids>;
|
|
@@ -5,25 +5,39 @@ export interface CheckGridOptions {
|
|
|
5
5
|
actives: number;
|
|
6
6
|
}
|
|
7
7
|
export type CheckGridType = (options: CheckGridOptions) => Promise<[boolean, number, number, number, number, number, number] | void>;
|
|
8
|
+
/**
|
|
9
|
+
* Checks the grid configuration and calculates various parameters based on the number of rows, columns, and active elements.
|
|
10
|
+
*
|
|
11
|
+
* @param {CheckGridOptions} options - The options for checking the grid.
|
|
12
|
+
* @param {number} options.rows - The number of rows in the grid.
|
|
13
|
+
* @param {number} options.cols - The number of columns in the grid.
|
|
14
|
+
* @param {number} options.actives - The number of active elements in the grid.
|
|
15
|
+
* @returns {Promise<[boolean, number, number, number, number, number, number] | void>} A promise that resolves to a tuple containing:
|
|
16
|
+
* - `removeAltGrid` (boolean): Indicates whether to remove the alternate grid.
|
|
17
|
+
* - `numtoadd` (number): The number of elements to add.
|
|
18
|
+
* - `numRows` (number): The number of rows.
|
|
19
|
+
* - `numCols` (number): The number of columns.
|
|
20
|
+
* - `remainingVideos` (number): The number of remaining videos.
|
|
21
|
+
* - `actualRows` (number): The actual number of rows.
|
|
22
|
+
* - `lastrowcols` (number): The number of columns in the last row.
|
|
23
|
+
*
|
|
24
|
+
* If an error occurs, it logs the error to the console.
|
|
25
|
+
*
|
|
26
|
+
* *
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const options = {
|
|
30
|
+
* rows: 3,
|
|
31
|
+
* cols: 4,
|
|
32
|
+
* actives: 10,
|
|
33
|
+
* };
|
|
34
|
+
*
|
|
35
|
+
* const result = await checkGridService.checkGrid(options);
|
|
36
|
+
* console.log(result);
|
|
37
|
+
* // Output could be: [false, 2, 3, 4, 2, 3, 2]
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
8
40
|
export declare class CheckGrid {
|
|
9
|
-
/**
|
|
10
|
-
* Checks the grid configuration and calculates various parameters based on the number of rows, columns, and active elements.
|
|
11
|
-
*
|
|
12
|
-
* @param {CheckGridOptions} options - The options for checking the grid.
|
|
13
|
-
* @param {number} options.rows - The number of rows in the grid.
|
|
14
|
-
* @param {number} options.cols - The number of columns in the grid.
|
|
15
|
-
* @param {number} options.actives - The number of active elements in the grid.
|
|
16
|
-
* @returns {Promise<[boolean, number, number, number, number, number, number] | void>} A promise that resolves to a tuple containing:
|
|
17
|
-
* - `removeAltGrid` (boolean): Indicates whether to remove the alternate grid.
|
|
18
|
-
* - `numtoadd` (number): The number of elements to add.
|
|
19
|
-
* - `numRows` (number): The number of rows.
|
|
20
|
-
* - `numCols` (number): The number of columns.
|
|
21
|
-
* - `remainingVideos` (number): The number of remaining videos.
|
|
22
|
-
* - `actualRows` (number): The actual number of rows.
|
|
23
|
-
* - `lastrowcols` (number): The number of columns in the last row.
|
|
24
|
-
*
|
|
25
|
-
* If an error occurs, it logs the error to the console.
|
|
26
|
-
*/
|
|
27
41
|
checkGrid({ rows, cols, actives, }: CheckGridOptions): Promise<[boolean, number, number, number, number, number, number] | void>;
|
|
28
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckGrid, never>;
|
|
29
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<CheckGrid>;
|
|
@@ -7,6 +7,31 @@ export interface CheckPermissionOptions {
|
|
|
7
7
|
permissionType: 'audioSetting' | 'videoSetting' | 'screenshareSetting' | 'chatSetting';
|
|
8
8
|
}
|
|
9
9
|
export type CheckPermissionType = (options: CheckPermissionOptions) => Promise<number>;
|
|
10
|
+
/**
|
|
11
|
+
* Checks the permission based on the provided settings.
|
|
12
|
+
*
|
|
13
|
+
* @param {CheckPermissionOptions} options - The options for checking permissions.
|
|
14
|
+
* @param {string} options.permissionType - The type of permission to check. Can be "audioSetting", "videoSetting", "screenshareSetting", or "chatSetting".
|
|
15
|
+
* @param {string} options.audioSetting - The setting for audio permission. Can be "allow", "approval", or other.
|
|
16
|
+
* @param {string} options.videoSetting - The setting for video permission. Can be "allow", "approval", or other.
|
|
17
|
+
* @param {string} options.screenshareSetting - The setting for screenshare permission. Can be "allow", "approval", or other.
|
|
18
|
+
* @param {string} options.chatSetting - The setting for chat permission. Can be "allow", "approval", or other.
|
|
19
|
+
* @returns {Promise<number>} - Returns 0 if the setting is "allow", 1 if the setting is "approval", and 2 for other settings or invalid permission types.
|
|
20
|
+
* @throws Will throw an error if an unexpected error occurs during the permission check.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const options = {
|
|
24
|
+
* permissionType: 'videoSetting',
|
|
25
|
+
* audioSetting: 'allow',
|
|
26
|
+
* videoSetting: 'approval',
|
|
27
|
+
* screenshareSetting: 'deny',
|
|
28
|
+
* chatSetting: 'allow',
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* const result = await checkPermissionService.checkPermission(options);
|
|
32
|
+
* console.log(result);
|
|
33
|
+
* // Output: 1 (since videoSetting is 'approval')
|
|
34
|
+
*/
|
|
10
35
|
export declare class CheckPermission {
|
|
11
36
|
/**
|
|
12
37
|
* Checks the permission based on the provided settings.
|
|
@@ -16,6 +16,41 @@ export interface CheckScreenShareOptions {
|
|
|
16
16
|
parameters: CheckScreenShareParameters;
|
|
17
17
|
}
|
|
18
18
|
export type CheckScreenShareType = (options: CheckScreenShareOptions) => Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.
|
|
21
|
+
*
|
|
22
|
+
* @param {CheckScreenShareOptions} options - The options for checking screen share.
|
|
23
|
+
* @param {Object} options.parameters - The parameters for screen sharing.
|
|
24
|
+
* @param {boolean} options.parameters.shared - Indicates if the screen is currently being shared.
|
|
25
|
+
* @param {Function} [options.parameters.showAlert] - Function to show alerts.
|
|
26
|
+
* @param {boolean} options.parameters.whiteboardStarted - Indicates if the whiteboard session has started.
|
|
27
|
+
* @param {boolean} options.parameters.whiteboardEnded - Indicates if the whiteboard session has ended.
|
|
28
|
+
* @param {boolean} options.parameters.breakOutRoomStarted - Indicates if the breakout room session has started.
|
|
29
|
+
* @param {boolean} options.parameters.breakOutRoomEnded - Indicates if the breakout room session has ended.
|
|
30
|
+
* @param {Function} options.parameters.stopShareScreen - Function to stop screen sharing.
|
|
31
|
+
* @param {Function} options.parameters.requestScreenShare - Function to request screen sharing.
|
|
32
|
+
*
|
|
33
|
+
* @returns {Promise<void>} A promise that resolves when the screen sharing status has been checked and the appropriate action has been taken.
|
|
34
|
+
*
|
|
35
|
+
* @throws Will log an error message if an error occurs during the process.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* const options = {
|
|
39
|
+
* parameters: {
|
|
40
|
+
* shared: false,
|
|
41
|
+
* whiteboardStarted: false,
|
|
42
|
+
* whiteboardEnded: false,
|
|
43
|
+
* breakOutRoomStarted: false,
|
|
44
|
+
* breakOutRoomEnded: false,
|
|
45
|
+
* stopShareScreen: async () => { /* Logic to stop screen sharing *\/ },
|
|
46
|
+
* requestScreenShare: async () => { /* Logic to request screen sharing *\/ },
|
|
47
|
+
* showAlert: (alert) => { console.log(alert.message); },
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
*
|
|
51
|
+
* await checkScreenShareService.checkScreenShare(options);
|
|
52
|
+
* // Output: Logic to request screen sharing will be executed.
|
|
53
|
+
*/
|
|
19
54
|
export declare class CheckScreenShare {
|
|
20
55
|
/**
|
|
21
56
|
* Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.
|
|
@@ -49,6 +49,108 @@ export interface CloseAndResizeOptions {
|
|
|
49
49
|
parameters: CloseAndResizeParameters;
|
|
50
50
|
}
|
|
51
51
|
export type CloseAndResizeType = (options: CloseAndResizeOptions) => Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Closes and resizes the video and audio elements based on the provided options.
|
|
54
|
+
*
|
|
55
|
+
* @param {CloseAndResizeOptions} options - The options for closing and resizing.
|
|
56
|
+
* @param {string} options.producerId - The ID of the producer.
|
|
57
|
+
* @param {string} options.kind - The kind of media (audio, video, screenshare, or screen).
|
|
58
|
+
* @param {object} options.parameters - The parameters for the operation.
|
|
59
|
+
* @param {function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
60
|
+
* @param {Array} options.parameters.allAudioStreams - Array of all audio streams.
|
|
61
|
+
* @param {Array} options.parameters.allVideoStreams - Array of all video streams.
|
|
62
|
+
* @param {Array} options.parameters.activeNames - Array of active participant names.
|
|
63
|
+
* @param {Array} options.parameters.participants - Array of participants.
|
|
64
|
+
* @param {Array} options.parameters.streamNames - Array of stream names.
|
|
65
|
+
* @param {string} options.parameters.recordingDisplayType - Type of recording display.
|
|
66
|
+
* @param {boolean} options.parameters.recordingVideoOptimized - Whether recording is video optimized.
|
|
67
|
+
* @param {string} options.parameters.adminIDStream - ID of the admin stream.
|
|
68
|
+
* @param {Array} options.parameters.newLimitedStreams - Array of new limited streams.
|
|
69
|
+
* @param {Array} options.parameters.newLimitedStreamsIDs - Array of new limited stream IDs.
|
|
70
|
+
* @param {Array} options.parameters.oldAllStreams - Array of old all streams.
|
|
71
|
+
* @param {boolean} options.parameters.shareScreenStarted - Whether screen sharing has started.
|
|
72
|
+
* @param {boolean} options.parameters.shared - Whether sharing is active.
|
|
73
|
+
* @param {string} options.parameters.meetingDisplayType - Type of meeting display.
|
|
74
|
+
* @param {boolean} options.parameters.defer_receive - Whether to defer receiving.
|
|
75
|
+
* @param {boolean} options.parameters.lock_screen - Whether the screen is locked.
|
|
76
|
+
* @param {boolean} options.parameters.firstAll - Whether it is the first all.
|
|
77
|
+
* @param {boolean} options.parameters.first_round - Whether it is the first round.
|
|
78
|
+
* @param {boolean} options.parameters.gotAllVids - Whether all videos are received.
|
|
79
|
+
* @param {string} options.parameters.eventType - Type of event.
|
|
80
|
+
* @param {string} options.parameters.hostLabel - Label of the host.
|
|
81
|
+
* @param {boolean} options.parameters.shareEnded - Whether sharing has ended.
|
|
82
|
+
* @param {boolean} options.parameters.updateMainWindow - Whether to update the main window.
|
|
83
|
+
* @param {function} options.parameters.updateActiveNames - Function to update active names.
|
|
84
|
+
* @param {function} options.parameters.updateAllAudioStreams - Function to update all audio streams.
|
|
85
|
+
* @param {function} options.parameters.updateAllVideoStreams - Function to update all video streams.
|
|
86
|
+
* @param {function} options.parameters.updateShareScreenStarted - Function to update share screen started status.
|
|
87
|
+
* @param {function} options.parameters.updateUpdateMainWindow - Function to update main window status.
|
|
88
|
+
* @param {function} options.parameters.updateNewLimitedStreams - Function to update new limited streams.
|
|
89
|
+
* @param {function} options.parameters.updateOldAllStreams - Function to update old all streams.
|
|
90
|
+
* @param {function} options.parameters.updateDefer_receive - Function to update defer receive status.
|
|
91
|
+
* @param {function} options.parameters.updateMainHeightWidth - Function to update main height and width.
|
|
92
|
+
* @param {function} options.parameters.updateShareEnded - Function to update share ended status.
|
|
93
|
+
* @param {function} options.parameters.updateLock_screen - Function to update lock screen status.
|
|
94
|
+
* @param {function} options.parameters.updateFirstAll - Function to update first all status.
|
|
95
|
+
* @param {function} options.parameters.updateFirst_round - Function to update first round status.
|
|
96
|
+
* @param {function} options.parameters.reorderStreams - Function to reorder streams.
|
|
97
|
+
* @param {function} options.parameters.prepopulateUserMedia - Function to prepopulate user media.
|
|
98
|
+
* @param {function} options.parameters.getVideos - Function to get videos.
|
|
99
|
+
* @param {function} options.parameters.rePort - Function to report.
|
|
100
|
+
*
|
|
101
|
+
* @returns {Promise<void>} A promise that resolves when the operation is complete.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* const options = {
|
|
105
|
+
* producerId: '12345',
|
|
106
|
+
* kind: 'video',
|
|
107
|
+
* parameters: {
|
|
108
|
+
* getUpdatedAllParams: () => { /* Logic to get updated parameters *\/ },
|
|
109
|
+
* allAudioStreams: [],
|
|
110
|
+
* allVideoStreams: [],
|
|
111
|
+
* activeNames: ['Participant1', 'Participant2'],
|
|
112
|
+
* participants: [],
|
|
113
|
+
* streamNames: [],
|
|
114
|
+
* recordingDisplayType: 'video',
|
|
115
|
+
* recordingVideoOptimized: true,
|
|
116
|
+
* adminIDStream: 'admin123',
|
|
117
|
+
* newLimitedStreams: [],
|
|
118
|
+
* newLimitedStreamsIDs: [],
|
|
119
|
+
* oldAllStreams: [],
|
|
120
|
+
* shareScreenStarted: false,
|
|
121
|
+
* shared: false,
|
|
122
|
+
* meetingDisplayType: 'media',
|
|
123
|
+
* defer_receive: false,
|
|
124
|
+
* lock_screen: false,
|
|
125
|
+
* firstAll: false,
|
|
126
|
+
* first_round: false,
|
|
127
|
+
* gotAllVids: false,
|
|
128
|
+
* eventType: 'conference',
|
|
129
|
+
* hostLabel: 'Host',
|
|
130
|
+
* shareEnded: false,
|
|
131
|
+
* updateMainWindow: false,
|
|
132
|
+
* updateActiveNames: (names) => { /* Logic to update active names *\/ },
|
|
133
|
+
* updateAllAudioStreams: (streams) => { /* Logic to update audio streams *\/ },
|
|
134
|
+
* updateShareScreenStarted: (status) => { /* Logic to update share screen status *\/ },
|
|
135
|
+
* updateUpdateMainWindow: (status) => { /* Logic to update main window status *\/ },
|
|
136
|
+
* updateNewLimitedStreams: (streams) => { /* Logic to update new limited streams *\/ },
|
|
137
|
+
* updateOldAllStreams: (streams) => { /* Logic to update old streams *\/ },
|
|
138
|
+
* updateDefer_receive: (status) => { /* Logic to update defer receive status *\/ },
|
|
139
|
+
* updateMainHeightWidth: (size) => { /* Logic to update main height and width *\/ },
|
|
140
|
+
* updateShareEnded: (status) => { /* Logic to update share ended status *\/ },
|
|
141
|
+
* updateLock_screen: (status) => { /* Logic to update lock screen status *\/ },
|
|
142
|
+
* updateFirstAll: (status) => { /* Logic to update first all status *\/ },
|
|
143
|
+
* updateFirst_round: (status) => { /* Logic to update first round status *\/ },
|
|
144
|
+
* reorderStreams: async () => { /* Logic to reorder streams *\/ },
|
|
145
|
+
* prepopulateUserMedia: async () => { /* Logic to prepopulate user media *\/ },
|
|
146
|
+
* getVideos: async () => { /* Logic to get videos *\/ },
|
|
147
|
+
* rePort: async () => { /* Logic to report *\/ },
|
|
148
|
+
* },
|
|
149
|
+
* };
|
|
150
|
+
*
|
|
151
|
+
* await closeAndResizeService.closeAndResize(options);
|
|
152
|
+
* // The operation will adjust the video and audio elements as per the given parameters.
|
|
153
|
+
*/
|
|
52
154
|
export declare class CloseAndResize {
|
|
53
155
|
/**
|
|
54
156
|
* Closes and resizes the video and audio elements based on the provided options.
|
|
@@ -14,6 +14,37 @@ export interface CompareActiveNamesOptions {
|
|
|
14
14
|
parameters: CompareActiveNamesParameters;
|
|
15
15
|
}
|
|
16
16
|
export type CompareActiveNamesType = (options: CompareActiveNamesOptions) => Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Compares the current active names with the previous active names and triggers an action if there are changes.
|
|
19
|
+
*
|
|
20
|
+
* @param {CompareActiveNamesOptions} options - The options for comparing active names.
|
|
21
|
+
* @param {boolean} [options.restart=false] - Whether to restart the comparison.
|
|
22
|
+
* @param {CompareActiveNamesParameters} options.parameters - The parameters for the comparison.
|
|
23
|
+
* @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
24
|
+
* @param {string[]} options.parameters.activeNames - The current active names.
|
|
25
|
+
* @param {string[]} options.parameters.prevActiveNames - The previous active names.
|
|
26
|
+
* @param {Function} options.parameters.updatePrevActiveNames - Function to update the previous active names.
|
|
27
|
+
* @param {Function} options.parameters.trigger - Function to trigger an action when names change.
|
|
28
|
+
*
|
|
29
|
+
* @returns {Promise<void>} A promise that resolves when the comparison is complete.
|
|
30
|
+
*
|
|
31
|
+
* @throws Will log an error message if an error occurs during the comparison.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* const options = {
|
|
35
|
+
* restart: false,
|
|
36
|
+
* parameters: {
|
|
37
|
+
* getUpdatedAllParams: () => { /* Logic to get updated parameters *\/ },
|
|
38
|
+
* activeNames: ['Alice', 'Bob'],
|
|
39
|
+
* prevActiveNames: ['Alice', 'Charlie'],
|
|
40
|
+
* updatePrevActiveNames: (names) => { /* Logic to update previous active names *\/ },
|
|
41
|
+
* trigger: async (data) => { /* Logic to handle the trigger *\/ },
|
|
42
|
+
* },
|
|
43
|
+
* };
|
|
44
|
+
*
|
|
45
|
+
* await compareActiveNamesService.compareActiveNames(options);
|
|
46
|
+
* // If 'Bob' is not in the previous active names, it will trigger the action.
|
|
47
|
+
*/
|
|
17
48
|
export declare class CompareActiveNames {
|
|
18
49
|
/**
|
|
19
50
|
* Compares the current active names with the previous active names and triggers an action if there are changes.
|
|
@@ -15,6 +15,41 @@ export interface CompareScreenStatesOptions {
|
|
|
15
15
|
parameters: CompareScreenStatesParameters;
|
|
16
16
|
}
|
|
17
17
|
export type CompareScreenStatesType = (options: CompareScreenStatesOptions) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Compares the current screen states with the previous screen states and triggers actions based on changes.
|
|
20
|
+
*
|
|
21
|
+
* @param {CompareScreenStatesOptions} options - The options for comparing screen states.
|
|
22
|
+
* @param {boolean} [options.restart=false] - Whether to restart the comparison process.
|
|
23
|
+
* @param {CompareScreenStatesParameters} options.parameters - The parameters for the comparison.
|
|
24
|
+
* @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
25
|
+
* @param {string} options.parameters.recordingDisplayType - The type of display being recorded.
|
|
26
|
+
* @param {boolean} options.parameters.recordingVideoOptimized - Whether the recording is optimized for video.
|
|
27
|
+
* @param {ScreenState[]} options.parameters.screenStates - The current screen states.
|
|
28
|
+
* @param {ScreenState[]} options.parameters.prevScreenStates - The previous screen states.
|
|
29
|
+
* @param {string[]} options.parameters.activeNames - The active names in the current context.
|
|
30
|
+
* @param {Function} options.parameters.trigger - Function to trigger actions based on changes.
|
|
31
|
+
*
|
|
32
|
+
* @returns {Promise<void>} A promise that resolves when the comparison and any triggered actions are complete.
|
|
33
|
+
*
|
|
34
|
+
* @throws Will log an error message if an error occurs during the comparison process.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* const options = {
|
|
38
|
+
* restart: false,
|
|
39
|
+
* parameters: {
|
|
40
|
+
* getUpdatedAllParams: () => { /* Logic to get updated parameters *\/ },
|
|
41
|
+
* recordingDisplayType: 'video',
|
|
42
|
+
* recordingVideoOptimized: true,
|
|
43
|
+
* screenStates: [{ state: 'active' }, { state: 'inactive' }],
|
|
44
|
+
* prevScreenStates: [{ state: 'inactive' }, { state: 'active' }],
|
|
45
|
+
* activeNames: ['Alice', 'Bob'],
|
|
46
|
+
* trigger: async (data) => { /* Logic to handle the trigger *\/ },
|
|
47
|
+
* },
|
|
48
|
+
* };
|
|
49
|
+
*
|
|
50
|
+
* await compareScreenStatesService.compareScreenStates(options);
|
|
51
|
+
* // If any screen state has changed, the trigger function will be called accordingly.
|
|
52
|
+
*/
|
|
18
53
|
export declare class CompareScreenStates {
|
|
19
54
|
/**
|
|
20
55
|
* Compares the current screen states with the previous screen states and triggers actions based on changes.
|
|
@@ -26,6 +26,48 @@ export interface ConnectIpsOptions {
|
|
|
26
26
|
parameters: ConnectIpsParameters;
|
|
27
27
|
}
|
|
28
28
|
export type ConnectIpsType = (options: ConnectIpsOptions) => Promise<[Record<string, any>[], string[]]>;
|
|
29
|
+
/**
|
|
30
|
+
* Connects to remote IPs and manages socket connections.
|
|
31
|
+
*
|
|
32
|
+
* This method establishes connections to remote IPs for media streaming, handles new pipe producer events,
|
|
33
|
+
* and manages producer closure events. It updates the necessary state in the application to reflect
|
|
34
|
+
* the current connections and stream configurations.
|
|
35
|
+
*
|
|
36
|
+
* @param {ConnectIpsOptions} options - The options for connecting IPs.
|
|
37
|
+
* @param {Record<string, any>[]} options.consume_sockets - The array of current socket connections.
|
|
38
|
+
* @param {string[]} options.remIP - The list of remote IPs to connect to.
|
|
39
|
+
* @param {string} options.apiUserName - The API username for authentication.
|
|
40
|
+
* @param {string} [options.apiKey] - The API key for authentication.
|
|
41
|
+
* @param {string} [options.apiToken] - The API token for authentication.
|
|
42
|
+
* @param {Function} [options.newProducerMethod] - The method to handle new pipe producer events (default: newPipeProducer).
|
|
43
|
+
* @param {Function} [options.closedProducerMethod] - The method to handle producer closed events (default: producerClosed).
|
|
44
|
+
* @param {Function} [options.joinConsumeRoomMethod] - The method to handle joining a consuming room (default: joinConsumeRoom).
|
|
45
|
+
* @param {ConnectIpsParameters} options.parameters - Additional parameters for the operation.
|
|
46
|
+
* @param {string[]} options.parameters.roomRecvIPs - The list of IPs that have been received in the room.
|
|
47
|
+
* @param {Function} options.parameters.updateRoomRecvIPs - Function to update the room received IPs.
|
|
48
|
+
* @param {Function} options.parameters.updateConsume_sockets - Function to update the consume sockets.
|
|
49
|
+
*
|
|
50
|
+
* @returns {Promise<[Record<string, any>[], string[]]>} A promise that resolves to an array containing the updated consume sockets and room received IPs.
|
|
51
|
+
*
|
|
52
|
+
* @throws Will throw an error if required parameters are missing or if there is an issue connecting to a remote IP.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const result = await connectIps({
|
|
57
|
+
* consume_sockets: currentSockets,
|
|
58
|
+
* remIP: ['192.168.1.1', '192.168.1.2'],
|
|
59
|
+
* apiUserName: 'username',
|
|
60
|
+
* apiKey: 'your-api-key',
|
|
61
|
+
* apiToken: 'your-api-token',
|
|
62
|
+
* parameters: {
|
|
63
|
+
* roomRecvIPs: [],
|
|
64
|
+
* updateRoomRecvIPs: (ips) => { },
|
|
65
|
+
* updateConsume_sockets: (sockets) => { },
|
|
66
|
+
* // ...other parameters
|
|
67
|
+
* },
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
29
71
|
export declare class ConnectIps {
|
|
30
72
|
private socketManagerService;
|
|
31
73
|
private newPipeProducerService;
|
|
@@ -18,6 +18,39 @@ export interface ConnectRecvTransportOptions {
|
|
|
18
18
|
parameters: ConnectRecvTransportParameters;
|
|
19
19
|
}
|
|
20
20
|
export type ConnectRecvTransportType = (options: ConnectRecvTransportOptions) => Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Connects the receiving transport to consume media from a remote producer.
|
|
23
|
+
*
|
|
24
|
+
* @param {ConnectRecvTransportOptions} options - The options for connecting the receiving transport.
|
|
25
|
+
* @param {Transport} options.consumerTransport - The transport used for consuming media.
|
|
26
|
+
* @param {string} options.remoteProducerId - The ID of the remote producer.
|
|
27
|
+
* @param {string} options.serverConsumerTransportId - The ID of the server consumer transport.
|
|
28
|
+
* @param {Socket} options.nsock - The socket used for communication.
|
|
29
|
+
* @param {ConnectRecvTransportParameters} options.parameters - The parameters for the connection.
|
|
30
|
+
*
|
|
31
|
+
* @returns {Promise<void>} A promise that resolves when the connection is established.
|
|
32
|
+
*
|
|
33
|
+
* @throws Will throw an error if the connection or consumption fails.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const options = {
|
|
38
|
+
* consumerTransport,
|
|
39
|
+
* remoteProducerId: 'producer-id',
|
|
40
|
+
* serverConsumerTransportId: 'transport-id',
|
|
41
|
+
* nsock: socket,
|
|
42
|
+
* parameters: connectRecvTransportOptions,
|
|
43
|
+
* };
|
|
44
|
+
*
|
|
45
|
+
* connectRecvTransport(options)
|
|
46
|
+
* .then(() => {
|
|
47
|
+
* console.log('Transport connected and consuming media');
|
|
48
|
+
* })
|
|
49
|
+
* .catch((error) => {
|
|
50
|
+
* console.error('Error connecting transport:', error);
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
21
54
|
export declare class ConnectRecvTransport {
|
|
22
55
|
/**
|
|
23
56
|
* Connects the receiving transport to consume media from a remote producer.
|