mediasfu-angular 2.2.2 → 2.2.4

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.
Files changed (194) hide show
  1. package/README.md +153 -54
  2. package/USAGE_COOKBOOK.md +202 -0
  3. package/dist/LICENSE +21 -0
  4. package/dist/README.md +153 -54
  5. package/dist/fesm2022/mediasfu-angular.mjs +21838 -12606
  6. package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
  7. package/dist/lib/@types/types.d.ts +22 -1
  8. package/dist/lib/@types/ui-overrides.types.d.ts +4 -0
  9. package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +1024 -997
  10. package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +2052 -1001
  11. package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +1527 -997
  12. package/dist/lib/components/breakout-components/room-list/room-list.component.d.ts +5 -1
  13. package/dist/lib/components/co-host-components/co-host-modal/co-host-modal.component.d.ts +988 -988
  14. package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +20 -6
  15. package/dist/lib/components/display-components/audio-card/audio-card.component.d.ts +17 -7
  16. package/dist/lib/components/display-components/audio-grid/audio-grid.component.d.ts +509 -1
  17. package/dist/lib/components/display-components/card-video-display/card-video-display.component.d.ts +3 -0
  18. package/dist/lib/components/display-components/control-buttons-alt-component/control-buttons-alt-component.component.d.ts +1 -1
  19. package/dist/lib/components/display-components/control-buttons-component/control-buttons-component.component.d.ts +34 -2
  20. package/dist/lib/components/display-components/control-buttons-component-touch/control-buttons-component-touch.component.d.ts +19 -0
  21. package/dist/lib/components/display-components/control-widgets/control-icon-badge-widget.component.d.ts +13 -0
  22. package/dist/lib/components/display-components/control-widgets/menu-participants-widget.component.d.ts +1 -0
  23. package/dist/lib/components/display-components/control-widgets/menu-widget.component.d.ts +2 -2
  24. package/dist/lib/components/display-components/control-widgets/message-widget.component.d.ts +2 -2
  25. package/dist/lib/components/display-components/control-widgets/record-timer-widget.component.d.ts +2 -0
  26. package/dist/lib/components/display-components/control-widgets/screenshare-widget.component.d.ts +5 -3
  27. package/dist/lib/components/display-components/flexible-grid/flexible-grid.component.d.ts +530 -2
  28. package/dist/lib/components/display-components/flexible-video/flexible-video.component.d.ts +41 -1
  29. package/dist/lib/components/display-components/loading-modal/loading-modal.component.d.ts +2029 -5
  30. package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +506 -1
  31. package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +497 -497
  32. package/dist/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.d.ts +18 -11
  33. package/dist/lib/components/display-components/mini-audio/mini-audio.component.d.ts +11 -3
  34. package/dist/lib/components/display-components/mini-card/mini-card.component.d.ts +1026 -999
  35. package/dist/lib/components/display-components/mini-card-audio/mini-card-audio.component.d.ts +9 -3
  36. package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +511 -1
  37. package/dist/lib/components/display-components/pagination/pagination.component.d.ts +34 -1
  38. package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +507 -1
  39. package/dist/lib/components/display-components/subtitle-overlay/subtitle-overlay.component.d.ts +6 -0
  40. package/dist/lib/components/display-components/video-card/video-card.component.d.ts +10 -6
  41. package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +1010 -1009
  42. package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +999 -999
  43. package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +999 -999
  44. package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +2318 -29330
  45. package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +490 -4179
  46. package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +576 -23394
  47. package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +1292 -61696
  48. package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +524 -26273
  49. package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +4 -1
  50. package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +3 -1
  51. package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +10 -1
  52. package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +518 -507
  53. package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +4 -1
  54. package/dist/lib/components/message-components/message-panel/message-panel.component.d.ts +1 -0
  55. package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +3 -3
  56. package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +1004 -1004
  57. package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +4 -0
  58. package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +989 -989
  59. package/dist/lib/components/panelists-components/panelists-modal/panelists-modal.component.d.ts +73 -0
  60. package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +1004 -1004
  61. package/dist/lib/components/permissions-components/permissions-modal/permissions-modal.component.d.ts +89 -0
  62. package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +989 -989
  63. package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +990 -989
  64. package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +1004 -1004
  65. package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +987 -987
  66. package/dist/lib/components/translation-components/translation-settings-modal/translation-settings-modal.component.d.ts +124 -0
  67. package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +989 -989
  68. package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +2062 -1000
  69. package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +3 -15
  70. package/dist/lib/consumers/auto-adjust.service.d.ts +0 -11
  71. package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +0 -7
  72. package/dist/lib/consumers/change-vids.service.d.ts +1 -1
  73. package/dist/lib/consumers/check-permission.service.d.ts +4 -1
  74. package/dist/lib/consumers/check-screen-share.service.d.ts +0 -18
  75. package/dist/lib/consumers/compare-active-names.service.d.ts +0 -16
  76. package/dist/lib/consumers/compare-screen-states.service.d.ts +0 -18
  77. package/dist/lib/consumers/connect-ips.service.d.ts +2 -25
  78. package/dist/lib/consumers/connect-local-ips.service.d.ts +1 -28
  79. package/dist/lib/consumers/disp-streams.service.d.ts +1 -110
  80. package/dist/lib/consumers/generate-page-content.service.d.ts +0 -17
  81. package/dist/lib/consumers/get-estimate.service.d.ts +0 -21
  82. package/dist/lib/consumers/mix-streams.service.d.ts +0 -19
  83. package/dist/lib/consumers/on-screen-changes.service.d.ts +1 -21
  84. package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +1 -14
  85. package/dist/lib/consumers/process-consumer-transports.service.d.ts +3 -57
  86. package/dist/lib/consumers/re-update-inter.service.d.ts +1 -39
  87. package/dist/lib/consumers/reorder-streams.service.d.ts +1 -35
  88. package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +2 -13
  89. package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +1 -13
  90. package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +1 -8
  91. package/dist/lib/consumers/translation-consumer-switch.service.d.ts +68 -0
  92. package/dist/lib/consumers/trigger.service.d.ts +0 -79
  93. package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +0 -24
  94. package/dist/lib/directives/with-override.directive.d.ts +2 -2
  95. package/dist/lib/methods/background-methods/launch-background.service.d.ts +2 -5
  96. package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +2 -5
  97. package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +2 -5
  98. package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +1 -1
  99. package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +2 -5
  100. package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +2 -0
  101. package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +2 -5
  102. package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +2 -5
  103. package/dist/lib/methods/message-methods/launch-messages.service.d.ts +2 -5
  104. package/dist/lib/methods/message-methods/send-message.service.d.ts +1 -1
  105. package/dist/lib/methods/panelists-methods/add-panelist.service.d.ts +19 -0
  106. package/dist/lib/methods/panelists-methods/focus-panelists.service.d.ts +19 -0
  107. package/dist/lib/methods/panelists-methods/remove-panelist.service.d.ts +17 -0
  108. package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +2 -5
  109. package/dist/lib/methods/permissions-methods/bulk-update-participant-permissions.service.d.ts +20 -0
  110. package/dist/lib/methods/permissions-methods/update-participant-permission.service.d.ts +19 -0
  111. package/dist/lib/methods/permissions-methods/update-permission-config.service.d.ts +29 -0
  112. package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +1 -1
  113. package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +1 -1
  114. package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +1 -1
  115. package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +1 -1
  116. package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +1 -12
  117. package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +1 -11
  118. package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +0 -94
  119. package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +1 -20
  120. package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +1 -12
  121. package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +0 -66
  122. package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +1 -33
  123. package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +1 -17
  124. package/dist/lib/methods/recording-methods/start-recording.service.d.ts +1 -92
  125. package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +1 -42
  126. package/dist/lib/methods/recording-methods/update-recording.service.d.ts +1 -94
  127. package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +2 -5
  128. package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +2 -5
  129. package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +1 -1
  130. package/dist/lib/methods/stream-methods/click-chat.service.d.ts +1 -1
  131. package/dist/lib/methods/utils/get-modal-position.util.d.ts +0 -3
  132. package/dist/lib/methods/utils/initial-values.util.d.ts +18 -1
  133. package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +8 -0
  134. package/dist/lib/methods/utils/producer/a-params.service.d.ts +2 -8
  135. package/dist/lib/methods/utils/producer/h-params.service.d.ts +2 -8
  136. package/dist/lib/methods/utils/producer/screen-params.service.d.ts +2 -8
  137. package/dist/lib/methods/utils/producer/v-params.service.d.ts +2 -8
  138. package/dist/lib/methods/utils/sound-player.service.d.ts +1 -1
  139. package/dist/lib/methods/utils/translation-languages.util.d.ts +341 -0
  140. package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +2 -5
  141. package/dist/lib/modern/display-components/modern-alert.component.d.ts +40 -0
  142. package/dist/lib/modern/display-components/modern-loading-modal.component.d.ts +37 -0
  143. package/dist/lib/modern/display-components/modern-meeting-progress-timer.component.d.ts +40 -0
  144. package/dist/lib/modern/display-components/modern-mini-card.component.d.ts +1064 -0
  145. package/dist/lib/modern/display-components/modern-pagination.component.d.ts +91 -0
  146. package/dist/lib/modern/display-components/modern-participants-counter-badge.component.d.ts +16 -0
  147. package/dist/lib/modern/modal-components/modern-co-host-modal.component.d.ts +63 -0
  148. package/dist/lib/modern/modal-components/modern-confirm-exit-modal.component.d.ts +42 -0
  149. package/dist/lib/modern/modal-components/modern-confirm-here-modal.component.d.ts +39 -0
  150. package/dist/lib/modern/modal-components/modern-display-settings-modal.component.d.ts +59 -0
  151. package/dist/lib/modern/modal-components/modern-event-settings-modal.component.d.ts +80 -0
  152. package/dist/lib/modern/modal-components/modern-media-settings-modal.component.d.ts +72 -0
  153. package/dist/lib/modern/modal-components/modern-menu-modal.component.d.ts +48 -0
  154. package/dist/lib/modern/modal-components/modern-messages-modal.component.d.ts +58 -0
  155. package/dist/lib/modern/modal-components/modern-participants-modal.component.d.ts +49 -0
  156. package/dist/lib/modern/modal-components/modern-poll-modal.component.d.ts +54 -0
  157. package/dist/lib/modern/modal-components/modern-recording-modal.component.d.ts +39 -0
  158. package/dist/lib/modern/modal-components/modern-requests-modal.component.d.ts +61 -0
  159. package/dist/lib/modern/modal-components/modern-share-event-modal.component.d.ts +39 -0
  160. package/dist/lib/modern/modal-components/modern-waiting-room-modal.component.d.ts +55 -0
  161. package/dist/lib/modern/primitives/modern-button.component.d.ts +10 -0
  162. package/dist/lib/modern/primitives/modern-entry-shell.component.d.ts +6 -0
  163. package/dist/lib/modern/primitives/modern-field.component.d.ts +32 -0
  164. package/dist/lib/modern/primitives/modern-sidebar-panel.component.d.ts +24 -0
  165. package/dist/lib/modern/primitives/modern-surface.component.d.ts +7 -0
  166. package/dist/lib/modern/utils/render-mode.utils.d.ts +3 -0
  167. package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +0 -9
  168. package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +0 -19
  169. package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +5 -62
  170. package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +0 -18
  171. package/dist/lib/producers/producer-emits/join-local-room.service.d.ts +3 -106
  172. package/dist/lib/producers/producer-emits/join-room.service.d.ts +0 -18
  173. package/dist/lib/producers/socket-receive-methods/added-as-panelist.service.d.ts +15 -0
  174. package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +1 -90
  175. package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +1 -88
  176. package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +1 -66
  177. package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +1 -1
  178. package/dist/lib/producers/socket-receive-methods/panelist-focus-changed.service.d.ts +25 -0
  179. package/dist/lib/producers/socket-receive-methods/panelists-updated.service.d.ts +19 -0
  180. package/dist/lib/producers/socket-receive-methods/permission-config-updated.service.d.ts +15 -0
  181. package/dist/lib/producers/socket-receive-methods/permission-updated.service.d.ts +17 -0
  182. package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +1 -1
  183. package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +0 -80
  184. package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +1 -1
  185. package/dist/lib/producers/socket-receive-methods/receive-control-media.service.d.ts +21 -0
  186. package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +1 -5
  187. package/dist/lib/producers/socket-receive-methods/removed-from-panelists.service.d.ts +15 -0
  188. package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +1 -1
  189. package/dist/lib/producers/socket-receive-methods/translation-receive-methods.service.d.ts +20 -0
  190. package/dist/lib/services/live-subtitle.service.d.ts +15 -0
  191. package/dist/lib/sockets/socket-manager.service.d.ts +1 -2
  192. package/dist/public-api.d.ts +42 -1
  193. package/package.json +106 -95
  194. package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +0 -177
