mediasfu-angular 2.2.1 → 2.2.3
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 +970 -40
- package/USAGE_COOKBOOK.md +202 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +970 -40
- package/dist/fesm2022/mediasfu-angular.mjs +30595 -16317
- package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
- package/dist/lib/@types/types.d.ts +28 -2
- package/dist/lib/@types/ui-overrides.types.d.ts +314 -0
- package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +1053 -5
- package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +2126 -51
- package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +1587 -45
- package/dist/lib/components/breakout-components/room-list/room-list.component.d.ts +5 -1
- package/dist/lib/components/co-host-components/co-host-modal/co-host-modal.component.d.ts +1067 -56
- package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +98 -28
- package/dist/lib/components/display-components/audio-card/audio-card.component.d.ts +17 -7
- package/dist/lib/components/display-components/audio-grid/audio-grid.component.d.ts +591 -11
- package/dist/lib/components/display-components/card-video-display/card-video-display.component.d.ts +3 -0
- package/dist/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.d.ts +1 -1
- package/dist/lib/components/display-components/control-buttons-component/control-buttons-component.component.d.ts +34 -2
- package/dist/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.d.ts +19 -0
- package/dist/lib/components/display-components/control-widgets/control-icon-badge-widget.component.d.ts +13 -0
- package/dist/lib/components/display-components/control-widgets/menu-participants-widget.component.d.ts +1 -0
- package/dist/lib/components/display-components/control-widgets/menu-widget.component.d.ts +2 -2
- package/dist/lib/components/display-components/control-widgets/message-widget.component.d.ts +2 -2
- package/dist/lib/components/display-components/control-widgets/record-timer-widget.component.d.ts +2 -0
- package/dist/lib/components/display-components/control-widgets/screenshare-widget.component.d.ts +5 -3
- package/dist/lib/components/display-components/flexible-grid/flexible-grid.component.d.ts +617 -26
- package/dist/lib/components/display-components/flexible-video/flexible-video.component.d.ts +41 -1
- package/dist/lib/components/display-components/loading-modal/loading-modal.component.d.ts +2024 -10
- package/dist/lib/components/display-components/main-aspect-component/main-aspect-component.component.d.ts +6 -2
- package/dist/lib/components/display-components/main-container-component/main-container-component.component.d.ts +6 -2
- package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +507 -8
- package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +508 -7
- package/dist/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.d.ts +18 -11
- package/dist/lib/components/display-components/mini-audio/mini-audio.component.d.ts +11 -3
- package/dist/lib/components/display-components/mini-card/mini-card.component.d.ts +1026 -999
- package/dist/lib/components/display-components/mini-card-audio/mini-card-audio.component.d.ts +9 -3
- package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +517 -1
- package/dist/lib/components/display-components/pagination/pagination.component.d.ts +34 -1
- package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +513 -2
- package/dist/lib/components/display-components/subtitle-overlay/subtitle-overlay.component.d.ts +6 -0
- package/dist/lib/components/display-components/video-card/video-card.component.d.ts +10 -6
- package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +1108 -27
- package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +1134 -49
- package/dist/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.d.ts +94 -32
- package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +1123 -47
- package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +2622 -4793
- package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +602 -4140
- package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +864 -5707
- package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +2087 -6304
- package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +650 -5707
- package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +26 -4
- package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +80 -1
- package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +46 -1
- package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +706 -15
- package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +49 -2
- package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +79 -16
- package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +1113 -17
- package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +4 -0
- package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +1114 -29
- package/dist/lib/components/panelists-components/panelists-modal/panelists-modal.component.d.ts +73 -0
- package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +1084 -6
- package/dist/lib/components/permissions-components/permissions-modal/permissions-modal.component.d.ts +89 -0
- package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +1060 -21
- package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +1055 -35
- package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +1117 -45
- package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +1059 -47
- package/dist/lib/components/translation-components/translation-settings-modal/translation-settings-modal.component.d.ts +124 -0
- package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +1119 -46
- package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +2117 -22
- package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +3 -15
- package/dist/lib/consumers/add-videos-grid.service.d.ts +3 -0
- package/dist/lib/consumers/auto-adjust.service.d.ts +0 -11
- package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +0 -7
- package/dist/lib/consumers/change-vids.service.d.ts +1 -1
- package/dist/lib/consumers/check-permission.service.d.ts +4 -1
- package/dist/lib/consumers/check-screen-share.service.d.ts +0 -18
- package/dist/lib/consumers/compare-active-names.service.d.ts +0 -16
- package/dist/lib/consumers/compare-screen-states.service.d.ts +0 -18
- package/dist/lib/consumers/connect-ips.service.d.ts +5 -26
- package/dist/lib/consumers/connect-local-ips.service.d.ts +1 -28
- package/dist/lib/consumers/connect-recv-transport.service.d.ts +4 -1
- package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +5 -1
- package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +6 -1
- package/dist/lib/consumers/connect-send-transport-video.service.d.ts +6 -1
- package/dist/lib/consumers/connect-send-transport.service.d.ts +3 -1
- package/dist/lib/consumers/consumer-resume.service.d.ts +2 -1
- package/dist/lib/consumers/create-send-transport.service.d.ts +4 -1
- package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +3 -1
- package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +3 -1
- package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +3 -1
- package/dist/lib/consumers/disp-streams.service.d.ts +1 -110
- package/dist/lib/consumers/generate-page-content.service.d.ts +0 -17
- package/dist/lib/consumers/get-estimate.service.d.ts +0 -21
- package/dist/lib/consumers/mix-streams.service.d.ts +0 -19
- package/dist/lib/consumers/on-screen-changes.service.d.ts +1 -21
- package/dist/lib/consumers/prepopulate-user-media.service.d.ts +3 -0
- package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +1 -14
- package/dist/lib/consumers/process-consumer-transports.service.d.ts +3 -57
- package/dist/lib/consumers/re-update-inter.service.d.ts +1 -39
- package/dist/lib/consumers/reorder-streams.service.d.ts +1 -35
- package/dist/lib/consumers/resume-send-transport-audio.service.d.ts +3 -1
- package/dist/lib/consumers/signal-new-consumer-transport.service.d.ts +3 -1
- package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +5 -14
- package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +4 -14
- package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +1 -8
- package/dist/lib/consumers/stream-success-audio-switch.service.d.ts +5 -1
- package/dist/lib/consumers/stream-success-audio.service.d.ts +3 -1
- package/dist/lib/consumers/stream-success-video.service.d.ts +5 -1
- package/dist/lib/consumers/translation-consumer-switch.service.d.ts +68 -0
- package/dist/lib/consumers/trigger.service.d.ts +0 -79
- package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +0 -24
- package/dist/lib/directives/with-override.directive.d.ts +76 -0
- package/dist/lib/methods/background-methods/launch-background.service.d.ts +2 -5
- package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +2 -5
- package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +2 -5
- package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +1 -1
- package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +2 -5
- package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +2 -0
- package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +2 -5
- package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +2 -5
- package/dist/lib/methods/message-methods/launch-messages.service.d.ts +2 -5
- package/dist/lib/methods/panelists-methods/add-panelist.service.d.ts +19 -0
- package/dist/lib/methods/panelists-methods/focus-panelists.service.d.ts +19 -0
- package/dist/lib/methods/panelists-methods/remove-panelist.service.d.ts +17 -0
- package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +2 -5
- package/dist/lib/methods/permissions-methods/bulk-update-participant-permissions.service.d.ts +20 -0
- package/dist/lib/methods/permissions-methods/update-participant-permission.service.d.ts +19 -0
- package/dist/lib/methods/permissions-methods/update-permission-config.service.d.ts +29 -0
- package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +1 -1
- package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +1 -1
- package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +1 -1
- package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +1 -1
- package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +1 -12
- package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +1 -11
- package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +0 -94
- package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +1 -20
- package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +1 -12
- package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +0 -66
- package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +1 -33
- package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +1 -17
- package/dist/lib/methods/recording-methods/start-recording.service.d.ts +1 -92
- package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +1 -42
- package/dist/lib/methods/recording-methods/update-recording.service.d.ts +1 -94
- package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +2 -5
- package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +2 -5
- package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +1 -1
- package/dist/lib/methods/stream-methods/click-chat.service.d.ts +1 -1
- package/dist/lib/methods/utils/get-modal-position.util.d.ts +0 -3
- package/dist/lib/methods/utils/initial-values.util.d.ts +25 -3
- package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +11 -1
- package/dist/lib/methods/utils/producer/a-params.service.d.ts +2 -5
- package/dist/lib/methods/utils/producer/h-params.service.d.ts +2 -5
- package/dist/lib/methods/utils/producer/screen-params.service.d.ts +2 -5
- package/dist/lib/methods/utils/producer/v-params.service.d.ts +2 -5
- package/dist/lib/methods/utils/sound-player.service.d.ts +1 -1
- package/dist/lib/methods/utils/translation-languages.util.d.ts +341 -0
- package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +2 -5
- package/dist/lib/methods/whiteboard-methods/capture-canvas-stream.service.d.ts +3 -1
- package/dist/lib/modern/display-components/modern-alert.component.d.ts +40 -0
- package/dist/lib/modern/display-components/modern-loading-modal.component.d.ts +37 -0
- package/dist/lib/modern/display-components/modern-meeting-progress-timer.component.d.ts +40 -0
- package/dist/lib/modern/display-components/modern-mini-card.component.d.ts +1064 -0
- package/dist/lib/modern/display-components/modern-pagination.component.d.ts +91 -0
- package/dist/lib/modern/display-components/modern-participants-counter-badge.component.d.ts +16 -0
- package/dist/lib/modern/modal-components/modern-co-host-modal.component.d.ts +63 -0
- package/dist/lib/modern/modal-components/modern-confirm-exit-modal.component.d.ts +42 -0
- package/dist/lib/modern/modal-components/modern-confirm-here-modal.component.d.ts +39 -0
- package/dist/lib/modern/modal-components/modern-display-settings-modal.component.d.ts +59 -0
- package/dist/lib/modern/modal-components/modern-event-settings-modal.component.d.ts +80 -0
- package/dist/lib/modern/modal-components/modern-media-settings-modal.component.d.ts +72 -0
- package/dist/lib/modern/modal-components/modern-menu-modal.component.d.ts +48 -0
- package/dist/lib/modern/modal-components/modern-messages-modal.component.d.ts +58 -0
- package/dist/lib/modern/modal-components/modern-participants-modal.component.d.ts +49 -0
- package/dist/lib/modern/modal-components/modern-poll-modal.component.d.ts +54 -0
- package/dist/lib/modern/modal-components/modern-recording-modal.component.d.ts +39 -0
- package/dist/lib/modern/modal-components/modern-requests-modal.component.d.ts +61 -0
- package/dist/lib/modern/modal-components/modern-share-event-modal.component.d.ts +39 -0
- package/dist/lib/modern/modal-components/modern-waiting-room-modal.component.d.ts +55 -0
- package/dist/lib/modern/primitives/modern-button.component.d.ts +10 -0
- package/dist/lib/modern/primitives/modern-entry-shell.component.d.ts +6 -0
- package/dist/lib/modern/primitives/modern-field.component.d.ts +32 -0
- package/dist/lib/modern/primitives/modern-sidebar-panel.component.d.ts +24 -0
- package/dist/lib/modern/primitives/modern-surface.component.d.ts +7 -0
- package/dist/lib/modern/utils/render-mode.utils.d.ts +3 -0
- package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +4 -10
- package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +0 -19
- package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +8 -63
- package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +3 -19
- package/dist/lib/producers/producer-emits/join-local-room.service.d.ts +3 -106
- package/dist/lib/producers/producer-emits/join-room.service.d.ts +0 -18
- package/dist/lib/producers/socket-receive-methods/added-as-panelist.service.d.ts +15 -0
- package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +1 -90
- package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +1 -88
- package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +1 -66
- package/dist/lib/producers/socket-receive-methods/get-domains.service.d.ts +3 -1
- package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +1 -1
- package/dist/lib/producers/socket-receive-methods/panelist-focus-changed.service.d.ts +25 -0
- package/dist/lib/producers/socket-receive-methods/panelists-updated.service.d.ts +19 -0
- package/dist/lib/producers/socket-receive-methods/permission-config-updated.service.d.ts +15 -0
- package/dist/lib/producers/socket-receive-methods/permission-updated.service.d.ts +17 -0
- package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +1 -1
- package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +0 -80
- package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +1 -1
- package/dist/lib/producers/socket-receive-methods/receive-control-media.service.d.ts +21 -0
- package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +1 -5
- package/dist/lib/producers/socket-receive-methods/removed-from-panelists.service.d.ts +15 -0
- package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +1 -1
- package/dist/lib/producers/socket-receive-methods/translation-receive-methods.service.d.ts +20 -0
- package/dist/lib/services/live-subtitle.service.d.ts +15 -0
- package/dist/lib/services/ui-override-resolver.service.d.ts +91 -0
- package/dist/lib/sockets/socket-manager.service.d.ts +1 -2
- package/dist/public-api.d.ts +46 -1
- package/package.json +106 -95
- package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +0 -177
|
@@ -58,27 +58,7 @@ export type OnScreenChangesType = (options: OnScreenChangesOptions) => Promise<v
|
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
60
|
export declare class OnScreenChanges {
|
|
61
|
-
|
|
62
|
-
* Handles changes in screen events such as broadcast, chat, and conference.
|
|
63
|
-
*
|
|
64
|
-
* @param {OnScreenChangesOptions} options - The options for handling screen changes.
|
|
65
|
-
* @param {boolean} options.changed - Indicates if the screen has changed.
|
|
66
|
-
* @param {object} options.parameters - The parameters for handling screen changes.
|
|
67
|
-
* @param {string} options.parameters.eventType - The type of event (e.g., "broadcast", "chat", "conference").
|
|
68
|
-
* @param {boolean} options.parameters.shareScreenStarted - Indicates if screen sharing has started.
|
|
69
|
-
* @param {boolean} options.parameters.shared - Indicates if the screen is shared.
|
|
70
|
-
* @param {boolean} options.parameters.addForBasic - Flag to add basic controls.
|
|
71
|
-
* @param {function} options.parameters.updateMainHeightWidth - Function to update the main height and width.
|
|
72
|
-
* @param {function} options.parameters.updateAddForBasic - Function to update the addForBasic flag.
|
|
73
|
-
* @param {number} options.parameters.itemPageLimit - The limit for item pages.
|
|
74
|
-
* @param {function} options.parameters.updateItemPageLimit - Function to update the item page limit.
|
|
75
|
-
* @param {function} options.parameters.reorderStreams - Function to reorder streams.
|
|
76
|
-
*
|
|
77
|
-
* @returns {Promise<void>} A promise that resolves when the screen changes have been handled.
|
|
78
|
-
*
|
|
79
|
-
* @throws {Error} Throws an error if there is an issue handling screen changes.
|
|
80
|
-
*/
|
|
81
|
-
onScreenChanges: ({ changed, parameters, }: OnScreenChangesOptions) => Promise<void>;
|
|
61
|
+
onScreenChanges({ changed, parameters, }: OnScreenChangesOptions): Promise<void>;
|
|
82
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<OnScreenChanges, never>;
|
|
83
63
|
static ɵprov: i0.ɵɵInjectableDeclaration<OnScreenChanges>;
|
|
84
64
|
}
|
|
@@ -40,6 +40,9 @@ export interface PrepopulateUserMediaParameters extends AudioCardParameters {
|
|
|
40
40
|
customVideoCard?: any;
|
|
41
41
|
customAudioCard?: any;
|
|
42
42
|
customMiniCard?: any;
|
|
43
|
+
videoCardComponent?: any;
|
|
44
|
+
audioCardComponent?: any;
|
|
45
|
+
miniCardComponent?: any;
|
|
43
46
|
getUpdatedAllParams: () => PrepopulateUserMediaParameters;
|
|
44
47
|
[key: string]: any;
|
|
45
48
|
}
|
|
@@ -40,20 +40,7 @@ export type ProcessConsumerTransportsAudioType = (options: ProcessConsumerTransp
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
export declare class ProcessConsumerTransportsAudio {
|
|
43
|
-
|
|
44
|
-
* Processes consumer transports for audio streams by pausing and resuming them based on their current state and the provided streams.
|
|
45
|
-
*
|
|
46
|
-
* @param {Object} options - The options for processing consumer transports.
|
|
47
|
-
* @param {Array} options.consumerTransports - The list of consumer transports to process.
|
|
48
|
-
* @param {Array} options.lStreams - The list of local streams to check against.
|
|
49
|
-
* @param {Object} options.parameters - Additional parameters for processing.
|
|
50
|
-
* @param {Function} options.parameters.sleep - A function to pause execution for a specified duration.
|
|
51
|
-
*
|
|
52
|
-
* @returns {Promise<void>} A promise that resolves when the processing is complete.
|
|
53
|
-
*
|
|
54
|
-
* @throws Will throw an error if there is an issue processing the consumer transports.
|
|
55
|
-
*/
|
|
56
|
-
processConsumerTransportsAudio: ({ consumerTransports, lStreams, parameters, }: ProcessConsumerTransportsAudioOptions) => Promise<void>;
|
|
43
|
+
processConsumerTransportsAudio({ consumerTransports, lStreams, parameters, }: ProcessConsumerTransportsAudioOptions): Promise<void>;
|
|
57
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProcessConsumerTransportsAudio, never>;
|
|
58
45
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProcessConsumerTransportsAudio>;
|
|
59
46
|
}
|
|
@@ -15,65 +15,11 @@ export interface ProcessConsumerTransportsOptions {
|
|
|
15
15
|
}
|
|
16
16
|
export type ProcessConsumerTransportsType = (options: ProcessConsumerTransportsOptions) => Promise<void>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* This method checks the state of each consumer transport and determines whether to pause or resume
|
|
21
|
-
* based on the validity of the producer ID in relation to the provided streams.
|
|
22
|
-
* It utilizes a sleep function to introduce a delay before pausing the transports.
|
|
23
|
-
*
|
|
24
|
-
* @param {ProcessConsumerTransportsOptions} options - The options for processing consumer transports.
|
|
25
|
-
* @param {Array<Transport>} options.consumerTransports - The list of consumer transports to process.
|
|
26
|
-
* @param {Array<Stream | Participant>} options.lStreams_ - The list of local streams.
|
|
27
|
-
* @param {ProcessConsumerTransportsParameters} options.parameters - The parameters for processing, including:
|
|
28
|
-
* - {Array<Stream>} options.parameters.remoteScreenStream - The list of remote screen streams.
|
|
29
|
-
* - {Array<Stream | Participant>} options.parameters.oldAllStreams - The list of old streams.
|
|
30
|
-
* - {Array<Stream | Participant>} options.parameters.newLimitedStreams - The list of new limited streams.
|
|
31
|
-
* - {Function} options.parameters.sleep - A function to pause execution for a specified duration.
|
|
32
|
-
* - {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
33
|
-
*
|
|
34
|
-
* @returns {Promise<void>} A promise that resolves when the processing is complete.
|
|
35
|
-
*
|
|
36
|
-
* @throws {Error} Will throw an error if there is an issue processing consumer transports.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```typescript
|
|
40
|
-
* const options = {
|
|
41
|
-
* consumerTransports: [],
|
|
42
|
-
* lStreams_: [],
|
|
43
|
-
* parameters: {
|
|
44
|
-
* remoteScreenStream: [],
|
|
45
|
-
* oldAllStreams: [],
|
|
46
|
-
* newLimitedStreams: [],
|
|
47
|
-
* sleep: async ({ ms }) => new Promise(resolve => setTimeout(resolve, ms)),
|
|
48
|
-
* },
|
|
49
|
-
* };
|
|
50
|
-
*
|
|
51
|
-
* await processConsumerTransports(options);
|
|
52
|
-
* ```
|
|
18
|
+
* @service ProcessConsumerTransports
|
|
19
|
+
* @description Service adapter for the shared consumer transport pause/resume orchestration.
|
|
53
20
|
*/
|
|
54
21
|
export declare class ProcessConsumerTransports {
|
|
55
|
-
|
|
56
|
-
* Processes consumer transports by pausing and resuming them based on certain conditions.
|
|
57
|
-
*
|
|
58
|
-
* @param {Object} options - The options for processing consumer transports.
|
|
59
|
-
* @param {Array} options.consumerTransports - The list of consumer transports to process.
|
|
60
|
-
* @param {Array} options.lStreams_ - The list of local streams.
|
|
61
|
-
* @param {Object} options.parameters - The parameters object containing various stream arrays and utility functions.
|
|
62
|
-
*
|
|
63
|
-
* @returns {Promise<void>} - A promise that resolves when the processing is complete.
|
|
64
|
-
*
|
|
65
|
-
* @throws {Error} - Throws an error if there is an issue processing consumer transports.
|
|
66
|
-
*
|
|
67
|
-
* The function performs the following steps:
|
|
68
|
-
* 1. Destructures and updates the parameters.
|
|
69
|
-
* 2. Defines a helper function to check if a producerId is valid in given stream arrays.
|
|
70
|
-
* 3. Filters consumer transports to resume based on certain conditions.
|
|
71
|
-
* 4. Filters consumer transports to pause based on certain conditions.
|
|
72
|
-
* 5. Pauses consumer transports after a short delay.
|
|
73
|
-
* 6. Emits `consumer-pause` event for each filtered transport (not audio).
|
|
74
|
-
* 7. Emits `consumer-resume` event for each filtered transport (not audio).
|
|
75
|
-
*/
|
|
76
|
-
processConsumerTransports: ({ consumerTransports, lStreams_, parameters, }: ProcessConsumerTransportsOptions) => Promise<void>;
|
|
22
|
+
processConsumerTransports({ consumerTransports, lStreams_, parameters, }: ProcessConsumerTransportsOptions): Promise<void>;
|
|
77
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProcessConsumerTransports, never>;
|
|
78
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProcessConsumerTransports>;
|
|
79
25
|
}
|
|
@@ -121,45 +121,7 @@ export type ReUpdateInterType = (options: ReUpdateInterOptions) => Promise<void>
|
|
|
121
121
|
* ```
|
|
122
122
|
*/
|
|
123
123
|
export declare class ReUpdateInter {
|
|
124
|
-
|
|
125
|
-
* Updates the interaction state based on the provided options and parameters.
|
|
126
|
-
*
|
|
127
|
-
* @param {ReUpdateInterOptions} options - The options for updating the interaction.
|
|
128
|
-
* @param {string} options.name - The name of the participant.
|
|
129
|
-
* @param {boolean} [options.add=false] - Whether to add the participant to the interaction.
|
|
130
|
-
* @param {boolean} [options.force=false] - Whether to force the update.
|
|
131
|
-
* @param {number} [options.average=127] - The average value used for determining reorder intervals.
|
|
132
|
-
* @param {Object} options.parameters - The parameters for updating the interaction.
|
|
133
|
-
* @param {number} options.parameters.screenPageLimit - The screen page limit.
|
|
134
|
-
* @param {number} options.parameters.itemPageLimit - The item page limit.
|
|
135
|
-
* @param {number} options.parameters.reorderInterval - The reorder interval.
|
|
136
|
-
* @param {number} options.parameters.fastReorderInterval - The fast reorder interval.
|
|
137
|
-
* @param {string} options.parameters.eventType - The type of event.
|
|
138
|
-
* @param {Array} options.parameters.participants - The list of participants.
|
|
139
|
-
* @param {Array} options.parameters.allVideoStreams - The list of all video streams.
|
|
140
|
-
* @param {boolean} options.parameters.shared - Whether the screen is shared.
|
|
141
|
-
* @param {boolean} options.parameters.shareScreenStarted - Whether screen sharing has started.
|
|
142
|
-
* @param {string} options.parameters.adminNameStream - The admin name stream.
|
|
143
|
-
* @param {string} options.parameters.screenShareNameStream - The screen share name stream.
|
|
144
|
-
* @param {boolean} options.parameters.updateMainWindow - Whether to update the main window.
|
|
145
|
-
* @param {boolean} options.parameters.sortAudioLoudness - Whether to sort audio by loudness.
|
|
146
|
-
* @param {number} options.parameters.lastReorderTime - The last reorder time.
|
|
147
|
-
* @param {Array} options.parameters.newLimitedStreams - The list of new limited streams.
|
|
148
|
-
* @param {Array} options.parameters.newLimitedStreamsIDs - The list of new limited stream IDs.
|
|
149
|
-
* @param {Array} options.parameters.oldSoundIds - The list of old sound IDs.
|
|
150
|
-
* @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window.
|
|
151
|
-
* @param {Function} options.parameters.updateSortAudioLoudness - Function to update the audio loudness sorting.
|
|
152
|
-
* @param {Function} options.parameters.updateLastReorderTime - Function to update the last reorder time.
|
|
153
|
-
* @param {Function} options.parameters.updateNewLimitedStreams - Function to update the new limited streams.
|
|
154
|
-
* @param {Function} options.parameters.updateNewLimitedStreamsIDs - Function to update the new limited stream IDs.
|
|
155
|
-
* @param {Function} options.parameters.updateOldSoundIds - Function to update the old sound IDs.
|
|
156
|
-
* @param {Function} options.parameters.onScreenChanges - Function to handle screen changes.
|
|
157
|
-
* @param {Function} options.parameters.reorderStreams - Function to reorder streams.
|
|
158
|
-
* @param {Function} options.parameters.changeVids - Function to change videos.
|
|
159
|
-
*
|
|
160
|
-
* @returns {Promise<void>} A promise that resolves when the interaction update is complete.
|
|
161
|
-
*/
|
|
162
|
-
reUpdateInter: ({ name, add, force, average, parameters, }: ReUpdateInterOptions) => Promise<void>;
|
|
124
|
+
reUpdateInter({ name, add, force, average, parameters, }: ReUpdateInterOptions): Promise<void>;
|
|
163
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReUpdateInter, never>;
|
|
164
126
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReUpdateInter>;
|
|
165
127
|
}
|
|
@@ -90,41 +90,7 @@ export type ReorderStreamsType = (options: ReorderStreamsOptions) => Promise<voi
|
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
92
|
export declare class ReorderStreams {
|
|
93
|
-
|
|
94
|
-
* Reorders the video streams based on the provided options and updates the UI accordingly.
|
|
95
|
-
*
|
|
96
|
-
* @param {Object} options - The options for reordering streams.
|
|
97
|
-
* @param {boolean} [options.add=false] - Whether to add new streams or not.
|
|
98
|
-
* @param {boolean} [options.screenChanged=false] - Whether the screen has changed or not.
|
|
99
|
-
* @param {ReorderStreamsOptions} options.parameters - The parameters required for reordering streams.
|
|
100
|
-
*
|
|
101
|
-
* @returns {Promise<void>} A promise that resolves when the reordering is complete.
|
|
102
|
-
*
|
|
103
|
-
* @typedef {Object} ReorderStreamsOptions
|
|
104
|
-
* @property {Function} getUpdatedAllParams - Function to get updated parameters.
|
|
105
|
-
* @property {Array} allVideoStreams - Array of all video streams.
|
|
106
|
-
* @property {Array} participants - Array of participants.
|
|
107
|
-
* @property {Array} oldAllStreams - Array of old streams.
|
|
108
|
-
* @property {string} screenId - ID of the screen.
|
|
109
|
-
* @property {string} adminVidID - ID of the admin video.
|
|
110
|
-
* @property {Array} newLimitedStreams - Array of new limited streams.
|
|
111
|
-
* @property {Array} newLimitedStreamsIDs - Array of new limited stream IDs.
|
|
112
|
-
* @property {Array} activeSounds - Array of active sounds.
|
|
113
|
-
* @property {string} screenShareIDStream - ID of the screen share stream.
|
|
114
|
-
* @property {string} screenShareNameStream - Name of the screen share stream.
|
|
115
|
-
* @property {string} adminIDStream - ID of the admin stream.
|
|
116
|
-
* @property {string} adminNameStream - Name of the admin stream.
|
|
117
|
-
* @property {Function} updateNewLimitedStreams - Function to update new limited streams.
|
|
118
|
-
* @property {Function} updateNewLimitedStreamsIDs - Function to update new limited stream IDs.
|
|
119
|
-
* @property {Function} updateActiveSounds - Function to update active sounds.
|
|
120
|
-
* @property {Function} updateScreenShareIDStream - Function to update screen share ID stream.
|
|
121
|
-
* @property {Function} updateScreenShareNameStream - Function to update screen share name stream.
|
|
122
|
-
* @property {Function} updateAdminIDStream - Function to update admin ID stream.
|
|
123
|
-
* @property {Function} updateAdminNameStream - Function to update admin name stream.
|
|
124
|
-
* @property {Function} updateYouYouStream - Function to update YouYou stream.
|
|
125
|
-
* @property {Function} changeVids - Function to reflect changes on the UI.
|
|
126
|
-
*/
|
|
127
|
-
reorderStreams: ({ add, screenChanged, parameters, }: ReorderStreamsOptions) => Promise<void>;
|
|
93
|
+
reorderStreams({ add, screenChanged, parameters, }: ReorderStreamsOptions): Promise<void>;
|
|
128
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReorderStreams, never>;
|
|
129
95
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReorderStreams>;
|
|
130
96
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { types } from 'mediasoup-client';
|
|
2
2
|
import { PrepopulateUserMediaParameters, PrepopulateUserMediaType } from '../@types/types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
type Producer = types.Producer;
|
|
4
5
|
export interface ResumeSendTransportAudioParameters extends PrepopulateUserMediaParameters {
|
|
5
6
|
audioProducer: Producer | null;
|
|
6
7
|
localAudioProducer?: Producer | null;
|
|
@@ -110,3 +111,4 @@ export declare class ResumeSendTransportAudio {
|
|
|
110
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResumeSendTransportAudio, never>;
|
|
111
112
|
static ɵprov: i0.ɵɵInjectableDeclaration<ResumeSendTransportAudio>;
|
|
112
113
|
}
|
|
114
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
2
|
import { ReorderStreamsParameters, ReorderStreamsType, ConnectRecvTransportType, ConnectRecvTransportParameters } from '../@types/types';
|
|
3
|
-
import {
|
|
3
|
+
import { types } from 'mediasoup-client';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type Device = types.Device;
|
|
5
6
|
export interface SignalNewConsumerTransportParameters extends ReorderStreamsParameters, ConnectRecvTransportParameters {
|
|
6
7
|
device: Device | null;
|
|
7
8
|
consumingTransports: string[];
|
|
@@ -61,3 +62,4 @@ export declare class SignalNewConsumerTransport {
|
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignalNewConsumerTransport, never>;
|
|
62
63
|
static ɵprov: i0.ɵɵInjectableDeclaration<SignalNewConsumerTransport>;
|
|
63
64
|
}
|
|
65
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { JoinConRoom } from '../../producers/producer-emits/join-con-room.service';
|
|
2
1
|
import { Socket } from 'socket.io-client';
|
|
3
2
|
import { ReceiveAllPipedTransportsType, ReceiveAllPipedTransportsParameters, CreateDeviceClientType } from '../../@types/types';
|
|
4
|
-
import {
|
|
3
|
+
import { types } from 'mediasoup-client';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type Device = types.Device;
|
|
6
|
+
type RtpCapabilities = types.RtpCapabilities;
|
|
6
7
|
export interface JoinConsumeRoomParameters extends ReceiveAllPipedTransportsParameters {
|
|
7
8
|
roomName: string;
|
|
8
9
|
islevel: string;
|
|
@@ -11,6 +12,7 @@ export interface JoinConsumeRoomParameters extends ReceiveAllPipedTransportsPara
|
|
|
11
12
|
updateDevice: (device: Device | null) => void;
|
|
12
13
|
receiveAllPipedTransports: ReceiveAllPipedTransportsType;
|
|
13
14
|
createDeviceClient: CreateDeviceClientType;
|
|
15
|
+
getUpdatedAllParams: () => JoinConsumeRoomParameters;
|
|
14
16
|
[key: string]: any;
|
|
15
17
|
}
|
|
16
18
|
export interface JoinConsumeRoomOptions {
|
|
@@ -58,18 +60,7 @@ export type JoinConsumeRoomType = (options: JoinConsumeRoomOptions) => Promise<J
|
|
|
58
60
|
* ```
|
|
59
61
|
*/
|
|
60
62
|
export declare class JoinConsumeRoom {
|
|
61
|
-
|
|
62
|
-
constructor(JoinConRoomService: JoinConRoom);
|
|
63
|
-
/**
|
|
64
|
-
* Joins a consumption room by sending a request to the server and handles the necessary setup.
|
|
65
|
-
* @param {Object} options - The options object containing necessary variables.
|
|
66
|
-
* @param {any} options.remote_sock - The remote socket information.
|
|
67
|
-
* @param {string} options.apiToken - The API token for authentication.
|
|
68
|
-
* @param {string} options.apiUserName - The API username for authentication.
|
|
69
|
-
* @param {any} options.parameters - Additional parameters required for the function.
|
|
70
|
-
* @returns {Promise<any>} - A promise that resolves with data related to the success of joining the room.
|
|
71
|
-
*/
|
|
72
|
-
joinConsumeRoom: ({ remote_sock, apiToken, apiUserName, parameters, }: JoinConsumeRoomOptions) => Promise<JoinConsumeRoomResponse>;
|
|
63
|
+
joinConsumeRoom({ remote_sock, apiToken, apiUserName, parameters, }: JoinConsumeRoomOptions): Promise<JoinConsumeRoomResponse>;
|
|
73
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<JoinConsumeRoom, never>;
|
|
74
65
|
static ɵprov: i0.ɵɵInjectableDeclaration<JoinConsumeRoom>;
|
|
75
66
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SignalNewConsumerTransport } from '../signal-new-consumer-transport.service';
|
|
2
1
|
import { Socket } from 'socket.io-client';
|
|
3
2
|
import { ReorderStreamsParameters, ReorderStreamsType, SignalNewConsumerTransportParameters, ConnectRecvTransportParameters, ConnectRecvTransportType, ShowAlert } from '../../@types/types';
|
|
4
|
-
import {
|
|
3
|
+
import { types } from 'mediasoup-client';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type Device = types.Device;
|
|
6
6
|
export interface NewPipeProducerParameters extends ReorderStreamsParameters, SignalNewConsumerTransportParameters, ConnectRecvTransportParameters {
|
|
7
7
|
first_round: boolean;
|
|
8
8
|
shareScreenStarted: boolean;
|
|
@@ -68,18 +68,8 @@ export type NewPipeProducerType = (options: NewPipeProducerOptions) => Promise<v
|
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
70
|
export declare class NewPipeProducer {
|
|
71
|
-
|
|
72
|
-
constructor(signalNewConsumerTransportService: SignalNewConsumerTransport);
|
|
73
|
-
/**
|
|
74
|
-
* Handles new pipe producer events and updates relevant states.
|
|
75
|
-
* @param {Object} options - The options object containing necessary variables.
|
|
76
|
-
* @param {string} options.producerId - The ID of the producer.
|
|
77
|
-
* @param {string} options.islevel - The level of the producer.
|
|
78
|
-
* @param {any} options.nsock - The socket object.
|
|
79
|
-
* @param {any} options.parameters - Additional parameters required for the function.
|
|
80
|
-
* @returns {Promise<void>}
|
|
81
|
-
*/
|
|
82
|
-
newPipeProducer: ({ producerId, islevel, nsock, parameters, }: NewPipeProducerOptions) => Promise<void>;
|
|
71
|
+
newPipeProducer({ producerId, islevel, nsock, parameters, }: NewPipeProducerOptions): Promise<void>;
|
|
83
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<NewPipeProducer, never>;
|
|
84
73
|
static ɵprov: i0.ɵɵInjectableDeclaration<NewPipeProducer>;
|
|
85
74
|
}
|
|
75
|
+
export {};
|
|
@@ -41,14 +41,7 @@ export type ProducerClosedType = (options: ProducerClosedOptions) => Promise<voi
|
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
43
|
export declare class ProducerClosed {
|
|
44
|
-
|
|
45
|
-
* Handles the closing of a producer and resizes video elements.
|
|
46
|
-
* @param {Object} options - The options object containing necessary variables.
|
|
47
|
-
* @param {string} options.remoteProducerId - The ID of the remote producer.
|
|
48
|
-
* @param {any} options.parameters - Additional parameters required for the function.
|
|
49
|
-
* @returns {Promise<void>}
|
|
50
|
-
*/
|
|
51
|
-
producerClosed: ({ remoteProducerId, parameters, }: ProducerClosedOptions) => Promise<void>;
|
|
44
|
+
producerClosed({ remoteProducerId, parameters, }: ProducerClosedOptions): Promise<void>;
|
|
52
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProducerClosed, never>;
|
|
53
46
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProducerClosed>;
|
|
54
47
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { types } from 'mediasoup-client';
|
|
2
2
|
import { Socket } from 'socket.io-client';
|
|
3
3
|
import { PrepopulateUserMediaParameters, PrepopulateUserMediaType, CreateSendTransportParameters, CreateSendTransportType, ConnectSendTransportAudioParameters, ConnectSendTransportAudioType, SleepType } from '../@types/types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type Producer = types.Producer;
|
|
6
|
+
type ProducerCodecOptions = types.ProducerCodecOptions;
|
|
7
|
+
type ProducerOptions = types.ProducerOptions;
|
|
5
8
|
/**
|
|
6
9
|
* Handles the success of switching audio devices in a streaming context.
|
|
7
10
|
* @async
|
|
@@ -225,3 +228,4 @@ export declare class StreamSuccessAudioSwitch {
|
|
|
225
228
|
static ɵfac: i0.ɵɵFactoryDeclaration<StreamSuccessAudioSwitch, never>;
|
|
226
229
|
static ɵprov: i0.ɵɵInjectableDeclaration<StreamSuccessAudioSwitch>;
|
|
227
230
|
}
|
|
231
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
2
|
import { Participant, PrepopulateUserMediaParameters, ShowAlert, CreateSendTransportParameters, ConnectSendTransportAudioParameters, ResumeSendTransportAudioParameters, PrepopulateUserMediaType, CreateSendTransportType, ConnectSendTransportAudioType, ResumeSendTransportAudioType } from '../@types/types';
|
|
3
|
-
import {
|
|
3
|
+
import { types } from 'mediasoup-client';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type ProducerOptions = types.ProducerOptions;
|
|
5
6
|
export interface StreamSuccessAudioParameters extends CreateSendTransportParameters, ConnectSendTransportAudioParameters, ResumeSendTransportAudioParameters, PrepopulateUserMediaParameters {
|
|
6
7
|
socket: Socket;
|
|
7
8
|
participants: Participant[];
|
|
@@ -159,3 +160,4 @@ export declare class StreamSuccessAudio {
|
|
|
159
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<StreamSuccessAudio, never>;
|
|
160
161
|
static ɵprov: i0.ɵɵInjectableDeclaration<StreamSuccessAudio>;
|
|
161
162
|
}
|
|
163
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { types } from 'mediasoup-client';
|
|
2
2
|
import { Socket } from 'socket.io-client';
|
|
3
3
|
import { ConnectSendTransportVideoParameters, Participant, ShowAlert, CreateSendTransportParameters, ReorderStreamsParameters, SleepType, CreateSendTransportType, ConnectSendTransportVideoType, ReorderStreamsType, VParamsType, HParamsType } from '../@types/types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type Device = types.Device;
|
|
6
|
+
type ProducerOptions = types.ProducerOptions;
|
|
7
|
+
type Producer = types.Producer;
|
|
5
8
|
export interface StreamSuccessVideoParameters extends CreateSendTransportParameters, ConnectSendTransportVideoParameters, ReorderStreamsParameters {
|
|
6
9
|
socket: Socket;
|
|
7
10
|
participants: Participant[];
|
|
@@ -134,3 +137,4 @@ export declare class StreamSuccessVideo {
|
|
|
134
137
|
static ɵfac: i0.ɵɵFactoryDeclaration<StreamSuccessVideo, never>;
|
|
135
138
|
static ɵprov: i0.ɵɵInjectableDeclaration<StreamSuccessVideo>;
|
|
136
139
|
}
|
|
140
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Transport, BreakoutParticipant, Participant, EventType } from '../@types/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface TranslationConsumerSwitchParameters {
|
|
4
|
+
consumerTransports: Transport[];
|
|
5
|
+
roomName: string;
|
|
6
|
+
member: string;
|
|
7
|
+
updateConsumerTransports: (transports: Transport[]) => void;
|
|
8
|
+
breakOutRoomStarted?: boolean;
|
|
9
|
+
breakOutRoomEnded?: boolean;
|
|
10
|
+
breakoutRooms?: BreakoutParticipant[][];
|
|
11
|
+
limitedBreakRoom?: BreakoutParticipant[];
|
|
12
|
+
participants?: Participant[];
|
|
13
|
+
ref_participants?: Participant[];
|
|
14
|
+
islevel?: string;
|
|
15
|
+
eventType?: EventType;
|
|
16
|
+
hostNewRoom?: number;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export interface PauseOriginalProducerOptions {
|
|
20
|
+
originalProducerId: string;
|
|
21
|
+
speakerId?: string;
|
|
22
|
+
parameters: TranslationConsumerSwitchParameters;
|
|
23
|
+
}
|
|
24
|
+
export interface ResumeOriginalProducerOptions {
|
|
25
|
+
originalProducerId: string;
|
|
26
|
+
speakerId?: string;
|
|
27
|
+
parameters: TranslationConsumerSwitchParameters;
|
|
28
|
+
}
|
|
29
|
+
export interface StopConsumingTranslationOptions {
|
|
30
|
+
speakerId?: string;
|
|
31
|
+
language: string;
|
|
32
|
+
translationProducerMap: Record<string, Record<string, string>>;
|
|
33
|
+
parameters: TranslationConsumerSwitchParameters;
|
|
34
|
+
}
|
|
35
|
+
export declare class TranslationConsumerSwitch {
|
|
36
|
+
isSpeakerInMyBreakoutRoom(speakerName: string, parameters: TranslationConsumerSwitchParameters): boolean;
|
|
37
|
+
pauseOriginalProducer({ originalProducerId, speakerId, parameters, }: PauseOriginalProducerOptions): Promise<void>;
|
|
38
|
+
resumeOriginalProducer({ originalProducerId, speakerId, parameters, }: ResumeOriginalProducerOptions): Promise<void>;
|
|
39
|
+
isConsumingTranslationForSpeaker(speakerId: string, consumerTransports: Transport[], translationProducerMap: Map<string, {
|
|
40
|
+
translationProducerId: string;
|
|
41
|
+
originalProducerId: string;
|
|
42
|
+
language: string;
|
|
43
|
+
}>): {
|
|
44
|
+
consuming: boolean;
|
|
45
|
+
language?: string;
|
|
46
|
+
translationProducerId?: string;
|
|
47
|
+
originalProducerId?: string;
|
|
48
|
+
};
|
|
49
|
+
getActiveTranslationConsumers(translationProducerMap: Map<string, {
|
|
50
|
+
translationProducerId: string;
|
|
51
|
+
originalProducerId: string;
|
|
52
|
+
language: string;
|
|
53
|
+
}>, consumerTransports: Transport[]): Array<{
|
|
54
|
+
speakerId: string;
|
|
55
|
+
translationProducerId: string;
|
|
56
|
+
originalProducerId: string;
|
|
57
|
+
language: string;
|
|
58
|
+
}>;
|
|
59
|
+
findOriginalProducerForSpeaker(speakerId: string, allAudioStreams: Array<{
|
|
60
|
+
producerId: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}>): string | null;
|
|
64
|
+
stopConsumingTranslation(options: StopConsumingTranslationOptions): Promise<string | null>;
|
|
65
|
+
syncTranslationStateAfterBreakoutChange(translationProducerMap: Record<string, Record<string, string>>, speakerIdByProducerId: Record<string, string>, parameters: TranslationConsumerSwitchParameters): Promise<void>;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationConsumerSwitch, never>;
|
|
67
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationConsumerSwitch>;
|
|
68
|
+
}
|
|
@@ -27,86 +27,7 @@ export interface TriggerOptions {
|
|
|
27
27
|
parameters: TriggerParameters;
|
|
28
28
|
}
|
|
29
29
|
export type TriggerType = (options: TriggerOptions) => Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Triggers an update to the screen client based on the provided parameters.
|
|
32
|
-
*
|
|
33
|
-
* This function handles various conditions to determine the main screen person,
|
|
34
|
-
* adjusts the screen states, and emits an update to the screen client via socket.
|
|
35
|
-
*
|
|
36
|
-
* @param {TriggerOptions} options - The options for triggering the update.
|
|
37
|
-
* @param {string[]} options.ref_ActiveNames - Reference to the active names.
|
|
38
|
-
* @param {TriggerParameters} options.parameters - The parameters for the trigger.
|
|
39
|
-
* @returns {Promise<void>} A promise that resolves when the trigger is complete.
|
|
40
|
-
*
|
|
41
|
-
* @throws Will throw an error if the updateScreenClient operation fails.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```typescript
|
|
45
|
-
* await trigger({
|
|
46
|
-
* ref_ActiveNames: ["user1", "user2"],
|
|
47
|
-
* parameters: {
|
|
48
|
-
* socket: socketInstance,
|
|
49
|
-
* localSocket: socketInstance,
|
|
50
|
-
* roomName: "room1",
|
|
51
|
-
* screenStates: [{ mainScreenPerson: "user1", mainScreenFilled: true, adminOnMainScreen: false }],
|
|
52
|
-
* participants: [{ name: "admin", islevel: "2" }],
|
|
53
|
-
* updateDateState: 0,
|
|
54
|
-
* lastUpdate: null,
|
|
55
|
-
* nForReadjust: 0,
|
|
56
|
-
* eventType: "conference",
|
|
57
|
-
* shared: false,
|
|
58
|
-
* shareScreenStarted: false,
|
|
59
|
-
* whiteboardStarted: false,
|
|
60
|
-
* whiteboardEnded: false,
|
|
61
|
-
* updateUpdateDateState: (date) => {},
|
|
62
|
-
* updateLastUpdate: (date) => {},
|
|
63
|
-
* updateNForReadjust: (n) => {},
|
|
64
|
-
* autoAdjust: async ({ n, parameters }) => [n, 0],
|
|
65
|
-
* },
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
30
|
export declare class Trigger {
|
|
70
|
-
/**
|
|
71
|
-
* Triggers an update to the screen client based on the provided parameters.
|
|
72
|
-
*
|
|
73
|
-
* @param {TriggerOptions} options - The options for triggering the update.
|
|
74
|
-
* @param {string[]} options.ref_ActiveNames - Reference to the active names.
|
|
75
|
-
* @param {Parameters} options.parameters - The parameters for the trigger.
|
|
76
|
-
* @returns {Promise<void>} A promise that resolves when the trigger is complete.
|
|
77
|
-
*
|
|
78
|
-
* @throws Will throw an error if the updateScreenClient operation fails.
|
|
79
|
-
*
|
|
80
|
-
* @remarks
|
|
81
|
-
* This function handles various conditions to determine the main screen person,
|
|
82
|
-
* adjusts the screen states, and emits an update to the screen client via socket.
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```typescript
|
|
86
|
-
* await trigger({
|
|
87
|
-
* ref_ActiveNames: ["user1", "user2"],
|
|
88
|
-
* parameters: {
|
|
89
|
-
* socket: socketInstance,
|
|
90
|
-
* localSocket: socketInstance,
|
|
91
|
-
* roomName: "room1",
|
|
92
|
-
* screenStates: [{ mainScreenPerson: "user1", mainScreenFilled: true, adminOnMainScreen: false }],
|
|
93
|
-
* participants: [{ name: "admin", islevel: "2" }],
|
|
94
|
-
* updateDateState: 0,
|
|
95
|
-
* lastUpdate: null,
|
|
96
|
-
* nForReadjust: 0,
|
|
97
|
-
* eventType: "conference",
|
|
98
|
-
* shared: false,
|
|
99
|
-
* shareScreenStarted: false,
|
|
100
|
-
* whiteboardStarted: false,
|
|
101
|
-
* whiteboardEnded: false,
|
|
102
|
-
* updateUpdateDateState: (date) => {},
|
|
103
|
-
* updateLastUpdate: (date) => {},
|
|
104
|
-
* updateNForReadjust: (n) => {},
|
|
105
|
-
* autoAdjust: async ({ n, parameters }) => [n, 0],
|
|
106
|
-
* },
|
|
107
|
-
* });
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
31
|
trigger({ ref_ActiveNames, parameters }: TriggerOptions): Promise<void>;
|
|
111
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<Trigger, never>;
|
|
112
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<Trigger>;
|
|
@@ -78,30 +78,6 @@ export type UpdateMiniCardsGridType = (options: UpdateMiniCardsGridOptions) => P
|
|
|
78
78
|
* ```
|
|
79
79
|
*/
|
|
80
80
|
export declare class UpdateMiniCardsGrid {
|
|
81
|
-
/**
|
|
82
|
-
* Updates the mini cards grid based on the specified rows and columns.
|
|
83
|
-
*
|
|
84
|
-
* @param {object} options - The function parameters.
|
|
85
|
-
* @param {number} options.rows - The number of rows in the grid.
|
|
86
|
-
* @param {number} options.cols - The number of columns in the grid.
|
|
87
|
-
* @param {boolean} options.defal - Flag indicating whether to update the default grid or an alternative grid.
|
|
88
|
-
* @param {number} options.actualRows - The actual number of rows in the grid.
|
|
89
|
-
* @param {number} options.ind - The index parameter.
|
|
90
|
-
* @param {object} options.parameters - Additional parameters needed for the function.
|
|
91
|
-
* @param {function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
|
|
92
|
-
* @param {function} options.parameters.updateGridRows - Function to update the grid rows.
|
|
93
|
-
* @param {function} options.parameters.updateGridCols - Function to update the grid columns.
|
|
94
|
-
* @param {function} options.parameters.updateAltGridRows - Function to update the alternative grid rows.
|
|
95
|
-
* @param {function} options.parameters.updateAltGridCols - Function to update the alternative grid columns.
|
|
96
|
-
* @param {function} options.parameters.updateGridSizes - Function to update the grid sizes.
|
|
97
|
-
* @param {object} options.parameters.gridSizes - Object containing grid width and height.
|
|
98
|
-
* @param {string} options.parameters.paginationDirection - The direction of pagination ('horizontal' or 'vertical').
|
|
99
|
-
* @param {number} options.parameters.paginationHeightWidth - The height or width of pagination.
|
|
100
|
-
* @param {boolean} options.parameters.doPaginate - Flag indicating whether pagination is enabled.
|
|
101
|
-
* @param {object} options.parameters.componentSizes - Object containing container width and height.
|
|
102
|
-
* @param {string} options.parameters.eventType - The type of event ('chat', etc.).
|
|
103
|
-
* @returns {Promise<void>} - A Promise that resolves after updating the mini cards grid.
|
|
104
|
-
*/
|
|
105
81
|
updateMiniCardsGrid({ rows, cols, defal, actualRows, parameters, }: UpdateMiniCardsGridOptions): Promise<void>;
|
|
106
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateMiniCardsGrid, never>;
|
|
107
83
|
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateMiniCardsGrid>;
|