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
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
|
-
import { ValidateAlphanumeric } from '../../methods/utils/validate-alphanumeric.service';
|
|
3
2
|
import { ResponseJoinLocalRoom, PreJoinPageParameters } from '../../@types/types';
|
|
4
|
-
import { CheckLimitsAndMakeRequest } from '../../methods/utils/check-limits-and-make-request.service';
|
|
5
3
|
import { JoinRoomOnMediaSFU, JoinRoomOnMediaSFUType } from '../../methods/utils/join-room-on-media-sfu.service';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export interface JoinLocalRoomOptions {
|
|
@@ -28,112 +26,11 @@ export interface CheckMediasfuURLOptions {
|
|
|
28
26
|
localLink?: string;
|
|
29
27
|
}
|
|
30
28
|
export type CheckMediasfuURLType = (options: CheckMediasfuURLOptions) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Checks the MediaSFU URL and processes the necessary actions based on the URL's validity.
|
|
33
|
-
*
|
|
34
|
-
* @param {CheckMediasfuURLOptions} options - The options for checking and handling the MediaSFU URL.
|
|
35
|
-
* @param {ResponseJoinLocalRoom} options.data - The data received from the room join response.
|
|
36
|
-
* @param {string} options.member - The member identifier.
|
|
37
|
-
* @param {string} options.roomName - The name of the room to join.
|
|
38
|
-
* @param {string} options.islevel - The level of the user.
|
|
39
|
-
* @param {Socket} options.socket - The socket instance to use for communication.
|
|
40
|
-
* @param {PreJoinPageParameters} options.parameters - Additional parameters for pre-join page actions.
|
|
41
|
-
* @param {JoinRoomOnMediaSFUType} options.joinMediaSFURoom - The function to join a room on MediaSFU.
|
|
42
|
-
* @param {string} options.localLink - The local link to use for Community Edition.
|
|
43
|
-
*
|
|
44
|
-
* @returns {Promise<void>} A promise that resolves when the actions are complete.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```typescript
|
|
48
|
-
* const options = {
|
|
49
|
-
* data: {
|
|
50
|
-
* mediasfuURL: "https://example.com/meet/room123/secret",
|
|
51
|
-
* allowRecord: true,
|
|
52
|
-
* apiKey: "1234567890123456789012345678901234567890123456789012345678901234",
|
|
53
|
-
* apiUserName: "user123",
|
|
54
|
-
* },
|
|
55
|
-
* member: "user123",
|
|
56
|
-
* roomName: "s12345678",
|
|
57
|
-
* islevel: "1",
|
|
58
|
-
* socket: socketInstance,
|
|
59
|
-
* parameters: {
|
|
60
|
-
* someParameter: "value",
|
|
61
|
-
* },
|
|
62
|
-
* joinMediaSFURoom: joinRoomOnMediaSFU,
|
|
63
|
-
* localLink: "https://socketserver.example.com",
|
|
64
|
-
* };
|
|
65
|
-
*
|
|
66
|
-
* try {
|
|
67
|
-
* await checkMediasfuURL(options);
|
|
68
|
-
* console.log("MediaSFU URL processed successfully.");
|
|
69
|
-
* } catch (error) {
|
|
70
|
-
* console.error("Failed to process MediaSFU URL:", error);
|
|
71
|
-
* }
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
29
|
export declare class JoinLocalRoom {
|
|
75
|
-
private validateAlphanumericService;
|
|
76
|
-
private checkLimitsService;
|
|
77
30
|
private joinRoomOnMediaSFU;
|
|
78
|
-
constructor(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
*
|
|
82
|
-
* @param {CheckMediasfuURLOptions} options - The options for checking and handling the MediaSFU URL.
|
|
83
|
-
* @param {ResponseJoinLocalRoom} options.data - The data received from the room join response.
|
|
84
|
-
* @param {string} options.member - The member identifier.
|
|
85
|
-
* @param {string} options.roomName - The name of the room to join.
|
|
86
|
-
* @param {string} options.islevel - The level of the user.
|
|
87
|
-
* @param {Socket} options.socket - The socket instance to use for communication.
|
|
88
|
-
* @param {PreJoinPageParameters} options.parameters - Additional parameters for pre-join page actions.
|
|
89
|
-
* @param {JoinRoomOnMediaSFUType} options.joinMediaSFURoom - The function to join a room on MediaSFU.
|
|
90
|
-
* @param {string} options.localLink - The local link to use for Community Edition.
|
|
91
|
-
*
|
|
92
|
-
* @returns {Promise<void>} A promise that resolves when the actions are complete.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```typescript
|
|
96
|
-
* const options = {
|
|
97
|
-
* data: {
|
|
98
|
-
* mediasfuURL: "https://example.com/meet/room123/secret",
|
|
99
|
-
* allowRecord: true,
|
|
100
|
-
* apiKey: "1234567890123456789012345678901234567890123456789012345678901234",
|
|
101
|
-
* apiUserName: "user123",
|
|
102
|
-
* },
|
|
103
|
-
* member: "user123",
|
|
104
|
-
* roomName: "s12345678",
|
|
105
|
-
* islevel: "1",
|
|
106
|
-
* socket: socketInstance,
|
|
107
|
-
* parameters: {
|
|
108
|
-
* someParameter: "value",
|
|
109
|
-
* },
|
|
110
|
-
* joinMediaSFURoom: joinRoomOnMediaSFU,
|
|
111
|
-
* localLink: "https://socketserver.example.com",
|
|
112
|
-
* };
|
|
113
|
-
*
|
|
114
|
-
* try {
|
|
115
|
-
* await checkMediasfuURL(options);
|
|
116
|
-
* console.log("MediaSFU URL processed successfully.");
|
|
117
|
-
* } catch (error) {
|
|
118
|
-
* console.error("Failed to process MediaSFU URL:", error);
|
|
119
|
-
* }
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
joinLocalRoom(options: JoinLocalRoomOptions): Promise<ResponseJoinLocalRoom>;
|
|
123
|
-
/**
|
|
124
|
-
* Checks the MediaSFU URL and processes necessary actions based on its validity.
|
|
125
|
-
*
|
|
126
|
-
* @param {Object} options - Contains:
|
|
127
|
-
* - `data`: Data received from the room join response.
|
|
128
|
-
* - `member`: User identifier.
|
|
129
|
-
* - `roomName`: Name of the room to join.
|
|
130
|
-
* - `islevel`: User's level indicator.
|
|
131
|
-
* - `socket`: Socket instance for communication.
|
|
132
|
-
* - `parameters`: Additional parameters for pre-join page actions.
|
|
133
|
-
* - `joinMediaSFURoom`: Function to join a room on MediaSFU.
|
|
134
|
-
* - `localLink`: Local link to use for Community Edition.
|
|
135
|
-
*/
|
|
136
|
-
private checkMediasfuURL;
|
|
31
|
+
constructor(joinRoomOnMediaSFU: JoinRoomOnMediaSFU);
|
|
32
|
+
checkMediasfuURL: CheckMediasfuURLType;
|
|
33
|
+
joinLocalRoom: JoinLocalRoomType;
|
|
137
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<JoinLocalRoom, never>;
|
|
138
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<JoinLocalRoom>;
|
|
139
36
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
|
-
import { ValidateAlphanumeric } from '../../methods/utils/validate-alphanumeric.service';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export interface JoinRoomOptions {
|
|
5
4
|
socket: Socket;
|
|
@@ -49,23 +48,6 @@ export type JoinRoomType = (socket: Socket, roomName: string, islevel: string, m
|
|
|
49
48
|
* ```
|
|
50
49
|
*/
|
|
51
50
|
export declare class JoinRoom {
|
|
52
|
-
private validateAlphanumeric;
|
|
53
|
-
constructor(validateAlphanumeric: ValidateAlphanumeric);
|
|
54
|
-
/**
|
|
55
|
-
* Joins a user to a specified room via a socket connection.
|
|
56
|
-
*
|
|
57
|
-
* @param {Object} options - The options for joining the room.
|
|
58
|
-
* @param {Socket} options.socket - The socket instance to use for communication.
|
|
59
|
-
* @param {string} options.roomName - The name of the room to join.
|
|
60
|
-
* @param {string} options.islevel - The level of the user.
|
|
61
|
-
* @param {string} options.member - The member identifier.
|
|
62
|
-
* @param {string} options.sec - The security token.
|
|
63
|
-
* @param {string} options.apiUserName - The API username of the user.
|
|
64
|
-
*
|
|
65
|
-
* @returns {Promise<object>} A promise that resolves with the data received from the 'joinRoom' event or rejects with a validation error.
|
|
66
|
-
*
|
|
67
|
-
* @throws {Error} Throws an error if the user is banned, suspended, or if the host has not joined the room yet.
|
|
68
|
-
*/
|
|
69
51
|
joinRoom({ socket, roomName, islevel, member, sec, apiUserName, }: JoinRoomOptions): Promise<object>;
|
|
70
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<JoinRoom, never>;
|
|
71
53
|
static ɵprov: i0.ɵɵInjectableDeclaration<JoinRoom>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ShowAlert } from '../../@types/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface AddedAsPanelistData {
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AddedAsPanelistOptions {
|
|
7
|
+
data: AddedAsPanelistData;
|
|
8
|
+
showAlert?: ShowAlert;
|
|
9
|
+
}
|
|
10
|
+
export type AddedAsPanelistType = (options: AddedAsPanelistOptions) => Promise<void>;
|
|
11
|
+
export declare class AddedAsPanelist {
|
|
12
|
+
addedAsPanelist({ data, showAlert, }: AddedAsPanelistOptions): Promise<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddedAsPanelist, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddedAsPanelist>;
|
|
15
|
+
}
|
|
@@ -57,97 +57,8 @@ export interface AllMembersRestOptions {
|
|
|
57
57
|
apiToken: string;
|
|
58
58
|
}
|
|
59
59
|
export type AllMembersRestType = (options: AllMembersRestOptions) => Promise<void>;
|
|
60
|
-
/**
|
|
61
|
-
* Manages participant settings and UI updates, including connecting IPs, reordering streams,
|
|
62
|
-
* updating settings, and handling participant display based on various session parameters.
|
|
63
|
-
*
|
|
64
|
-
* @async
|
|
65
|
-
* @param {AllMembersRestOptions} options - Parameters for managing members.
|
|
66
|
-
* @param {Participant[]} options.members - The array of participant objects.
|
|
67
|
-
* @param {Settings} options.settings - The session settings for audio, video, screenshare, and chat.
|
|
68
|
-
* @param {string} [options.coHoste] - The current co-host name.
|
|
69
|
-
* @param {CoHostResponsibility[]} [options.coHostRes] - The responsibilities assigned to the co-host.
|
|
70
|
-
* @param {AllMembersRestParameters} options.parameters - Additional parameters for managing members and UI updates.
|
|
71
|
-
* @param {ConsumeSocket[]} options.consume_sockets - Array of sockets for participant communication.
|
|
72
|
-
* @param {string} options.apiUserName - API username for authentication.
|
|
73
|
-
* @param {string} options.apiKey - API key for authentication.
|
|
74
|
-
* @param {string} options.apiToken - API token for authentication.
|
|
75
|
-
*
|
|
76
|
-
* @returns {Promise<void>} A promise that resolves when updates and changes for members are completed.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```typescript
|
|
80
|
-
* const allMembersRestService = new AllMembersRest();
|
|
81
|
-
* await allMembersRestService.allMembersRest({
|
|
82
|
-
* members: [{ name: 'John', isBanned: false, isSuspended: false, audioID: '123', videoID: '456' }],
|
|
83
|
-
* settings: ['enabled', 'HD', 'allowed', 'public'],
|
|
84
|
-
* coHoste: 'Jane',
|
|
85
|
-
* coHostRes: ['manage-chat'],
|
|
86
|
-
* parameters: {
|
|
87
|
-
* participantsAll: [],
|
|
88
|
-
* participants: [],
|
|
89
|
-
* dispActiveNames: ['John'],
|
|
90
|
-
* requestList: [],
|
|
91
|
-
* coHost: '',
|
|
92
|
-
* coHostResponsibility: [],
|
|
93
|
-
* lock_screen: false,
|
|
94
|
-
* firstAll: false,
|
|
95
|
-
* membersReceived: false,
|
|
96
|
-
* roomRecvIPs: [],
|
|
97
|
-
* deferScreenReceived: false,
|
|
98
|
-
* screenId: null,
|
|
99
|
-
* shareScreenStarted: false,
|
|
100
|
-
* meetingDisplayType: 'grid',
|
|
101
|
-
* audioSetting: '',
|
|
102
|
-
* videoSetting: '',
|
|
103
|
-
* screenshareSetting: '',
|
|
104
|
-
* chatSetting: '',
|
|
105
|
-
* socket: mySocket,
|
|
106
|
-
* updateParticipantsAll: (participantsAll) => console.log(participantsAll),
|
|
107
|
-
* updateParticipants: (participants) => console.log(participants),
|
|
108
|
-
* updateRequestList: (requestList) => console.log(requestList),
|
|
109
|
-
* updateCoHost: (coHost) => console.log(coHost),
|
|
110
|
-
* updateCoHostResponsibility: (coHostRes) => console.log(coHostRes),
|
|
111
|
-
* updateFirstAll: (firstAll) => console.log(firstAll),
|
|
112
|
-
* updateMembersReceived: (membersReceived) => console.log(membersReceived),
|
|
113
|
-
* updateDeferScreenReceived: (deferScreenReceived) => console.log(deferScreenReceived),
|
|
114
|
-
* updateShareScreenStarted: (shareScreenStarted) => console.log(shareScreenStarted),
|
|
115
|
-
* updateAudioSetting: (audioSetting) => console.log(audioSetting),
|
|
116
|
-
* updateVideoSetting: (videoSetting) => console.log(videoSetting),
|
|
117
|
-
* updateScreenshareSetting: (screenshareSetting) => console.log(screenshareSetting),
|
|
118
|
-
* updateChatSetting: (chatSetting) => console.log(chatSetting),
|
|
119
|
-
* updateConsume_sockets: (sockets) => console.log(sockets),
|
|
120
|
-
* updateRoomRecvIPs: (ips) => console.log(ips),
|
|
121
|
-
* updateIsLoadingModalVisible: (visible) => console.log(visible),
|
|
122
|
-
* onScreenChanges: (params) => console.log('onScreenChanges called with', params),
|
|
123
|
-
* connectIps: async (params) => [['socket1'], ['ip1']],
|
|
124
|
-
* connectLocalIps: async (params) => [['socket1'], ['ip1']],
|
|
125
|
-
* sleep: async ({ ms }) => new Promise((resolve) => setTimeout(resolve, ms)),
|
|
126
|
-
* reorderStreams: async (params) => console.log('reorderStreams called with', params),
|
|
127
|
-
* },
|
|
128
|
-
* consume_sockets: [{ socketId: 'abc123' }],
|
|
129
|
-
* apiUserName: 'testUser',
|
|
130
|
-
* apiKey: 'apiKeyExample',
|
|
131
|
-
* apiToken: 'apiTokenExample',
|
|
132
|
-
* });
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
60
|
export declare class AllMembersRest {
|
|
136
|
-
|
|
137
|
-
* Handles various tasks related to participant management and UI updates.
|
|
138
|
-
* @param {Object} params - The parameters passed to the allMembersRest method.
|
|
139
|
-
* @param {Array} params.members - The array of participant members.
|
|
140
|
-
* @param {Array} params.settings - The array of settings.
|
|
141
|
-
* @param {boolean} params.coHoste - The co-host state.
|
|
142
|
-
* @param {boolean} params.coHostRes - The co-host responsibility state.
|
|
143
|
-
* @param {Object} params.parameters - The object containing parameters for the allMembersRest method.
|
|
144
|
-
* @param {Array} params.consume_sockets - The array of consume sockets.
|
|
145
|
-
* @param {string} params.apiUserName - The API username.
|
|
146
|
-
* @param {string} params.apiKey - The API key.
|
|
147
|
-
* @param {string} params.apiToken - The API token.
|
|
148
|
-
* @returns {void} - No return value.
|
|
149
|
-
*/
|
|
150
|
-
allMembersRest({ members, settings, coHoste, coHostRes, parameters, consume_sockets, apiUserName, apiKey, apiToken, }: AllMembersRestOptions): Promise<void>;
|
|
61
|
+
allMembersRest(options: AllMembersRestOptions): Promise<void>;
|
|
151
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<AllMembersRest, never>;
|
|
152
63
|
static ɵprov: i0.ɵɵInjectableDeclaration<AllMembersRest>;
|
|
153
64
|
}
|
|
@@ -54,95 +54,8 @@ export interface AllMembersOptions {
|
|
|
54
54
|
apiToken: string;
|
|
55
55
|
}
|
|
56
56
|
export type AllMembersType = (options: AllMembersOptions) => Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Manages participant-related operations, including updates for participant lists, requests, co-host settings,
|
|
59
|
-
* and other session details. This method filters out banned and suspended participants, reorders streams,
|
|
60
|
-
* connects IPs, and updates the UI.
|
|
61
|
-
*
|
|
62
|
-
* @async
|
|
63
|
-
* @param {AllMembersOptions} options - Parameters for managing all members.
|
|
64
|
-
* @param {Participant[]} options.members - The array of participant objects.
|
|
65
|
-
* @param {Request[]} options.requestss - The list of requests from participants.
|
|
66
|
-
* @param {string} options.coHoste - The current co-host name.
|
|
67
|
-
* @param {CoHostResponsibility[]} options.coHostRes - The responsibilities assigned to the co-host.
|
|
68
|
-
* @param {AllMembersParameters} options.parameters - Additional parameters for member management and UI updates.
|
|
69
|
-
* @param {ConsumeSocket[]} options.consume_sockets - Array of sockets for participant communication.
|
|
70
|
-
* @param {string} options.apiUserName - API username for authentication.
|
|
71
|
-
* @param {string} options.apiKey - API key for authentication.
|
|
72
|
-
* @param {string} options.apiToken - API token for authentication.
|
|
73
|
-
*
|
|
74
|
-
* @returns {Promise<void>} A promise that resolves when all members have been processed and updates are complete.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* const allMembersService = new AllMembers();
|
|
79
|
-
* await allMembersService.allMembers({
|
|
80
|
-
* members: [{ name: 'John', isBanned: false, isSuspended: false, audioID: '123', videoID: '456' }],
|
|
81
|
-
* requestss: [{ id: '1', name: 'Jane', type: 'fa-microphone' }],
|
|
82
|
-
* coHoste: 'Jane',
|
|
83
|
-
* coHostRes: ['manage-chat'],
|
|
84
|
-
* parameters: {
|
|
85
|
-
* participantsAll: [],
|
|
86
|
-
* participants: [],
|
|
87
|
-
* dispActiveNames: ['John'],
|
|
88
|
-
* requestList: [],
|
|
89
|
-
* coHost: '',
|
|
90
|
-
* coHostResponsibility: [],
|
|
91
|
-
* lock_screen: false,
|
|
92
|
-
* firstAll: false,
|
|
93
|
-
* membersReceived: false,
|
|
94
|
-
* roomRecvIPs: [],
|
|
95
|
-
* deferScreenReceived: false,
|
|
96
|
-
* screenId: null,
|
|
97
|
-
* shareScreenStarted: false,
|
|
98
|
-
* meetingDisplayType: 'grid',
|
|
99
|
-
* hostFirstSwitch: false,
|
|
100
|
-
* waitingRoomList: [],
|
|
101
|
-
* islevel: '1',
|
|
102
|
-
* socket: socket,
|
|
103
|
-
* updateParticipantsAll: (participantsAll) => console.log(participantsAll),
|
|
104
|
-
* updateParticipants: (participants) => console.log(participants),
|
|
105
|
-
* updateRequestList: (requestList) => console.log(requestList),
|
|
106
|
-
* updateCoHost: (coHost) => console.log(coHost),
|
|
107
|
-
* updateCoHostResponsibility: (coHostRes) => console.log(coHostRes),
|
|
108
|
-
* updateFirstAll: (firstAll) => console.log(firstAll),
|
|
109
|
-
* updateMembersReceived: (membersReceived) => console.log(membersReceived),
|
|
110
|
-
* updateDeferScreenReceived: (deferScreenReceived) => console.log(deferScreenReceived),
|
|
111
|
-
* updateShareScreenStarted: (shareScreenStarted) => console.log(shareScreenStarted),
|
|
112
|
-
* updateHostFirstSwitch: (hostFirstSwitch) => console.log(hostFirstSwitch),
|
|
113
|
-
* updateConsume_sockets: (sockets) => console.log(sockets),
|
|
114
|
-
* updateRoomRecvIPs: (ips) => console.log(ips),
|
|
115
|
-
* updateIsLoadingModalVisible: (visible) => console.log(visible),
|
|
116
|
-
* updateTotalReqWait: (total) => console.log(total),
|
|
117
|
-
* onScreenChanges: (params) => console.log('onScreenChanges called with', params),
|
|
118
|
-
* connectIps: async (params) => [['socket1'], ['ip1']],
|
|
119
|
-
* connectLocalIps: async (params) => [['socket1'], ['ip1']],
|
|
120
|
-
* sleep: async ({ ms }) => new Promise((resolve) => setTimeout(resolve, ms)),
|
|
121
|
-
* reorderStreams: async (params) => console.log('reorderStreams called with', params),
|
|
122
|
-
* },
|
|
123
|
-
* consume_sockets: [{ socketId: 'abc123' }],
|
|
124
|
-
* apiUserName: 'testUser',
|
|
125
|
-
* apiKey: 'apiKeyExample',
|
|
126
|
-
* apiToken: 'apiTokenExample',
|
|
127
|
-
* });
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
57
|
export declare class AllMembers {
|
|
131
|
-
|
|
132
|
-
* allMembers - A method for handling various tasks related to participant management and UI updates.
|
|
133
|
-
* @param {Object} params - The parameters passed to the allMembers method.
|
|
134
|
-
* @param {Array} params.members - The array of participant members.
|
|
135
|
-
* @param {Array} params.requestss - The array of requests.
|
|
136
|
-
* @param {boolean} params.coHoste - The co-host state.
|
|
137
|
-
* @param {boolean} params.coHostRes - The co-host responsibility state.
|
|
138
|
-
* @param {Object} params.parameters - The object containing parameters for the allMembers method.
|
|
139
|
-
* @param {Array} params.consume_sockets - The array of consume sockets.
|
|
140
|
-
* @param {string} params.apiUserName - The API username.
|
|
141
|
-
* @param {string} params.apiKey - The API key.
|
|
142
|
-
* @param {string} params.apiToken - The API token.
|
|
143
|
-
* @returns {void} - No return value.
|
|
144
|
-
*/
|
|
145
|
-
allMembers: ({ members, requestss, coHoste, coHostRes, parameters, consume_sockets, apiUserName, apiKey, apiToken, }: AllMembersOptions) => Promise<void>;
|
|
58
|
+
allMembers: (options: AllMembersOptions) => Promise<void>;
|
|
146
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<AllMembers, never>;
|
|
147
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<AllMembers>;
|
|
148
61
|
}
|
|
@@ -25,73 +25,8 @@ export interface ControlMediaHostOptions {
|
|
|
25
25
|
parameters: ControlMediaHostParameters;
|
|
26
26
|
}
|
|
27
27
|
export type ControlMediaHostType = (options: ControlMediaHostOptions) => Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Service for controlling participant media in a session, with options to manage audio, video, screenshare, and chat functionalities.
|
|
30
|
-
*
|
|
31
|
-
* @class
|
|
32
|
-
* @name ControlMediaHost
|
|
33
|
-
* @description This service provides the host with control over a participant's media (audio, video, screenshare, chat), with options to enable or disable these functionalities individually or all at once.
|
|
34
|
-
*
|
|
35
|
-
* @method
|
|
36
|
-
* controlMediaHost
|
|
37
|
-
* @async
|
|
38
|
-
* @param {ControlMediaHostOptions} options - Options to specify which media type to control and provide necessary parameters.
|
|
39
|
-
* @param {string} options.type - The media type to control ('audio', 'video', 'screenshare', 'chat', 'all').
|
|
40
|
-
* @param {ControlMediaHostParameters} options.parameters - Additional parameters, functions, and media streams necessary to perform the media control operations.
|
|
41
|
-
*
|
|
42
|
-
* @returns {Promise<void>} - A promise that resolves when the media control operation is complete.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```typescript
|
|
46
|
-
* const controlMediaHostService = new ControlMediaHost();
|
|
47
|
-
* await controlMediaHostService.controlMediaHost({
|
|
48
|
-
* type: 'audio',
|
|
49
|
-
* parameters: {
|
|
50
|
-
* updateAdminRestrictSetting: (value) => console.log(value),
|
|
51
|
-
* localStream: myLocalStream,
|
|
52
|
-
* updateLocalStream: (stream) => console.log(stream),
|
|
53
|
-
* updateAudioAlreadyOn: (value) => console.log(value),
|
|
54
|
-
* onScreenChanges: async () => { },
|
|
55
|
-
* disconnectSendTransportAudio: async () => { },
|
|
56
|
-
* getUpdatedAllParams: () => ({ }),
|
|
57
|
-
* }
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @remarks
|
|
62
|
-
* - This function handles the control of audio, video, screenshare, or chat for a participant based on the specified type.
|
|
63
|
-
* - For `all` type, it sequentially controls each media type to ensure all are turned off.
|
|
64
|
-
*/
|
|
65
28
|
export declare class ControlMediaHost {
|
|
66
|
-
|
|
67
|
-
* Controls the media (audio, video, screenshare, chat) of a participant as a host.
|
|
68
|
-
*
|
|
69
|
-
* @param {object} options - The function parameters.
|
|
70
|
-
* @param {string} options.type - The type of media to control ('audio', 'video', 'screenshare', 'chat', 'all').
|
|
71
|
-
* @param {object} options.parameters - Additional parameters needed for the function.
|
|
72
|
-
* @param {boolean} options.parameters.adminRestrictSetting - The setting to restrict host control.
|
|
73
|
-
* @param {function} options.parameters.updateAdminRestrictSetting - Function to update the adminRestrictSetting.
|
|
74
|
-
* @param {MediaStream} options.parameters.localStream - The local audio and video stream.
|
|
75
|
-
* @param {function} options.parameters.updateLocalStream - Function to update the local audio and video stream.
|
|
76
|
-
* @param {boolean} options.parameters.audioAlreadyOn - Indicates whether audio is currently on.
|
|
77
|
-
* @param {function} options.parameters.updateAudioAlreadyOn - Function to update the audioAlreadyOn status.
|
|
78
|
-
* @param {MediaStream} options.parameters.localStreamScreen - The local screenshare stream.
|
|
79
|
-
* @param {function} options.parameters.updateLocalStreamScreen - Function to update the local screenshare stream.
|
|
80
|
-
* @param {MediaStream} options.parameters.localStreamVideo - The local video stream.
|
|
81
|
-
* @param {function} options.parameters.updateLocalStreamVideo - Function to update the local video stream.
|
|
82
|
-
* @param {boolean} options.parameters.screenAlreadyOn - Indicates whether screenshare is currently on.
|
|
83
|
-
* @param {function} options.parameters.updateScreenAlreadyOn - Function to update the screenAlreadyOn status.
|
|
84
|
-
* @param {boolean} options.parameters.videoAlreadyOn - Indicates whether video is currently on.
|
|
85
|
-
* @param {function} options.parameters.updateVideoAlreadyOn - Function to update the videoAlreadyOn status.
|
|
86
|
-
* @param {boolean} options.parameters.chatAlreadyOn - Indicates whether chat is currently on.
|
|
87
|
-
* @param {function} options.parameters.updateChatAlreadyOn - Function to update the chatAlreadyOn status.
|
|
88
|
-
* @param {function} options.parameters.onScreenChanges - Function to handle changes in screen status.
|
|
89
|
-
* @param {function} options.parameters.stopShareScreen - Function to stop sharing the screen.
|
|
90
|
-
* @param {function} options.parameters.disconnectSendTransportVideo - Function to disconnect video send transport.
|
|
91
|
-
* @param {function} options.parameters.disconnectSendTransportAudio - Function to disconnect audio send transport.
|
|
92
|
-
* @param {function} options.parameters.disconnectSendTransportScreen - Function to disconnect screenshare send transport.
|
|
93
|
-
*/
|
|
94
|
-
controlMediaHost: ({ type, parameters }: ControlMediaHostOptions) => Promise<void>;
|
|
29
|
+
controlMediaHost: (options: ControlMediaHostOptions) => Promise<void>;
|
|
95
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ControlMediaHost, never>;
|
|
96
31
|
static ɵprov: i0.ɵɵInjectableDeclaration<ControlMediaHost>;
|
|
97
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConnectIpsType, ConnectIpsParameters, AltDomains, ConsumeSocket } from '../../@types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { types } from 'mediasoup-client';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
type RtpCapabilities = types.RtpCapabilities;
|
|
4
5
|
export interface GetDomainsParameters extends ConnectIpsParameters {
|
|
5
6
|
roomRecvIPs: string[];
|
|
6
7
|
rtpCapabilities: RtpCapabilities | null;
|
|
@@ -61,3 +62,4 @@ export declare class GetDomains {
|
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetDomains, never>;
|
|
62
63
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetDomains>;
|
|
63
64
|
}
|
|
65
|
+
export {};
|
|
@@ -34,7 +34,7 @@ export declare class MeetingStillThere {
|
|
|
34
34
|
* @param {Function} options.updateIsConfirmHereModalVisible - Function to update the visibility of the "still there?" modal.
|
|
35
35
|
* @returns {Promise<void>} A promise that resolves when the modal visibility is updated.
|
|
36
36
|
*/
|
|
37
|
-
meetingStillThere: ({ updateIsConfirmHereModalVisible }: MeetingStillThereOptions) => void
|
|
37
|
+
meetingStillThere: ({ updateIsConfirmHereModalVisible }: MeetingStillThereOptions) => Promise<void>;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<MeetingStillThere, never>;
|
|
39
39
|
static ɵprov: i0.ɵɵInjectableDeclaration<MeetingStillThere>;
|
|
40
40
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Participant } from '../../@types/types';
|
|
2
|
+
import { PanelistData } from './panelists-updated.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface PanelistFocusChangedData {
|
|
5
|
+
focusEnabled: boolean;
|
|
6
|
+
panelists: PanelistData[];
|
|
7
|
+
muteOthersMic: boolean;
|
|
8
|
+
muteOthersCamera: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface PanelistFocusChangedOptions {
|
|
11
|
+
data: PanelistFocusChangedData;
|
|
12
|
+
updatePanelistsFocused?: (focused: boolean) => void;
|
|
13
|
+
updateMuteOthersMic?: (mute: boolean) => void;
|
|
14
|
+
updateMuteOthersCamera?: (mute: boolean) => void;
|
|
15
|
+
updatePanelists?: (panelists: Participant[]) => void;
|
|
16
|
+
currentPanelistsFocused?: boolean;
|
|
17
|
+
currentPanelists?: Participant[];
|
|
18
|
+
onScreenChanges?: () => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export type PanelistFocusChangedType = (options: PanelistFocusChangedOptions) => Promise<void>;
|
|
21
|
+
export declare class PanelistFocusChanged {
|
|
22
|
+
panelistFocusChanged({ data, updatePanelistsFocused, updateMuteOthersMic, updateMuteOthersCamera, updatePanelists, currentPanelistsFocused, currentPanelists, onScreenChanges, }: PanelistFocusChangedOptions): Promise<void>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelistFocusChanged, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PanelistFocusChanged>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Participant } from '../../@types/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface PanelistData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PanelistsUpdatedData {
|
|
8
|
+
panelists: PanelistData[];
|
|
9
|
+
}
|
|
10
|
+
export interface PanelistsUpdatedOptions {
|
|
11
|
+
data: PanelistsUpdatedData;
|
|
12
|
+
updatePanelists?: (panelists: Participant[]) => void;
|
|
13
|
+
}
|
|
14
|
+
export type PanelistsUpdatedType = (options: PanelistsUpdatedOptions) => Promise<void>;
|
|
15
|
+
export declare class PanelistsUpdated {
|
|
16
|
+
panelistsUpdated({ data, updatePanelists, }: PanelistsUpdatedOptions): Promise<void>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelistsUpdated, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PanelistsUpdated>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PermissionConfig } from '../../methods/permissions-methods/update-permission-config.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface PermissionConfigUpdatedData {
|
|
4
|
+
config: PermissionConfig;
|
|
5
|
+
}
|
|
6
|
+
export interface PermissionConfigUpdatedOptions {
|
|
7
|
+
data: PermissionConfigUpdatedData;
|
|
8
|
+
updatePermissionConfig?: (config: PermissionConfig) => void;
|
|
9
|
+
}
|
|
10
|
+
export type PermissionConfigUpdatedType = (options: PermissionConfigUpdatedOptions) => Promise<void>;
|
|
11
|
+
export declare class PermissionConfigUpdated {
|
|
12
|
+
permissionConfigUpdated({ data, updatePermissionConfig, }: PermissionConfigUpdatedOptions): Promise<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionConfigUpdated, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PermissionConfigUpdated>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ShowAlert } from '../../@types/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface PermissionUpdatedData {
|
|
4
|
+
newLevel: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PermissionUpdatedOptions {
|
|
8
|
+
data: PermissionUpdatedData;
|
|
9
|
+
showAlert?: ShowAlert;
|
|
10
|
+
updateIslevel?: (level: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export type PermissionUpdatedType = (options: PermissionUpdatedOptions) => Promise<void>;
|
|
13
|
+
export declare class PermissionUpdated {
|
|
14
|
+
permissionUpdated({ data, showAlert, updateIslevel, }: PermissionUpdatedOptions): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionUpdated, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PermissionUpdated>;
|
|
17
|
+
}
|
|
@@ -39,7 +39,7 @@ export declare class PersonJoined {
|
|
|
39
39
|
* @param {Function} options.showAlert - A function to display an alert/notification.
|
|
40
40
|
* @returns {Promise<void>} A promise that resolves when the alert has been shown.
|
|
41
41
|
*/
|
|
42
|
-
personJoined: ({ name, showAlert }: PersonJoinedOptions) => void
|
|
42
|
+
personJoined: ({ name, showAlert }: PersonJoinedOptions) => Promise<void>;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<PersonJoined, never>;
|
|
44
44
|
static ɵprov: i0.ɵɵInjectableDeclaration<PersonJoined>;
|
|
45
45
|
}
|
|
@@ -26,87 +26,7 @@ export interface ProducerMediaPausedOptions {
|
|
|
26
26
|
parameters: ProducerMediaPausedParameters;
|
|
27
27
|
}
|
|
28
28
|
export type ProducerMediaPausedType = (options: ProducerMediaPausedOptions) => Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Service to handle the paused state of media for a producer.
|
|
31
|
-
*
|
|
32
|
-
* @class
|
|
33
|
-
* @name ProducerMediaPaused
|
|
34
|
-
* @description
|
|
35
|
-
* Handles the actions required when media is paused for a specified producer, including UI updates, participant state handling, and managing meeting display optimizations.
|
|
36
|
-
*
|
|
37
|
-
* @method
|
|
38
|
-
* producerMediaPaused
|
|
39
|
-
*
|
|
40
|
-
* @param {ProducerMediaPausedOptions} options - Options to specify the producer and event details:
|
|
41
|
-
* - `producerId` {string}: The ID of the paused producer.
|
|
42
|
-
* - `kind` {string}: The type of media paused (e.g., "audio", "video").
|
|
43
|
-
* - `name` {string}: Name of the producer whose media is paused.
|
|
44
|
-
* - `parameters` {ProducerMediaPausedParameters}: Configuration and state parameters for the meeting.
|
|
45
|
-
* - `activeSounds` {string[]}: Active audio streams currently displayed.
|
|
46
|
-
* - `meetingDisplayType` {string}: Current meeting layout type (e.g., "media", "video").
|
|
47
|
-
* - `meetingVideoOptimized` {boolean}: Indicates if video is optimized.
|
|
48
|
-
* - `participants` {Participant[]}: List of all meeting participants.
|
|
49
|
-
* - `oldSoundIds` {string[]}: List of previously active audio stream IDs.
|
|
50
|
-
* - `shared` {boolean}: Indicates if the screen is currently shared.
|
|
51
|
-
* - `shareScreenStarted` {boolean}: Indicates if screen sharing has started.
|
|
52
|
-
* - `updateMainWindow` {boolean}: Specifies if the main display window should update.
|
|
53
|
-
* - `hostLabel` {string}: The label representing the host participant.
|
|
54
|
-
* - `islevel` {string}: The access level of the participant.
|
|
55
|
-
* - `updateActiveSounds` {Function}: Updates the list of active audio streams.
|
|
56
|
-
* - `updateUpdateMainWindow` {Function}: Updates the status of the main display window.
|
|
57
|
-
* - `reorderStreams` {Function}: Reorders media streams for optimized display.
|
|
58
|
-
* - `prepopulateUserMedia` {Function}: Preloads user media based on display needs.
|
|
59
|
-
* - `reUpdateInter` {Function}: Refreshes participant interactions on the UI.
|
|
60
|
-
*
|
|
61
|
-
* @returns {Promise<void>} Resolves when media pause handling is complete.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* const options = {
|
|
65
|
-
* producerId: '12345',
|
|
66
|
-
* kind: 'audio',
|
|
67
|
-
* name: 'Participant A',
|
|
68
|
-
* parameters: {
|
|
69
|
-
* activeSounds: ['Participant B'],
|
|
70
|
-
* meetingDisplayType: 'video',
|
|
71
|
-
* meetingVideoOptimized: false,
|
|
72
|
-
* participants: [...],
|
|
73
|
-
* oldSoundIds: ['Participant A'],
|
|
74
|
-
* shared: false,
|
|
75
|
-
* shareScreenStarted: false,
|
|
76
|
-
* updateMainWindow: true,
|
|
77
|
-
* hostLabel: 'Host',
|
|
78
|
-
* islevel: '1',
|
|
79
|
-
* updateActiveSounds: (sounds) => { ... },
|
|
80
|
-
* updateUpdateMainWindow: (status) => { ... },
|
|
81
|
-
* reorderStreams: ({ add, screenChanged, parameters }) => { ... },
|
|
82
|
-
* prepopulateUserMedia: ({ name, parameters }) => { ... },
|
|
83
|
-
* reUpdateInter: ({ name, add, force, parameters }) => { ... }
|
|
84
|
-
* }
|
|
85
|
-
* };
|
|
86
|
-
*
|
|
87
|
-
* producerMediaPausedService.producerMediaPaused(options)
|
|
88
|
-
* .then(() => console.log('Media pause handled'))
|
|
89
|
-
* .catch(error => console.error('Error:', error));
|
|
90
|
-
*/
|
|
91
29
|
export declare class ProducerMediaPaused {
|
|
92
|
-
/**
|
|
93
|
-
* Handles the event when media is paused for a producer.
|
|
94
|
-
*
|
|
95
|
-
* @param {ProducerMediaPausedOptions} options - The options for the producer media paused event.
|
|
96
|
-
* @param {string} options.producerId - The ID of the producer.
|
|
97
|
-
* @param {string} options.kind - The kind of media (e.g., "audio", "video").
|
|
98
|
-
* @param {string} options.name - The name of the producer.
|
|
99
|
-
* @param {Parameters} options.parameters - The parameters for the event.
|
|
100
|
-
*
|
|
101
|
-
* @returns {Promise<void>} A promise that resolves when the media paused handling is complete.
|
|
102
|
-
*
|
|
103
|
-
* @description
|
|
104
|
-
* This function handles the event when media is paused for a producer. It performs the following tasks:
|
|
105
|
-
* - Updates the parameters.
|
|
106
|
-
* - Iterates through participants and updates the UI based on their muted status and other conditions.
|
|
107
|
-
* - Handles meeting display type and optimizes the UI accordingly.
|
|
108
|
-
* - Manages audio media by updating the relevant participant's state.
|
|
109
|
-
*/
|
|
110
30
|
producerMediaPaused: ({ producerId, kind, name, parameters, }: ProducerMediaPausedOptions) => Promise<void>;
|
|
111
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProducerMediaPaused, never>;
|
|
112
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProducerMediaPaused>;
|
|
@@ -83,7 +83,7 @@ export declare class ProducerMediaResumed {
|
|
|
83
83
|
*
|
|
84
84
|
* @returns {Promise<void>} A promise that resolves when the media has been resumed.
|
|
85
85
|
*/
|
|
86
|
-
producerMediaResumed: ({ name, parameters, }: ProducerMediaResumedOptions) => Promise<void>;
|
|
86
|
+
producerMediaResumed: ({ name, kind, parameters, }: ProducerMediaResumedOptions) => Promise<void>;
|
|
87
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProducerMediaResumed, never>;
|
|
88
88
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProducerMediaResumed>;
|
|
89
89
|
}
|