@@ -424,22 +424,10 @@ export declare class Whiteboard implements OnInit, OnDestroy, OnChanges {
424
424
  undo(): void;
425
425
  redo(): void;
426
426
  saveState(): void;
427
- findShape(x: number, y: number): Shape | undefined;
427
+ findShape(x: number, y: number): Shape;
428
428
  drawSelection(shape: any): void;
429
- getResizeHandles(shape: any): ({
430
- isCenter: boolean;
431
- x: any;
432
- y: any;
433
- } | {
434
- isCenter: boolean;
435
- x: any;
436
- y: any;
437
- })[];
438
- getHandleAtPosition(x: number, y: number): {
439
- isCenter: boolean;
440
- x: any;
441
- y: any;
442
- } | null | undefined;
429
+ getResizeHandles(shape: any): any[];
430
+ getHandleAtPosition(x: number, y: number): any;
443
431
  resizeShape(shape: any, handle: any, x: number, y: number): void;
444
432
  moveShape(shape: any, dx: number, dy: number): void;
445
433
  downloadCanvas(tempCanvas: HTMLCanvasElement): void;
@@ -34,17 +34,6 @@ export type AutoAdjustType = (options: AutoAdjustOptions) => Promise<number[]>;
34
34
  * ```
35
35
  */
36
36
  export declare class AutoAdjust {
37
- /**
38
- * Adjusts values based on the provided options.
39
- *
40
- * @param {AutoAdjustOptions} options - The options for auto adjustment.
41
- * @param {number} options.n - The number of participants.
42
- * @param {string} options.eventType - The type of event (e.g., 'broadcast', 'chat', 'conference').
43
- * @param {boolean} options.shareScreenStarted - Indicates if screen sharing has started.
44
- * @param {boolean} options.shared - Indicates if something is shared.
45
- *
46
- * @returns {Promise<number[]>} A promise that resolves to an array containing the adjusted values.
47
- */
48
37
  autoAdjust({ n, eventType, shareScreenStarted, shared, }: AutoAdjustOptions): Promise<number[]>;
49
38
  static ɵfac: i0.ɵɵFactoryDeclaration<AutoAdjust, never>;
50
39
  static ɵprov: i0.ɵɵInjectableDeclaration<AutoAdjust>;
@@ -22,13 +22,6 @@ export type CalculateRowsAndColumnsType = (options: CalculateRowsAndColumnsOptio
22
22
  * ```
23
23
  */
24
24
  export declare class CalculateRowsAndColumns {
25
- /**
26
- * Calculates the number of rows and columns needed to display a given number of items in a grid.
27
- *
28
- * @param {CalculateRowsAndColumnsOptions} options - The options for calculating rows and columns.
29
- * @param {number} options.n - The number of items to display.
30
- * @returns {[number, number]} A tuple containing the number of rows and columns.
31
- */
32
25
  calculateRowsAndColumns({ n }: CalculateRowsAndColumnsOptions): [number, number];
33
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CalculateRowsAndColumns, never>;
34
27
  static ɵprov: i0.ɵɵInjectableDeclaration<CalculateRowsAndColumns>;
@@ -196,7 +196,7 @@ export type ChangeVidsType = (options: ChangeVidsOptions) => Promise<void>;
196
196
  * ```
197
197
  */
198
198
  export declare class ChangeVids {
199
- changeVids: ({ screenChanged, parameters }: ChangeVidsOptions) => Promise<void>;
199
+ changeVids({ screenChanged, parameters }: ChangeVidsOptions): Promise<void>;
200
200
  static ɵfac: i0.ɵɵFactoryDeclaration<ChangeVids, never>;
201
201
  static ɵprov: i0.ɵɵInjectableDeclaration<ChangeVids>;
202
202
  }
@@ -1,3 +1,4 @@
1
+ import { PermissionConfig } from '../methods/permissions-methods/update-permission-config.service';
1
2
  import * as i0 from "@angular/core";
2
3
  export interface CheckPermissionOptions {
3
4
  audioSetting: string;
@@ -5,6 +6,8 @@ export interface CheckPermissionOptions {
5
6
  screenshareSetting: string;
6
7
  chatSetting: string;
7
8
  permissionType: 'audioSetting' | 'videoSetting' | 'screenshareSetting' | 'chatSetting';
9
+ permissionConfig?: PermissionConfig | null;
10
+ participantLevel?: string;
8
11
  }
9
12
  export type CheckPermissionType = (options: CheckPermissionOptions) => Promise<number>;
10
13
  /**
@@ -45,7 +48,7 @@ export declare class CheckPermission {
45
48
  * @returns {Promise<number>} - Returns 0 if the setting is "allow", 1 if the setting is "approval", and 2 for other settings or invalid permission types.
46
49
  * @throws Will throw an error if an unexpected error occurs during the permission check.
47
50
  */
48
- checkPermission({ permissionType, audioSetting, videoSetting, screenshareSetting, chatSetting, }: CheckPermissionOptions): Promise<number>;
51
+ checkPermission({ permissionType, audioSetting, videoSetting, screenshareSetting, chatSetting, permissionConfig, participantLevel, }: CheckPermissionOptions): Promise<number>;
49
52
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckPermission, never>;
50
53
  static ɵprov: i0.ɵɵInjectableDeclaration<CheckPermission>;
51
54
  }
@@ -52,24 +52,6 @@ export type CheckScreenShareType = (options: CheckScreenShareOptions) => Promise
52
52
  * // Output: Logic to request screen sharing will be executed.
53
53
  */
54
54
  export declare class CheckScreenShare {
55
- /**
56
- * Checks the current screen sharing status and either stops or requests screen sharing based on the provided parameters.
57
- *
58
- * @param {CheckScreenShareOptions} options - The options for checking screen share.
59
- * @param {Object} options.parameters - The parameters for screen sharing.
60
- * @param {boolean} options.parameters.shared - Indicates if the screen is currently being shared.
61
- * @param {Function} [options.parameters.showAlert] - Function to show alerts.
62
- * @param {boolean} options.parameters.whiteboardStarted - Indicates if the whiteboard session has started.
63
- * @param {boolean} options.parameters.whiteboardEnded - Indicates if the whiteboard session has ended.
64
- * @param {boolean} options.parameters.breakOutRoomStarted - Indicates if the breakout room session has started.
65
- * @param {boolean} options.parameters.breakOutRoomEnded - Indicates if the breakout room session has ended.
66
- * @param {Function} options.parameters.stopShareScreen - Function to stop screen sharing.
67
- * @param {Function} options.parameters.requestScreenShare - Function to request screen sharing.
68
- *
69
- * @returns {Promise<void>} A promise that resolves when the screen sharing status has been checked and the appropriate action has been taken.
70
- *
71
- * @throws Will log an error message if an error occurs during the process.
72
- */
73
55
  checkScreenShare: ({ parameters }: CheckScreenShareOptions) => Promise<void>;
74
56
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckScreenShare, never>;
75
57
  static ɵprov: i0.ɵɵInjectableDeclaration<CheckScreenShare>;
@@ -46,22 +46,6 @@ export type CompareActiveNamesType = (options: CompareActiveNamesOptions) => Pro
46
46
  * // If 'Bob' is not in the previous active names, it will trigger the action.
47
47
  */
48
48
  export declare class CompareActiveNames {
49
- /**
50
- * Compares the current active names with the previous active names and triggers an action if there are changes.
51
- *
52
- * @param {Object} options - The options for comparing active names.
53
- * @param {boolean} [options.restart=false] - Whether to restart the comparison.
54
- * @param {CompareActiveNamesOptions} options.parameters - The parameters for the comparison.
55
- * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
56
- * @param {string[]} options.parameters.activeNames - The current active names.
57
- * @param {string[]} options.parameters.prevActiveNames - The previous active names.
58
- * @param {Function} options.parameters.updatePrevActiveNames - Function to update the previous active names.
59
- * @param {Function} options.parameters.trigger - Function to trigger an action when names change.
60
- *
61
- * @returns {Promise<void>} A promise that resolves when the comparison is complete.
62
- *
63
- * @throws Will log an error message if an error occurs during the comparison.
64
- */
65
49
  compareActiveNames({ restart, parameters, }: CompareActiveNamesOptions): Promise<void>;
66
50
  static ɵfac: i0.ɵɵFactoryDeclaration<CompareActiveNames, never>;
67
51
  static ɵprov: i0.ɵɵInjectableDeclaration<CompareActiveNames>;
@@ -51,24 +51,6 @@ export type CompareScreenStatesType = (options: CompareScreenStatesOptions) => P
51
51
  * // If any screen state has changed, the trigger function will be called accordingly.
52
52
  */
53
53
  export declare class CompareScreenStates {
54
- /**
55
- * Compares the current screen states with the previous screen states and triggers actions based on changes.
56
- *
57
- * @param {Object} options - The options for comparing screen states.
58
- * @param {boolean} [options.restart=false] - Whether to restart the comparison process.
59
- * @param {CompareScreenStatesOptions} options.parameters - The parameters for the comparison.
60
- * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
61
- * @param {string} options.parameters.recordingDisplayType - The type of display being recorded.
62
- * @param {boolean} options.parameters.recordingVideoOptimized - Whether the recording is optimized for video.
63
- * @param {Array<ScreenState>} options.parameters.screenStates - The current screen states.
64
- * @param {Array<ScreenState>} options.parameters.prevScreenStates - The previous screen states.
65
- * @param {Array<string>} options.parameters.activeNames - The active names in the current context.
66
- * @param {Function} options.parameters.trigger - Function to trigger actions based on changes.
67
- *
68
- * @returns {Promise<void>} A promise that resolves when the comparison and any triggered actions are complete.
69
- *
70
- * @throws Will log an error message if an error occurs during the comparison process.
71
- */
72
54
  compareScreenStates({ restart, parameters, }: CompareScreenStatesOptions): Promise<void>;
73
55
  static ɵfac: i0.ɵɵFactoryDeclaration<CompareScreenStates, never>;
74
56
  static ɵprov: i0.ɵɵInjectableDeclaration<CompareScreenStates>;
@@ -1,4 +1,3 @@
1
- import { SocketManager } from '../sockets/socket-manager.service';
2
1
  import { NewPipeProducer } from './socket-receive-methods/new-pipe-producer.service';
3
2
  import { ProducerClosed } from './socket-receive-methods/producer-closed.service';
4
3
  import { JoinConsumeRoom } from './socket-receive-methods/join-consume-room.service';
@@ -70,33 +69,11 @@ export type ConnectIpsType = (options: ConnectIpsOptions) => Promise<[Record<str
70
69
  * ```
71
70
  */
72
71
  export declare class ConnectIps {
73
- private socketManagerService;
74
72
  private newPipeProducerService;
75
73
  private producerClosedService;
76
74
  private joinConsumeRoomService;
77
- constructor(socketManagerService: SocketManager, newPipeProducerService: NewPipeProducer, producerClosedService: ProducerClosed, joinConsumeRoomService: JoinConsumeRoom);
78
- /**
79
- * Connects to remote IPs and manages socket connections.
80
- *
81
- * @param {Object} options - The options for connecting IPs.
82
- * @param {Record<string, any>[]} options.consume_sockets - The array of current socket connections.
83
- * @param {string[]} options.remIP - The list of remote IPs to connect to.
84
- * @param {string} options.apiUserName - The API username for authentication.
85
- * @param {string} [options.apiKey] - The API key for authentication.
86
- * @param {string} [options.apiToken] - The API token for authentication.
87
- * @param {Function} [options.newProducerMethod=newPipeProducer] - The method to handle new pipe producer events.
88
- * @param {Function} [options.closedProducerMethod=producerClosed] - The method to handle producer closed events.
89
- * @param {Function} [options.joinConsumeRoomMethod=joinConsumeRoom] - The method to handle joining a consuming room.
90
- * @param {Object} options.parameters - Additional parameters.
91
- * @param {string[]} options.parameters.roomRecvIPs - The list of IPs that have been received in the room.
92
- * @param {Function} options.parameters.updateRoomRecvIPs - The function to update the room received IPs.
93
- * @param {Function} options.parameters.updateConsume_sockets - The function to update the consume sockets.
94
- *
95
- * @returns {Promise<[Record<string, any>[], string[]]>} A promise that resolves to an array containing the updated consume sockets and room received IPs.
96
- *
97
- * @throws Will throw an error if required parameters are missing or if there is an issue connecting to a remote IP.
98
- */
99
- connectIps: ({ consume_sockets, remIP, apiUserName, apiKey, apiToken, newProducerMethod, closedProducerMethod, joinConsumeRoomMethod, parameters, }: ConnectIpsOptions) => Promise<any>;
75
+ constructor(newPipeProducerService: NewPipeProducer, producerClosedService: ProducerClosed, joinConsumeRoomService: JoinConsumeRoom);
76
+ connectIps: ConnectIpsType;
100
77
  static ɵfac: i0.ɵɵFactoryDeclaration<ConnectIps, never>;
101
78
  static ɵprov: i0.ɵɵInjectableDeclaration<ConnectIps>;
102
79
  }
@@ -48,34 +48,7 @@ export declare class ConnectLocalIps {
48
48
  private newPipeProducerService;
49
49
  private producerClosedService;
50
50
  constructor(newPipeProducerService: NewPipeProducer, producerClosedService: ProducerClosed);
51
- /**
52
- * Connects to remote IPs and manages socket connections.
53
- *
54
- * This method establishes connections to remote IPs for media streaming, handles new pipe producer events,
55
- * and manages producer closure events. It updates the necessary state in the application to reflect
56
- * the current connections and stream configurations.
57
- *
58
- * @param {ConnectLocalIpsOptions} options - The options for connecting IPs.
59
- * @param {Socket} options.socket - The socket connection to use for communication.
60
- * @param {Function} [options.newProducerMethod] - The method to handle new pipe producer events (default: newPipeProducer).
61
- * @param {Function} [options.closedProducerMethod] - The method to handle producer closed events (default: producerClosed).
62
- * @param {ConnectLocalIpsParameters} options.parameters - Additional parameters for the operation.
63
- *
64
- * @returns {Promise<void>} A promise that resolves when the connection is established.
65
- *
66
- * @throws Will throw an error if required parameters are missing or if there is an issue connecting to a remote IP.
67
- *
68
- * @example
69
- * ```typescript
70
- * const result = await connectLocalIps({
71
- * socket,
72
- * newProducerMethod: newPipeProducer,
73
- * closedProducerMethod: producerClosed,
74
- * parameters,
75
- * });
76
- * ```
77
- */
78
- connectLocalIps: ({ socket, newProducerMethod, closedProducerMethod, parameters, }: ConnectLocalIpsOptions) => Promise<void>;
51
+ connectLocalIps: ConnectLocalIpsType;
79
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ConnectLocalIps, never>;
80
53
  static ɵprov: i0.ɵɵInjectableDeclaration<ConnectLocalIps>;
81
54
  }
@@ -68,117 +68,8 @@ export interface DispStreamsOptions {
68
68
  inBreakRoom?: boolean;
69
69
  }
70
70
  export type DispStreamsType = (options: DispStreamsOptions) => Promise<void>;
71
- /**
72
- * Function to display streams based on various parameters and conditions.
73
- *
74
- * @param {DispStreamsOptions} options - The options object.
75
- * @param {Array<(Stream | Participant)>} options.lStreams - List of streams to display.
76
- * @param {number} options.ind - Index of the current stream.
77
- * @param {boolean} [options.auto=false] - Flag to indicate if the function should run automatically.
78
- * @param {boolean} [options.ChatSkip=false] - Flag to indicate if chat should be skipped.
79
- * @param {string|null} [options.forChatID=null] - ID for chat reference.
80
- * @param {DispStreamsParameters} options.parameters - Parameters object containing various settings and functions.
81
- * @param {number} [options.breakRoom=-1] - Break room number.
82
- * @param {boolean} [options.inBreakRoom=false] - Flag to indicate if in break room.
83
- *
84
- * @returns {Promise<void>} A promise that resolves when the function completes.
85
- *
86
- * @async
87
- *
88
- * @example
89
- * ```typescript
90
- * const options = {
91
- * lStreams: [...], // Your streams data here
92
- * ind: 0,
93
- * auto: true,
94
- * ChatSkip: false,
95
- * parameters: {
96
- * consumerTransports: [],
97
- * streamNames: [],
98
- * audStreamNames: [],
99
- * participants: [],
100
- * ref_participants: [],
101
- * recordingDisplayType: 'video',
102
- * recordingVideoOptimized: false,
103
- * meetingDisplayType: 'video',
104
- * meetingVideoOptimized: false,
105
- * currentUserPage: 1,
106
- * hostLabel: 'Host',
107
- * mainHeightWidth: 100,
108
- * prevMainHeightWidth: 100,
109
- * prevDoPaginate: false,
110
- * doPaginate: false,
111
- * firstAll: false,
112
- * shared: false,
113
- * shareScreenStarted: false,
114
- * shareEnded: false,
115
- * oldAllStreams: [],
116
- * updateMainWindow: false,
117
- * remoteProducerId: null,
118
- * activeNames: [],
119
- * dispActiveNames: [],
120
- * p_dispActiveNames: [],
121
- * nForReadjustRecord: 0,
122
- * first_round: false,
123
- * lock_screen: false,
124
- * chatRefStreams: [],
125
- * eventType: 'normal',
126
- * islevel: '1',
127
- * localStreamVideo: null,
128
- * breakOutRoomStarted: false,
129
- * breakOutRoomEnded: false,
130
- * keepBackground: false,
131
- * virtualStream: null,
132
- * updateActiveNames: (names) => {},
133
- * updateDispActiveNames: (names) => {},
134
- * updateLStreams: (streams) => {},
135
- * updateChatRefStreams: (streams) => {},
136
- * updateNForReadjustRecord: (n) => {},
137
- * updateUpdateMainWindow: (value) => {},
138
- * updateShowMiniView: (value) => {},
139
- * prepopulateUserMedia: async () => {},
140
- * rePort: async () => {},
141
- * processConsumerTransports: async () => {},
142
- * resumePauseStreams: async () => {},
143
- * readjust: async () => {},
144
- * addVideosGrid: async () => {},
145
- * getEstimate: async () => {},
146
- * checkGrid: async () => {},
147
- * resumePauseAudioStreams: async () => {},
148
- * getUpdatedAllParams: () => options.parameters,
149
- * },
150
- * breakRoom: -1,
151
- * inBreakRoom: false,
152
- * };
153
- *
154
- * dispStreamsService.dispStreams(options)
155
- * .then(() => {
156
- * console.log('Streams displayed successfully');
157
- * })
158
- * .catch((error) => {
159
- * console.error('Error displaying streams:', error);
160
- * });
161
- * ```
162
- */
163
71
  export declare class DispStreams {
164
- /**
165
- * Function to display streams based on various parameters and conditions.
166
- *
167
- * @param {Object} options - The options object.
168
- * @param {Array} options.lStreams - List of streams.
169
- * @param {number} options.ind - Index of the current stream.
170
- * @param {boolean} [options.auto=false] - Flag to indicate if the function should run automatically.
171
- * @param {boolean} [options.ChatSkip=false] - Flag to indicate if chat should be skipped.
172
- * @param {string|null} [options.forChatID=null] - ID for chat reference.
173
- * @param {Object} options.parameters - Parameters object containing various settings and functions.
174
- * @param {number} [options.breakRoom=-1] - Break room number.
175
- * @param {boolean} [options.inBreakRoom=false] - Flag to indicate if in break room.
176
- *
177
- * @returns {Promise<void>} - A promise that resolves when the function completes.
178
- *
179
- * @async
180
- */
181
- dispStreams: ({ lStreams, ind, auto, ChatSkip, forChatID, parameters, breakRoom, inBreakRoom, }: DispStreamsOptions) => Promise<void>;
72
+ dispStreams({ lStreams, ind, auto, ChatSkip, forChatCard, forChatID, parameters, breakRoom, inBreakRoom, }: DispStreamsOptions): Promise<void>;
182
73
  static ɵfac: i0.ɵɵFactoryDeclaration<DispStreams, never>;
183
74
  static ɵprov: i0.ɵɵInjectableDeclaration<DispStreams>;
184
75
  }
@@ -65,23 +65,6 @@ export type GeneratePageContentType = (options: GeneratePageContentOptions) => P
65
65
  * ```
66
66
  */
67
67
  export declare class GeneratePageContent {
68
- /**
69
- * Generates the content for a specific page.
70
- *
71
- * @param {Object} options - The options for generating page content.
72
- * @param {number | string} options.page - The page number to generate content for.
73
- * @param {Object} options.parameters - The parameters required for generating content.
74
- * @param {Array} options.parameters.paginatedStreams - The streams to be paginated.
75
- * @param {number} options.parameters.currentUserPage - The current page of the user.
76
- * @param {Function} options.parameters.updateMainWindow - Function to update the main window flag.
77
- * @param {Function} options.parameters.updateCurrentUserPage - Function to update the current user page.
78
- * @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window update flag.
79
- * @param {Function} options.parameters.dispStreams - Function to display streams for the specified page.
80
- * @param {number} [options.breakRoom=-1] - The break room identifier.
81
- * @param {boolean} [options.inBreakRoom=false] - Flag indicating if the user is in a break room.
82
- * @returns {Promise<void>} A promise that resolves when the content generation is complete.
83
- * @throws {Error} Throws an error if content generation fails.
84
- */
85
68
  generatePageContent({ page, parameters, breakRoom, inBreakRoom, }: GeneratePageContentOptions): Promise<void>;
86
69
  static ɵfac: i0.ɵɵFactoryDeclaration<GeneratePageContent, never>;
87
70
  static ɵprov: i0.ɵɵInjectableDeclaration<GeneratePageContent>;
@@ -69,27 +69,6 @@ export type GetEstimateType = (options: GetEstimateOptions) => [number, number,
69
69
  * ```
70
70
  */
71
71
  export declare class GetEstimate {
72
- /**
73
- * Estimates the number of rows and columns for a given set of parameters.
74
- *
75
- * @param {GetEstimateOptions} options - The options for the estimation.
76
- * @param {number} options.n - The number of items to estimate for.
77
- * @param {Object} options.parameters - The parameters for the estimation.
78
- * @param {number} options.parameters.fixedPageLimit - The fixed page limit.
79
- * @param {number} options.parameters.screenPageLimit - The screen page limit.
80
- * @param {boolean} options.parameters.shareScreenStarted - Indicates if screen sharing has started.
81
- * @param {boolean} options.parameters.shared - Indicates if sharing is active.
82
- * @param {string} options.parameters.eventType - The type of event (e.g., "chat", "conference").
83
- * @param {boolean} options.parameters.removeAltGrid - Indicates if the alternate grid should be removed.
84
- * @param {boolean} options.parameters.isWideScreen - Indicates if the screen is wide.
85
- * @param {boolean} options.parameters.isMediumScreen - Indicates if the screen is medium-sized.
86
- * @param {Function} options.parameters.updateRemoveAltGrid - Function to update the removeAltGrid parameter.
87
- * @param {Function} options.parameters.calculateRowsAndColumns - Function to calculate rows and columns.
88
- *
89
- * @returns {number[]} An array containing the estimated number of items, rows, and columns.
90
- *
91
- * @throws Will log an error message if an error occurs during estimation.
92
- */
93
72
  getEstimate({ n, parameters }: GetEstimateOptions): [number, number, number];
94
73
  static ɵfac: i0.ɵɵFactoryDeclaration<GetEstimate, never>;
95
74
  static ɵprov: i0.ɵɵInjectableDeclaration<GetEstimate>;
@@ -29,25 +29,6 @@ export type MixStreamsType = (options: MixStreamsOptions) => Promise<(Stream | P
29
29
  * ```
30
30
  */
31
31
  export declare class MixStreams {
32
- /**
33
- * Mixes video and audio streams and participants based on specified parameters.
34
- *
35
- * @param {Object} options - The options for mixing streams.
36
- * @param {Array} options.alVideoStreams - The list of audio and video streams to mix.
37
- * @param {Array} options.non_alVideoStreams - The list of non-audio and video streams to mix.
38
- * @param {Array} options.ref_participants - The list of reference participants to mix.
39
- * @returns {Promise<Array>} A promise that resolves with the mixed streams.
40
- * @throws Will throw an error if there is an issue mixing the streams.
41
- * @example
42
- * ```typescript
43
- * mixStreams({
44
- * alVideoStreams: [stream1, stream2],
45
- * non_alVideoStreams: [participant1, participant2],
46
- * ref_participants: [participant1, participant2]
47
- * });
48
- *
49
- * ```
50
- */
51
32
  mixStreams({ alVideoStreams, non_alVideoStreams, ref_participants, }: MixStreamsOptions): Promise<(Stream | Participant)[]>;
52
33
  static ɵfac: i0.ɵɵFactoryDeclaration<MixStreams, never>;
53
34
  static ɵprov: i0.ɵɵInjectableDeclaration<MixStreams>;
@@ -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,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
- * Processes consumer transports by pausing and resuming them based on certain conditions.
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
  }