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.
Files changed (215) hide show
  1. package/README.md +970 -40
  2. package/USAGE_COOKBOOK.md +202 -0
  3. package/dist/LICENSE +21 -0
  4. package/dist/README.md +970 -40
  5. package/dist/fesm2022/mediasfu-angular.mjs +30595 -16317
  6. package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
  7. package/dist/lib/@types/types.d.ts +28 -2
  8. package/dist/lib/@types/ui-overrides.types.d.ts +314 -0
  9. package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +1053 -5
  10. package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +2126 -51
  11. package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +1587 -45
  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 +1067 -56
  14. package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +98 -28
  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 +591 -11
  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 +617 -26
  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 +2024 -10
  30. package/dist/lib/components/display-components/main-aspect-component/main-aspect-component.component.d.ts +6 -2
  31. package/dist/lib/components/display-components/main-container-component/main-container-component.component.d.ts +6 -2
  32. package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +507 -8
  33. package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +508 -7
  34. package/dist/lib/components/display-components/meeting-progress-timer/meeting-progress-timer.component.d.ts +18 -11
  35. package/dist/lib/components/display-components/mini-audio/mini-audio.component.d.ts +11 -3
  36. package/dist/lib/components/display-components/mini-card/mini-card.component.d.ts +1026 -999
  37. package/dist/lib/components/display-components/mini-card-audio/mini-card-audio.component.d.ts +9 -3
  38. package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +517 -1
  39. package/dist/lib/components/display-components/pagination/pagination.component.d.ts +34 -1
  40. package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +513 -2
  41. package/dist/lib/components/display-components/subtitle-overlay/subtitle-overlay.component.d.ts +6 -0
  42. package/dist/lib/components/display-components/video-card/video-card.component.d.ts +10 -6
  43. package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +1108 -27
  44. package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +1134 -49
  45. package/dist/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.d.ts +94 -32
  46. package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +1123 -47
  47. package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +2622 -4793
  48. package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +602 -4140
  49. package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +864 -5707
  50. package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +2087 -6304
  51. package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +650 -5707
  52. package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +26 -4
  53. package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +80 -1
  54. package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +46 -1
  55. package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +706 -15
  56. package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +49 -2
  57. package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +79 -16
  58. package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +1113 -17
  59. package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +4 -0
  60. package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +1114 -29
  61. package/dist/lib/components/panelists-components/panelists-modal/panelists-modal.component.d.ts +73 -0
  62. package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +1084 -6
  63. package/dist/lib/components/permissions-components/permissions-modal/permissions-modal.component.d.ts +89 -0
  64. package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +1060 -21
  65. package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +1055 -35
  66. package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +1117 -45
  67. package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +1059 -47
  68. package/dist/lib/components/translation-components/translation-settings-modal/translation-settings-modal.component.d.ts +124 -0
  69. package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +1119 -46
  70. package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +2117 -22
  71. package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +3 -15
  72. package/dist/lib/consumers/add-videos-grid.service.d.ts +3 -0
  73. package/dist/lib/consumers/auto-adjust.service.d.ts +0 -11
  74. package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +0 -7
  75. package/dist/lib/consumers/change-vids.service.d.ts +1 -1
  76. package/dist/lib/consumers/check-permission.service.d.ts +4 -1
  77. package/dist/lib/consumers/check-screen-share.service.d.ts +0 -18
  78. package/dist/lib/consumers/compare-active-names.service.d.ts +0 -16
  79. package/dist/lib/consumers/compare-screen-states.service.d.ts +0 -18
  80. package/dist/lib/consumers/connect-ips.service.d.ts +5 -26
  81. package/dist/lib/consumers/connect-local-ips.service.d.ts +1 -28
  82. package/dist/lib/consumers/connect-recv-transport.service.d.ts +4 -1
  83. package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +5 -1
  84. package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +6 -1
  85. package/dist/lib/consumers/connect-send-transport-video.service.d.ts +6 -1
  86. package/dist/lib/consumers/connect-send-transport.service.d.ts +3 -1
  87. package/dist/lib/consumers/consumer-resume.service.d.ts +2 -1
  88. package/dist/lib/consumers/create-send-transport.service.d.ts +4 -1
  89. package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +3 -1
  90. package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +3 -1
  91. package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +3 -1
  92. package/dist/lib/consumers/disp-streams.service.d.ts +1 -110
  93. package/dist/lib/consumers/generate-page-content.service.d.ts +0 -17
  94. package/dist/lib/consumers/get-estimate.service.d.ts +0 -21
  95. package/dist/lib/consumers/mix-streams.service.d.ts +0 -19
  96. package/dist/lib/consumers/on-screen-changes.service.d.ts +1 -21
  97. package/dist/lib/consumers/prepopulate-user-media.service.d.ts +3 -0
  98. package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +1 -14
  99. package/dist/lib/consumers/process-consumer-transports.service.d.ts +3 -57
  100. package/dist/lib/consumers/re-update-inter.service.d.ts +1 -39
  101. package/dist/lib/consumers/reorder-streams.service.d.ts +1 -35
  102. package/dist/lib/consumers/resume-send-transport-audio.service.d.ts +3 -1
  103. package/dist/lib/consumers/signal-new-consumer-transport.service.d.ts +3 -1
  104. package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +5 -14
  105. package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +4 -14
  106. package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +1 -8
  107. package/dist/lib/consumers/stream-success-audio-switch.service.d.ts +5 -1
  108. package/dist/lib/consumers/stream-success-audio.service.d.ts +3 -1
  109. package/dist/lib/consumers/stream-success-video.service.d.ts +5 -1
  110. package/dist/lib/consumers/translation-consumer-switch.service.d.ts +68 -0
  111. package/dist/lib/consumers/trigger.service.d.ts +0 -79
  112. package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +0 -24
  113. package/dist/lib/directives/with-override.directive.d.ts +76 -0
  114. package/dist/lib/methods/background-methods/launch-background.service.d.ts +2 -5
  115. package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +2 -5
  116. package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +2 -5
  117. package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +1 -1
  118. package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +2 -5
  119. package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +2 -0
  120. package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +2 -5
  121. package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +2 -5
  122. package/dist/lib/methods/message-methods/launch-messages.service.d.ts +2 -5
  123. package/dist/lib/methods/panelists-methods/add-panelist.service.d.ts +19 -0
  124. package/dist/lib/methods/panelists-methods/focus-panelists.service.d.ts +19 -0
  125. package/dist/lib/methods/panelists-methods/remove-panelist.service.d.ts +17 -0
  126. package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +2 -5
  127. package/dist/lib/methods/permissions-methods/bulk-update-participant-permissions.service.d.ts +20 -0
  128. package/dist/lib/methods/permissions-methods/update-participant-permission.service.d.ts +19 -0
  129. package/dist/lib/methods/permissions-methods/update-permission-config.service.d.ts +29 -0
  130. package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +1 -1
  131. package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +1 -1
  132. package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +1 -1
  133. package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +1 -1
  134. package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +1 -12
  135. package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +1 -11
  136. package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +0 -94
  137. package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +1 -20
  138. package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +1 -12
  139. package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +0 -66
  140. package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +1 -33
  141. package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +1 -17
  142. package/dist/lib/methods/recording-methods/start-recording.service.d.ts +1 -92
  143. package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +1 -42
  144. package/dist/lib/methods/recording-methods/update-recording.service.d.ts +1 -94
  145. package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +2 -5
  146. package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +2 -5
  147. package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +1 -1
  148. package/dist/lib/methods/stream-methods/click-chat.service.d.ts +1 -1
  149. package/dist/lib/methods/utils/get-modal-position.util.d.ts +0 -3
  150. package/dist/lib/methods/utils/initial-values.util.d.ts +25 -3
  151. package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +11 -1
  152. package/dist/lib/methods/utils/producer/a-params.service.d.ts +2 -5
  153. package/dist/lib/methods/utils/producer/h-params.service.d.ts +2 -5
  154. package/dist/lib/methods/utils/producer/screen-params.service.d.ts +2 -5
  155. package/dist/lib/methods/utils/producer/v-params.service.d.ts +2 -5
  156. package/dist/lib/methods/utils/sound-player.service.d.ts +1 -1
  157. package/dist/lib/methods/utils/translation-languages.util.d.ts +341 -0
  158. package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +2 -5
  159. package/dist/lib/methods/whiteboard-methods/capture-canvas-stream.service.d.ts +3 -1
  160. package/dist/lib/modern/display-components/modern-alert.component.d.ts +40 -0
  161. package/dist/lib/modern/display-components/modern-loading-modal.component.d.ts +37 -0
  162. package/dist/lib/modern/display-components/modern-meeting-progress-timer.component.d.ts +40 -0
  163. package/dist/lib/modern/display-components/modern-mini-card.component.d.ts +1064 -0
  164. package/dist/lib/modern/display-components/modern-pagination.component.d.ts +91 -0
  165. package/dist/lib/modern/display-components/modern-participants-counter-badge.component.d.ts +16 -0
  166. package/dist/lib/modern/modal-components/modern-co-host-modal.component.d.ts +63 -0
  167. package/dist/lib/modern/modal-components/modern-confirm-exit-modal.component.d.ts +42 -0
  168. package/dist/lib/modern/modal-components/modern-confirm-here-modal.component.d.ts +39 -0
  169. package/dist/lib/modern/modal-components/modern-display-settings-modal.component.d.ts +59 -0
  170. package/dist/lib/modern/modal-components/modern-event-settings-modal.component.d.ts +80 -0
  171. package/dist/lib/modern/modal-components/modern-media-settings-modal.component.d.ts +72 -0
  172. package/dist/lib/modern/modal-components/modern-menu-modal.component.d.ts +48 -0
  173. package/dist/lib/modern/modal-components/modern-messages-modal.component.d.ts +58 -0
  174. package/dist/lib/modern/modal-components/modern-participants-modal.component.d.ts +49 -0
  175. package/dist/lib/modern/modal-components/modern-poll-modal.component.d.ts +54 -0
  176. package/dist/lib/modern/modal-components/modern-recording-modal.component.d.ts +39 -0
  177. package/dist/lib/modern/modal-components/modern-requests-modal.component.d.ts +61 -0
  178. package/dist/lib/modern/modal-components/modern-share-event-modal.component.d.ts +39 -0
  179. package/dist/lib/modern/modal-components/modern-waiting-room-modal.component.d.ts +55 -0
  180. package/dist/lib/modern/primitives/modern-button.component.d.ts +10 -0
  181. package/dist/lib/modern/primitives/modern-entry-shell.component.d.ts +6 -0
  182. package/dist/lib/modern/primitives/modern-field.component.d.ts +32 -0
  183. package/dist/lib/modern/primitives/modern-sidebar-panel.component.d.ts +24 -0
  184. package/dist/lib/modern/primitives/modern-surface.component.d.ts +7 -0
  185. package/dist/lib/modern/utils/render-mode.utils.d.ts +3 -0
  186. package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +4 -10
  187. package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +0 -19
  188. package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +8 -63
  189. package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +3 -19
  190. package/dist/lib/producers/producer-emits/join-local-room.service.d.ts +3 -106
  191. package/dist/lib/producers/producer-emits/join-room.service.d.ts +0 -18
  192. package/dist/lib/producers/socket-receive-methods/added-as-panelist.service.d.ts +15 -0
  193. package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +1 -90
  194. package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +1 -88
  195. package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +1 -66
  196. package/dist/lib/producers/socket-receive-methods/get-domains.service.d.ts +3 -1
  197. package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +1 -1
  198. package/dist/lib/producers/socket-receive-methods/panelist-focus-changed.service.d.ts +25 -0
  199. package/dist/lib/producers/socket-receive-methods/panelists-updated.service.d.ts +19 -0
  200. package/dist/lib/producers/socket-receive-methods/permission-config-updated.service.d.ts +15 -0
  201. package/dist/lib/producers/socket-receive-methods/permission-updated.service.d.ts +17 -0
  202. package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +1 -1
  203. package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +0 -80
  204. package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +1 -1
  205. package/dist/lib/producers/socket-receive-methods/receive-control-media.service.d.ts +21 -0
  206. package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +1 -5
  207. package/dist/lib/producers/socket-receive-methods/removed-from-panelists.service.d.ts +15 -0
  208. package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +1 -1
  209. package/dist/lib/producers/socket-receive-methods/translation-receive-methods.service.d.ts +20 -0
  210. package/dist/lib/services/live-subtitle.service.d.ts +15 -0
  211. package/dist/lib/services/ui-override-resolver.service.d.ts +91 -0
  212. package/dist/lib/sockets/socket-manager.service.d.ts +1 -2
  213. package/dist/public-api.d.ts +46 -1
  214. package/package.json +106 -95
  215. package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +0 -177
@@ -1,5 +1,4 @@
1
1
  import { ShowAlert } from '../../@types/types';
2
- import { RecordUpdateTimer } from './record-update-timer.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export interface RecordResumeTimerParameters {
5
4
  isTimerRunning: boolean;
@@ -19,72 +18,7 @@ export interface RecordResumeTimerOptions {
19
18
  parameters: RecordResumeTimerParameters;
20
19
  }
21
20
  export type RecordResumeTimerType = (options: RecordResumeTimerOptions) => Promise<boolean>;
22
- /**
23
- * Resumes the recording timer if it is not already running and can be paused/resumed.
24
- *
25
- * @param {RecordResumeTimerOptions} options - The options for resuming the recording timer.
26
- * @param {Object} options.parameters - The parameters for the recording timer.
27
- * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
28
- * @param {boolean} options.parameters.isTimerRunning - Indicates if the timer is currently running.
29
- * @param {boolean} options.parameters.canPauseResume - Indicates if the timer can be paused/resumed.
30
- * @param {number} options.parameters.recordElapsedTime - The elapsed recording time in seconds.
31
- * @param {number} options.parameters.recordStartTime - The start time of the recording.
32
- * @param {NodeJS.Timeout | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
33
- * @param {Function} options.parameters.showAlert - Function to show an alert message.
34
- * @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
35
- * @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
36
- * @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running status.
37
- * @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume status.
38
- *
39
- * @returns {Promise<boolean>} - Returns a promise that resolves to true if the timer was successfully resumed, otherwise false.
40
- *
41
- * @throws Will show an alert if the timer cannot be resumed due to conditions not being met.
42
- *
43
- * @example
44
- * ```typescript
45
- * const options: RecordResumeTimerOptions = {
46
- * parameters: {
47
- * isTimerRunning: false,
48
- * canPauseResume: true,
49
- * recordElapsedTime: 10,
50
- * recordStartTime: Date.now(),
51
- * recordTimerInterval: null,
52
- * showAlert: (alert) => { },
53
- * updateRecordStartTime: (time) => { },
54
- * updateRecordTimerInterval: (interval) => { },
55
- * updateIsTimerRunning: (isRunning) => { },
56
- * updateCanPauseResume: (canPause) => { },
57
- * getUpdatedAllParams: () => ({ }),
58
- * },
59
- * };
60
- * const canResume = await recordResumeTimer(options);
61
- * if (canResume) {
62
- * // proceed with the resumed recording
63
- * }
64
- * ```
65
- */
66
21
  export declare class RecordResumeTimer {
67
- private RecordUpdateTimerService;
68
- constructor(RecordUpdateTimerService: RecordUpdateTimer);
69
- /**
70
- * Resumes the recording timer if it is not already running and can be paused/resumed.
71
- *
72
- * @param {RecordResumeTimerOptions} options - The options for resuming the recording timer.
73
- * @param {Object} options.parameters - The parameters for the recording timer.
74
- * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
75
- * @param {boolean} options.parameters.isTimerRunning - Indicates if the timer is currently running.
76
- * @param {boolean} options.parameters.canPauseResume - Indicates if the timer can be paused/resumed.
77
- * @param {number} options.parameters.recordElapsedTime - The elapsed recording time in seconds.
78
- * @param {number} options.parameters.recordStartTime - The start time of the recording.
79
- * @param {number | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
80
- * @param {Function} options.parameters.showAlert - Function to show an alert message.
81
- * @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
82
- * @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
83
- * @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running status.
84
- * @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume status.
85
- *
86
- * @returns {Promise<boolean>} - Returns a promise that resolves to true if the timer was successfully resumed, otherwise false.
87
- */
88
22
  recordResumeTimer: ({ parameters }: RecordResumeTimerOptions) => Promise<boolean>;
89
23
  static ɵfac: i0.ɵɵFactoryDeclaration<RecordResumeTimer, never>;
90
24
  static ɵprov: i0.ɵɵInjectableDeclaration<RecordResumeTimer>;
@@ -1,4 +1,3 @@
1
- import { RecordUpdateTimer } from './record-update-timer.service';
2
1
  import * as i0 from "@angular/core";
3
2
  export interface RecordStartTimerParameters {
4
3
  recordStartTime: number;
@@ -66,38 +65,7 @@ export type RecordStartTimerType = (options: RecordStartTimerOptions) => Promise
66
65
  * ```
67
66
  */
68
67
  export declare class RecordStartTimer {
69
- private RecordUpdateTimerService;
70
- constructor(RecordUpdateTimerService: RecordUpdateTimer);
71
- /**
72
- * Starts the recording timer.
73
- * @function
74
- * @param {RecordStartTimerOptions} options - The options object containing necessary variables and functions.
75
- */
76
- /**
77
- * Starts a recording timer and manages its state.
78
- *
79
- * @param {RecordStartTimerOptions} options - The options for starting the recording timer.
80
- * @param {Function} options.parameters.getUpdatedAllParams - Function to get updated parameters.
81
- * @param {number} options.parameters.recordStartTime - The start time of the recording.
82
- * @param {number | null} options.parameters.recordTimerInterval - The interval ID for the recording timer.
83
- * @param {boolean} options.parameters.isTimerRunning - Flag indicating if the timer is running.
84
- * @param {boolean} options.parameters.canPauseResume - Flag indicating if pause/resume actions are enabled.
85
- * @param {number} options.parameters.recordChangeSeconds - The time after which pause/resume actions are enabled.
86
- * @param {Function} options.parameters.updateRecordStartTime - Function to update the recording start time.
87
- * @param {Function} options.parameters.updateRecordTimerInterval - Function to update the recording timer interval.
88
- * @param {Function} options.parameters.updateIsTimerRunning - Function to update the timer running state.
89
- * @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume state.
90
- *
91
- * @returns {Promise<void>} A promise that resolves when the timer is started.
92
- *
93
- * @remarks
94
- * This function initializes the recording start time and sets up an interval to update the timer every second.
95
- * It also manages the state of the timer, including enabling and disabling pause/resume actions.
96
- * The timer is stopped if the recording is paused, stopped, or if the room name is invalid.
97
- */
98
- recordStartTimer: ({ parameters }: {
99
- parameters: any;
100
- }) => Promise<void>;
68
+ recordStartTimer: ({ parameters }: RecordStartTimerOptions) => Promise<void>;
101
69
  static ɵfac: i0.ɵɵFactoryDeclaration<RecordStartTimer, never>;
102
70
  static ɵprov: i0.ɵɵInjectableDeclaration<RecordStartTimer>;
103
71
  }
@@ -39,23 +39,7 @@ export type RecordUpdateTimerType = (options: RecordUpdateTimerOptions) => void;
39
39
  * ```
40
40
  */
41
41
  export declare class RecordUpdateTimer {
42
- /**
43
- * Updates the recording timer and progress time.
44
- * @function
45
- * @param {RecordUpdateTimerOptions} options - The options object containing necessary variables and functions.
46
- */
47
- /**
48
- * Updates the recording timer by calculating the elapsed time since the recording started
49
- * and formatting it in HH:MM:SS format.
50
- *
51
- * @param {Object} options - The options object.
52
- * @param {number} options.recordElapsedTime - The elapsed recording time in seconds.
53
- * @param {number} options.recordStartTime - The timestamp when the recording started.
54
- * @param {Function} options.updateRecordElapsedTime - Callback to update the elapsed recording time.
55
- * @param {Function} options.updateRecordingProgressTime - Callback to update the formatted recording time.
56
- * @returns {void}
57
- */
58
- recordUpdateTimer({ recordElapsedTime, recordStartTime, updateRecordElapsedTime, updateRecordingProgressTime, }: RecordUpdateTimerOptions): void;
42
+ recordUpdateTimer(options: RecordUpdateTimerOptions): void;
59
43
  static ɵfac: i0.ɵɵFactoryDeclaration<RecordUpdateTimer, never>;
60
44
  static ɵprov: i0.ɵɵInjectableDeclaration<RecordUpdateTimer>;
61
45
  }
@@ -1,7 +1,6 @@
1
- import { RecordStartTimer } from './record-start-timer.service';
2
- import { RecordResumeTimer, RecordResumeTimerParameters } from './record-resume-timer.service';
3
1
  import { Socket } from 'socket.io-client';
4
2
  import { RePortType, UserRecordingParams, CaptureCanvasStreamType, CaptureCanvasStreamParameters, RePortParameters, ShowAlert } from '../../@types/types';
3
+ import { RecordResumeTimerParameters } from './record-resume-timer.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export interface StartRecordingParameters extends CaptureCanvasStreamParameters, RePortParameters, RecordResumeTimerParameters {
7
6
  roomName: string;
@@ -39,97 +38,7 @@ export interface StartRecordingOptions {
39
38
  parameters: StartRecordingParameters;
40
39
  }
41
40
  export type StartRecordingType = (options: StartRecordingOptions) => Promise<boolean | undefined>;
42
- /**
43
- * Starts the recording process based on the provided parameters.
44
- *
45
- * @param {StartRecordingOptions} options - The options for starting the recording.
46
- * @param {object} options.parameters - The parameters required for starting the recording.
47
- * @param {string} options.parameters.roomName - The name of the room where recording is to be started.
48
- * @param {object} options.parameters.userRecordingParams - User-specific recording parameters.
49
- * @param {object} options.parameters.socket - The socket instance for communication.
50
- * @param {object} options.parameters.localSocket - The local socket instance for communication.
51
- * @param {function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
52
- * @param {boolean} options.parameters.confirmedToRecord - Flag indicating if the user has confirmed to record.
53
- * @param {function} options.parameters.showAlert - Function to show alerts.
54
- * @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
55
- * @param {boolean} options.parameters.videoAlreadyOn - Flag indicating if the video is already on.
56
- * @param {boolean} options.parameters.audioAlreadyOn - Flag indicating if the audio is already on.
57
- * @param {boolean} options.parameters.recordStarted - Flag indicating if the recording has started.
58
- * @param {boolean} options.parameters.recordPaused - Flag indicating if the recording is paused.
59
- * @param {boolean} options.parameters.recordResumed - Flag indicating if the recording is resumed.
60
- * @param {boolean} options.parameters.recordStopped - Flag indicating if the recording is stopped.
61
- * @param {boolean} options.parameters.startReport - Flag indicating if the start report is active.
62
- * @param {boolean} options.parameters.endReport - Flag indicating if the end report is active.
63
- * @param {boolean} options.parameters.canRecord - Flag indicating if recording is allowed.
64
- * @param {function} options.parameters.updateClearedToRecord - Function to update the cleared to record status.
65
- * @param {function} options.parameters.updateRecordStarted - Function to update the record started status.
66
- * @param {function} options.parameters.updateRecordPaused - Function to update the record paused status.
67
- * @param {function} options.parameters.updateRecordResumed - Function to update the record resumed status.
68
- * @param {function} options.parameters.updateStartReport - Function to update the start report status.
69
- * @param {function} options.parameters.updateEndReport - Function to update the end report status.
70
- * @param {function} options.parameters.updateCanRecord - Function to update the can record status.
71
- * @param {boolean} options.parameters.whiteboardStarted - Flag indicating if the whiteboard has started.
72
- * @param {boolean} options.parameters.whiteboardEnded - Flag indicating if the whiteboard has ended.
73
- * @param {function} options.parameters.rePort - Function to report the recording status.
74
- * @param {function} options.parameters.captureCanvasStream - Function to capture the canvas stream.
75
- *
76
- * @returns {Promise<boolean | undefined>} - A promise that resolves to a boolean indicating if the recording attempt was successful, or undefined if not applicable.
77
- *
78
- * @remarks
79
- * This method checks various conditions, such as whether the user has confirmed recording and whether audio or video is already on,
80
- * before starting the recording. It updates the recording state, manages socket communication, and handles whiteboard functionality if applicable.
81
- *
82
- * @example
83
- * ```typescript
84
- * const options: StartRecordingOptions = { parameters: someParameters };
85
- * const result = await startRecording(options);
86
- * if (result) {
87
- * console.log('Recording started successfully.');
88
- * } else {
89
- * console.log('Failed to start recording.');
90
- * }
91
- * ```
92
- */
93
41
  export declare class StartRecording {
94
- private RecordStartTimerService;
95
- private RecordResumeTimerService;
96
- constructor(RecordStartTimerService: RecordStartTimer, RecordResumeTimerService: RecordResumeTimer);
97
- /**
98
- * Starts the recording process based on the provided parameters.
99
- *
100
- * @param {StartRecordingOptions} options - The options for starting the recording.
101
- * @param {object} options.parameters - The parameters required for starting the recording.
102
- * @param {string} options.parameters.roomName - The name of the room where recording is to be started.
103
- * @param {object} options.parameters.userRecordingParams - User-specific recording parameters.
104
- * @param {object} options.parameters.socket - The socket instance for communication.
105
- * @param {object} options.parameters.localSocket - The local socket instance for communication.
106
- * @param {function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
107
- * @param {boolean} options.parameters.confirmedToRecord - Flag indicating if the user has confirmed to record.
108
- * @param {function} options.parameters.showAlert - Function to show alerts.
109
- * @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
110
- * @param {boolean} options.parameters.videoAlreadyOn - Flag indicating if the video is already on.
111
- * @param {boolean} options.parameters.audioAlreadyOn - Flag indicating if the audio is already on.
112
- * @param {boolean} options.parameters.recordStarted - Flag indicating if the recording has started.
113
- * @param {boolean} options.parameters.recordPaused - Flag indicating if the recording is paused.
114
- * @param {boolean} options.parameters.recordResumed - Flag indicating if the recording is resumed.
115
- * @param {boolean} options.parameters.recordStopped - Flag indicating if the recording is stopped.
116
- * @param {boolean} options.parameters.startReport - Flag indicating if the start report is active.
117
- * @param {boolean} options.parameters.endReport - Flag indicating if the end report is active.
118
- * @param {boolean} options.parameters.canRecord - Flag indicating if recording is allowed.
119
- * @param {function} options.parameters.updateClearedToRecord - Function to update the cleared to record status.
120
- * @param {function} options.parameters.updateRecordStarted - Function to update the record started status.
121
- * @param {function} options.parameters.updateRecordPaused - Function to update the record paused status.
122
- * @param {function} options.parameters.updateRecordResumed - Function to update the record resumed status.
123
- * @param {function} options.parameters.updateStartReport - Function to update the start report status.
124
- * @param {function} options.parameters.updateEndReport - Function to update the end report status.
125
- * @param {function} options.parameters.updateCanRecord - Function to update the can record status.
126
- * @param {boolean} options.parameters.whiteboardStarted - Flag indicating if the whiteboard has started.
127
- * @param {boolean} options.parameters.whiteboardEnded - Flag indicating if the whiteboard has ended.
128
- * @param {function} options.parameters.rePort - Function to report the recording status.
129
- * @param {function} options.parameters.captureCanvasStream - Function to capture the canvas stream.
130
- *
131
- * @returns {Promise<boolean | undefined>} - A promise that resolves to a boolean indicating if the recording attempt was successful, or undefined if not applicable.
132
- */
133
42
  startRecording: ({ parameters }: StartRecordingOptions) => Promise<boolean | undefined>;
134
43
  static ɵfac: i0.ɵɵFactoryDeclaration<StartRecording, never>;
135
44
  static ɵprov: i0.ɵɵInjectableDeclaration<StartRecording>;
@@ -1,4 +1,3 @@
1
- import { RecordPauseTimer } from './record-pause-timer.service';
2
1
  import { ShowAlert } from '../../@types/types';
3
2
  import { Socket } from 'socket.io-client';
4
3
  import * as i0 from "@angular/core";
@@ -24,54 +23,14 @@ export interface StopRecordingParameters {
24
23
  parameters: any;
25
24
  start?: boolean;
26
25
  }) => void;
26
+ getUpdatedAllParams: () => StopRecordingParameters;
27
27
  [key: string]: any;
28
28
  }
29
29
  export interface StopRecordingOptions {
30
30
  parameters: StopRecordingParameters;
31
31
  }
32
32
  export type StopRecordingType = (options: StopRecordingOptions) => Promise<void>;
33
- /**
34
- * Stops the recording process based on the provided parameters.
35
- *
36
- * @param {StopRecordingOptions} options - The options for stopping the recording.
37
- * @param {Object} options.parameters - The parameters required for stopping the recording.
38
- * @param {string} options.parameters.roomName - The name of the room where the recording is being stopped.
39
- * @param {Socket} options.parameters.socket - The socket instance for communication.
40
- * @param {Socket} [options.parameters.localSocket] - The local socket instance for communication.
41
- * @param {Function} options.parameters.showAlert - Function to show alerts.
42
- * @param {boolean} options.parameters.startReport - Flag indicating if the start report is active.
43
- * @param {boolean} options.parameters.endReport - Flag indicating if the end report is active.
44
- * @param {boolean} options.parameters.recordStarted - Flag indicating if the recording has started.
45
- * @param {boolean} options.parameters.recordPaused - Flag indicating if the recording is paused.
46
- * @param {boolean} options.parameters.recordStopped - Flag indicating if the recording is stopped.
47
- * @param {Function} options.parameters.updateRecordPaused - Function to update the record paused status.
48
- * @param {Function} options.parameters.updateRecordStopped - Function to update the record stopped status.
49
- * @param {Function} options.parameters.updateStartReport - Function to update the start report status.
50
- * @param {Function} options.parameters.updateEndReport - Function to update the end report status.
51
- * @param {Function} options.parameters.updateShowRecordButtons - Function to update the visibility of recording buttons.
52
- * @param {boolean} options.parameters.whiteboardStarted - Flag indicating if the whiteboard has started.
53
- * @param {boolean} options.parameters.whiteboardEnded - Flag indicating if the whiteboard has ended.
54
- * @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
55
- * @param {Function} options.parameters.captureCanvasStream - Function to capture the canvas stream.
56
- *
57
- * @returns {Promise<void>} - A promise that resolves when the recording is stopped.
58
- *
59
- * @remarks
60
- * This method checks if the recording has started and is not already stopped.
61
- * It pauses the timer and emits a stop recording event via socket communication.
62
- * If successful, it updates the recording state and alerts the user.
63
- * Additionally, if the whiteboard feature is active, it captures the canvas stream.
64
- *
65
- * @example
66
- * ```typescript
67
- * const options: StopRecordingOptions = { parameters: someParameters };
68
- * await stopRecording(options);
69
- * console.log('Recording stopped successfully.');
70
- * ```
71
- */
72
33
  export declare class StopRecording {
73
- private RecordPauseTimerService;
74
- constructor(RecordPauseTimerService: RecordPauseTimer);
75
34
  stopRecording({ parameters }: StopRecordingOptions): Promise<void>;
76
35
  static ɵfac: i0.ɵɵFactoryDeclaration<StopRecording, never>;
77
36
  static ɵprov: i0.ɵɵInjectableDeclaration<StopRecording>;
@@ -1,9 +1,6 @@
1
- import { CheckPauseState } from './check-pause-state.service';
2
- import { CheckResumeState } from './check-resume-state.service';
3
- import { RecordPauseTimer } from './record-pause-timer.service';
4
- import { RecordResumeTimer, RecordResumeTimerParameters } from './record-resume-timer.service';
5
1
  import { RePortParameters, RePortType, ShowAlert, UserRecordingParams } from '../../@types/types';
6
2
  import { Socket } from 'socket.io-client';
3
+ import { RecordResumeTimerParameters } from './record-resume-timer.service';
7
4
  import * as i0 from "@angular/core";
8
5
  export interface UpdateRecordingParameters extends RecordResumeTimerParameters, RePortParameters {
9
6
  roomName: string;
@@ -42,97 +39,7 @@ export interface UpdateRecordingOptions {
42
39
  parameters: UpdateRecordingParameters;
43
40
  }
44
41
  export type UpdateRecordingType = (options: UpdateRecordingOptions) => Promise<void>;
45
- /**
46
- * Updates the recording state based on the provided parameters.
47
- *
48
- * @param {UpdateRecordingOptions} options - The options for updating the recording state.
49
- * @param {Object} options.parameters - The parameters required for updating the recording state.
50
- * @param {string} options.parameters.roomName - The name of the room where the recording is taking place.
51
- * @param {UserRecordingParams} options.parameters.userRecordingParams - User-specific recording parameters.
52
- * @param {Socket} options.parameters.socket - The socket instance for communication.
53
- * @param {Socket} [options.parameters.localSocket] - The local socket instance for communication.
54
- * @param {Function} options.parameters.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
55
- * @param {boolean} options.parameters.confirmedToRecord - Indicates if the user has confirmed to start recording.
56
- * @param {Function} options.parameters.showAlert - Function to show alerts.
57
- * @param {string} options.parameters.recordingMediaOptions - The media options for recording (e.g., "video", "audio").
58
- * @param {boolean} options.parameters.videoAlreadyOn - Indicates if the video is already turned on.
59
- * @param {boolean} options.parameters.audioAlreadyOn - Indicates if the audio is already turned on.
60
- * @param {boolean} options.parameters.recordStarted - Indicates if the recording has started.
61
- * @param {boolean} options.parameters.recordPaused - Indicates if the recording is paused.
62
- * @param {boolean} options.parameters.recordResumed - Indicates if the recording has resumed.
63
- * @param {boolean} options.parameters.recordStopped - Indicates if the recording has stopped.
64
- * @param {number} options.parameters.recordChangeSeconds - The interval in seconds for changing the recording state.
65
- * @param {number} options.parameters.pauseRecordCount - The count of pauses during the recording.
66
- * @param {boolean} options.parameters.startReport - Indicates if the start report is active.
67
- * @param {boolean} options.parameters.endReport - Indicates if the end report is active.
68
- * @param {boolean} options.parameters.canRecord - Indicates if recording is allowed.
69
- * @param {boolean} options.parameters.canPauseResume - Indicates if pausing and resuming the recording is allowed.
70
- * @param {Function} options.parameters.updateCanPauseResume - Function to update the pause/resume state.
71
- * @param {Function} options.parameters.updatePauseRecordCount - Function to update the pause record count.
72
- * @param {Function} options.parameters.updateClearedToRecord - Function to update the cleared-to-record state.
73
- * @param {Function} options.parameters.updateRecordPaused - Function to update the record paused state.
74
- * @param {Function} options.parameters.updateRecordResumed - Function to update the record resumed state.
75
- * @param {Function} options.parameters.updateStartReport - Function to update the start report state.
76
- * @param {Function} options.parameters.updateEndReport - Function to update the end report state.
77
- * @param {Function} options.parameters.updateCanRecord - Function to update the can record state.
78
- * @param {Function} options.parameters.rePort - Function to handle reporting.
79
- *
80
- * @returns {Promise<void>} A promise that resolves when the recording state has been updated.
81
- *
82
- * @remarks
83
- * This method handles the recording state updates, including starting, pausing, resuming, and stopping the recording.
84
- * It also performs necessary checks to ensure that the user can perform the requested actions based on their current state.
85
- * Alerts are displayed for any issues encountered during the process.
86
- *
87
- * @example
88
- * ```typescript
89
- * const options: UpdateRecordingOptions = { parameters: someParameters };
90
- * await updateRecording(options);
91
- * console.log('Recording state updated successfully.');
92
- * ```
93
- */
94
42
  export declare class UpdateRecording {
95
- private CheckPauseStateService;
96
- private CheckResumeStateService;
97
- private RecordPauseTimerService;
98
- private RecordResumeTimerService;
99
- constructor(CheckPauseStateService: CheckPauseState, CheckResumeStateService: CheckResumeState, RecordPauseTimerService: RecordPauseTimer, RecordResumeTimerService: RecordResumeTimer);
100
- /**
101
- * Updates the recording state based on the provided parameters.
102
- *
103
- * @param {UpdateRecordingOptions} parameters - The parameters for updating the recording state.
104
- * @returns {Promise<void>} A promise that resolves when the recording state has been updated.
105
- *
106
- * @property {string} roomName - The name of the room where the recording is taking place.
107
- * @property {any} userRecordingParams - Parameters related to the user's recording settings.
108
- * @property {any} socket - The socket connection used for communication.
109
- * @property {any} localSocket - The local socket connection used for communication.
110
- * @property {Function} updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
111
- * @property {boolean} confirmedToRecord - Indicates if the user has confirmed to start recording.
112
- * @property {Function} showAlert - Function to show alert messages.
113
- * @property {string} recordingMediaOptions - The media options for recording (e.g., "video", "audio").
114
- * @property {boolean} videoAlreadyOn - Indicates if the video is already turned on.
115
- * @property {boolean} audioAlreadyOn - Indicates if the audio is already turned on.
116
- * @property {boolean} recordStarted - Indicates if the recording has started.
117
- * @property {boolean} recordPaused - Indicates if the recording is paused.
118
- * @property {boolean} recordResumed - Indicates if the recording has resumed.
119
- * @property {boolean} recordStopped - Indicates if the recording has stopped.
120
- * @property {number} recordChangeSeconds - The interval in seconds for changing the recording state.
121
- * @property {number} pauseRecordCount - The count of pauses during the recording.
122
- * @property {boolean} startReport - Indicates if the start report is active.
123
- * @property {boolean} endReport - Indicates if the end report is active.
124
- * @property {boolean} canRecord - Indicates if recording is allowed.
125
- * @property {boolean} canPauseResume - Indicates if pausing and resuming the recording is allowed.
126
- * @property {Function} updateCanPauseResume - Function to update the pause/resume state.
127
- * @property {Function} updatePauseRecordCount - Function to update the pause record count.
128
- * @property {Function} updateClearedToRecord - Function to update the cleared-to-record state.
129
- * @property {Function} updateRecordPaused - Function to update the record paused state.
130
- * @property {Function} updateRecordResumed - Function to update the record resumed state.
131
- * @property {Function} updateStartReport - Function to update the start report state.
132
- * @property {Function} updateEndReport - Function to update the end report state.
133
- * @property {Function} updateCanRecord - Function to update the can record state.
134
- * @property {Function} rePort - Function to handle reporting.
135
- */
136
43
  updateRecording: ({ parameters }: UpdateRecordingOptions) => Promise<void>;
137
44
  static ɵfac: i0.ɵɵFactoryDeclaration<UpdateRecording, never>;
138
45
  static ɵprov: i0.ɵɵInjectableDeclaration<UpdateRecording>;
@@ -1,9 +1,6 @@
1
+ import type { LaunchRequestsOptions } from 'mediasfu-shared';
1
2
  import * as i0 from "@angular/core";
2
- export interface LaunchRequestsOptions {
3
- updateIsRequestsModalVisible: (isVisible: boolean) => void;
4
- isRequestsModalVisible: boolean;
5
- }
6
- export type LaunchRequestsType = (options: LaunchRequestsOptions) => void;
3
+ export type { LaunchRequestsOptions, LaunchRequestsType } from 'mediasfu-shared';
7
4
  /**
8
5
  * Toggles the visibility state of the requests modal.
9
6
  *
@@ -1,9 +1,6 @@
1
+ import type { LaunchSettingsOptions } from 'mediasfu-shared';
1
2
  import * as i0 from "@angular/core";
2
- export interface LaunchSettingsOptions {
3
- updateIsSettingsModalVisible: (isVisible: boolean) => void;
4
- isSettingsModalVisible: boolean;
5
- }
6
- export type LaunchSettingsType = (options: LaunchSettingsOptions) => void;
3
+ export type { LaunchSettingsOptions, LaunchSettingsType } from 'mediasfu-shared';
7
4
  /**
8
5
  * Toggles the visibility state of the settings modal.
9
6
  *
@@ -80,7 +80,7 @@ export declare class ModifySettings {
80
80
  *
81
81
  * @throws Will show an alert if any setting is set to "approval" in demo mode (room name starts with "d").
82
82
  */
83
- modifySettings: ({ showAlert, roomName, audioSet, videoSet, screenshareSet, chatSet, socket, updateAudioSetting, updateVideoSetting, updateScreenshareSetting, updateChatSetting, updateIsSettingsModalVisible, }: ModifySettingsOptions) => Promise<void>;
83
+ modifySettings: ({ roomName, audioSet, videoSet, screenshareSet, chatSet, socket, updateAudioSetting, updateVideoSetting, updateScreenshareSetting, updateChatSetting, updateIsSettingsModalVisible, }: ModifySettingsOptions) => Promise<void>;
84
84
  static ɵfac: i0.ɵɵFactoryDeclaration<ModifySettings, never>;
85
85
  static ɵprov: i0.ɵɵInjectableDeclaration<ModifySettings>;
86
86
  }
@@ -52,7 +52,7 @@ export declare class ClickChat {
52
52
  *
53
53
  * @returns {Promise<void>} A promise that resolves when the operation is complete.
54
54
  */
55
- clickChat({ isMessagesModalVisible, updateIsMessagesModalVisible, chatSetting, islevel, showAlert, }: ClickChatOptions): Promise<void>;
55
+ clickChat(options: ClickChatOptions): Promise<void>;
56
56
  static ɵfac: i0.ɵɵFactoryDeclaration<ClickChat, never>;
57
57
  static ɵprov: i0.ɵɵInjectableDeclaration<ClickChat>;
58
58
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * Defines the style object for positioning the modal.
3
- */
4
1
  import { ModalPositionStyle } from '../../@types/types';
5
2
  export interface GetModalPositionOptions {
6
3
  position: string;
@@ -1,8 +1,13 @@
1
- import { Producer, ProducerOptions, RtpCapabilities, Transport } from 'mediasoup-client/lib/types';
1
+ import { types } from 'mediasoup-client';
2
+ type Producer = types.Producer;
3
+ type ProducerOptions = types.ProducerOptions;
4
+ type RtpCapabilities = types.RtpCapabilities;
5
+ type Transport = types.Transport;
6
+ type Device = types.Device;
2
7
  import { AParamsType, CoHostResponsibility, EventType, HParamsType, Participant, Poll, ScreenParamsType, Stream, VidCons, VParamsType, ConsumeSocket, MeetingRoomParams, UserRecordingParams, ScreenState, AudioDecibels, CustomMediaComponent, GridSizes, Message, WaitingRoomParticipant, Request, BreakoutParticipant, WhiteboardUser, Shape, ResponseJoinRoom, ComponentSizes, Transport as TransportType } from '../../@types/types';
3
- import { Device } from 'mediasoup-client/lib/types';
4
8
  import { Socket } from 'socket.io-client';
5
9
  import { SelfieSegmentation } from '@mediapipe/selfie_segmentation';
10
+ import { TranslationRoomConfig } from '../../producers/socket-receive-methods/translation-receive-methods.service';
6
11
  export interface InitialValuesStateType {
7
12
  roomName: string;
8
13
  member: string;
@@ -215,6 +220,20 @@ export interface InitialValuesStateType {
215
220
  videoSetting: string;
216
221
  screenshareSetting: string;
217
222
  chatSetting: string;
223
+ translationSupported: boolean;
224
+ translationConfig: TranslationRoomConfig | null;
225
+ mySpokenLanguage: string;
226
+ mySpokenLanguageEnabled: boolean;
227
+ myDefaultOutputLanguage: string | null;
228
+ myDefaultListenLanguage: string | null;
229
+ listenPreferences: Map<string, string>;
230
+ translationProducerMap: Record<string, Record<string, string>>;
231
+ availableTranslationChannels: Map<string, {
232
+ languages: string[];
233
+ originalProducerId: string;
234
+ }>;
235
+ canUsePersonalTranslation: boolean;
236
+ personalTranslationUsername?: string;
218
237
  displayOption: string;
219
238
  autoWave: boolean;
220
239
  forceFullDisplay: boolean;
@@ -231,13 +250,15 @@ export interface InitialValuesStateType {
231
250
  totalReqWait: number;
232
251
  alertVisible: boolean;
233
252
  alertMessage: string;
234
- alertType: 'success' | 'danger';
253
+ alertType: 'success' | 'danger' | 'info' | 'warning';
254
+ alertPosition: 'top' | 'bottom' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center';
235
255
  alertDuration: number;
236
256
  progressTimerVisible: boolean;
237
257
  progressTimerValue: number;
238
258
  isMenuModalVisible: boolean;
239
259
  isRecordingModalVisible: boolean;
240
260
  isSettingsModalVisible: boolean;
261
+ isTranslationSettingsModalVisible: boolean;
241
262
  isRequestsModalVisible: boolean;
242
263
  isWaitingModalVisible: boolean;
243
264
  isCoHostModalVisible: boolean;
@@ -347,3 +368,4 @@ export interface InitialValuesStateType {
347
368
  commentsActive: boolean;
348
369
  }
349
370
  export declare const initialValuesState: InitialValuesStateType;
371
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { OnInit, OnDestroy, Injector, ElementRef } from '@angular/core';
2
2
  import { ReUpdateInterType, UpdateParticipantAudioDecibelsType, ReUpdateInterParameters, Participant } from '../../../@types/types';
3
- import { Consumer } from 'mediasoup-client/lib/types';
3
+ import { types } from 'mediasoup-client';
4
4
  import * as i0 from "@angular/core";
5
+ type Consumer = types.Consumer;
5
6
  export interface MiniAudioPlayerParameters extends ReUpdateInterParameters {
6
7
  breakOutRoomStarted: boolean;
7
8
  breakOutRoomEnded: boolean;
@@ -92,14 +93,23 @@ export declare class MiniAudioPlayer implements OnInit, OnDestroy {
92
93
  autoWaveCheck: boolean;
93
94
  private previousShowWaveModal;
94
95
  private previousIsMuted;
96
+ private previousMiniAudioProps;
97
+ private audioStateRetryTimer;
95
98
  private injectorCache;
96
99
  private cachedMiniAudioProps;
97
100
  constructor(injector: Injector, injectedStream: MediaStream | null, consumer: Consumer, injectedRemoteProducerId: string, injectedParameters: MiniAudioPlayerParameters, injectedMiniAudioComponent: any, injectedMiniAudioProps: Record<string, any>);
98
101
  ngOnInit(): void;
99
102
  ngOnDestroy(): void;
103
+ private clearAudioStateRetryTimer;
104
+ private getParticipantForProducer;
105
+ private isTranslationAudio;
106
+ private isTranslationSuppressingOriginal;
107
+ private syncAudioElementState;
108
+ private scheduleAudioStateSync;
100
109
  setupAudioProcessing(): void;
101
110
  createInjector(inputs: any): Injector;
102
111
  getMiniAudioProps(): any;
103
112
  static ɵfac: i0.ɵɵFactoryDeclaration<MiniAudioPlayer, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
104
113
  static ɵcmp: i0.ɵɵComponentDeclaration<MiniAudioPlayer, "app-mini-audio-player", never, { "stream": { "alias": "stream"; "required": false; }; "consumer": { "alias": "consumer"; "required": false; }; "remoteProducerId": { "alias": "remoteProducerId"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "MiniAudioComponent": { "alias": "MiniAudioComponent"; "required": false; }; "miniAudioProps": { "alias": "miniAudioProps"; "required": false; }; }, {}, never, never, true, never>;
105
114
  }
115
+ export {};
@@ -1,9 +1,6 @@
1
- import { ProducerCodecOptions, RtpEncodingParameters } from 'mediasoup-client/lib/types';
1
+ import type { AParamsType as SharedAParamsType } from 'mediasfu-shared';
2
2
  import * as i0 from "@angular/core";
3
- export type AParamsType = {
4
- encodings: RtpEncodingParameters[];
5
- codecOptions?: ProducerCodecOptions;
6
- };
3
+ export type AParamsType = SharedAParamsType;
7
4
  /**
8
5
  * The `AParams` service provides the encoding parameters for audio production in a media session using the Mediasoup library.
9
6
  * It includes a default configuration for RTP encoding parameters, which can be used when creating audio producers.
@@ -1,9 +1,6 @@
1
- import { ProducerCodecOptions, RtpEncodingParameters } from 'mediasoup-client/lib/types';
1
+ import type { HParamsType as SharedHParamsType } from 'mediasfu-shared';
2
2
  import * as i0 from "@angular/core";
3
- export type HParamsType = {
4
- encodings: RtpEncodingParameters[];
5
- codecOptions?: ProducerCodecOptions;
6
- };
3
+ export type HParamsType = SharedHParamsType;
7
4
  /**
8
5
  * The `HParams` service provides encoding parameters for video production in a media session using the Mediasoup library.
9
6
  * It includes a default configuration for RTP encoding parameters designed for handling high-quality video streams.
@@ -1,9 +1,6 @@
1
- import { ProducerCodecOptions, RtpEncodingParameters } from 'mediasoup-client/lib/types';
1
+ import type { ScreenParamsType as SharedScreenParamsType } from 'mediasfu-shared';
2
2
  import * as i0 from "@angular/core";
3
- export type ScreenParamsType = {
4
- encodings: RtpEncodingParameters[];
5
- codecOptions?: ProducerCodecOptions;
6
- };
3
+ export type ScreenParamsType = SharedScreenParamsType;
7
4
  /**
8
5
  * The `ScreenParams` service provides encoding parameters specifically for screen sharing in a media session using the Mediasoup library.
9
6
  * It includes a default configuration for RTP encoding parameters optimized for high-quality screen sharing.
@@ -1,9 +1,6 @@
1
- import { ProducerCodecOptions, RtpEncodingParameters } from 'mediasoup-client/lib/types';
1
+ import type { VParamsType as SharedVParamsType } from 'mediasfu-shared';
2
2
  import * as i0 from "@angular/core";
3
- export type VParamsType = {
4
- encodings: RtpEncodingParameters[];
5
- codecOptions?: ProducerCodecOptions;
6
- };
3
+ export type VParamsType = SharedVParamsType;
7
4
  /**
8
5
  * The `VParams` service provides encoding parameters for video in a media session using the Mediasoup library.
9
6
  * It includes a default configuration for RTP encoding parameters optimized for video streaming.
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export interface SoundPlayerOptions {
4
4
  soundUrl: string;
5
5
  }
6
- export type SoundPlayerType = (options: SoundPlayerOptions) => void;
6
+ export type SoundPlayerType = (options: SoundPlayerOptions) => void | Promise<void>;
7
7
  /**
8
8
  * SoundPlayer service for playing a sound from a provided URL.
9
9
  *