mediasfu-angular 2.2.2 → 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 (192) 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 +21817 -12635
  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 +2296 -29308
  45. package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +467 -4156
  46. package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +553 -23371
  47. package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +1269 -61673
  48. package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +501 -26250
  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/messages-modal/messages-modal.component.d.ts +3 -3
  55. package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +1004 -1004
  56. package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +4 -0
  57. package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +989 -989
  58. package/dist/lib/components/panelists-components/panelists-modal/panelists-modal.component.d.ts +73 -0
  59. package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +1004 -1004
  60. package/dist/lib/components/permissions-components/permissions-modal/permissions-modal.component.d.ts +89 -0
  61. package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +989 -989
  62. package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +990 -989
  63. package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +1004 -1004
  64. package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +987 -987
  65. package/dist/lib/components/translation-components/translation-settings-modal/translation-settings-modal.component.d.ts +124 -0
  66. package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +989 -989
  67. package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +2062 -1000
  68. package/dist/lib/components/whiteboard-components/whiteboard/whiteboard.component.d.ts +3 -15
  69. package/dist/lib/consumers/auto-adjust.service.d.ts +0 -11
  70. package/dist/lib/consumers/calculate-rows-and-columns.service.d.ts +0 -7
  71. package/dist/lib/consumers/change-vids.service.d.ts +1 -1
  72. package/dist/lib/consumers/check-permission.service.d.ts +4 -1
  73. package/dist/lib/consumers/check-screen-share.service.d.ts +0 -18
  74. package/dist/lib/consumers/compare-active-names.service.d.ts +0 -16
  75. package/dist/lib/consumers/compare-screen-states.service.d.ts +0 -18
  76. package/dist/lib/consumers/connect-ips.service.d.ts +2 -25
  77. package/dist/lib/consumers/connect-local-ips.service.d.ts +1 -28
  78. package/dist/lib/consumers/disp-streams.service.d.ts +1 -110
  79. package/dist/lib/consumers/generate-page-content.service.d.ts +0 -17
  80. package/dist/lib/consumers/get-estimate.service.d.ts +0 -21
  81. package/dist/lib/consumers/mix-streams.service.d.ts +0 -19
  82. package/dist/lib/consumers/on-screen-changes.service.d.ts +1 -21
  83. package/dist/lib/consumers/process-consumer-transports-audio.service.d.ts +1 -14
  84. package/dist/lib/consumers/process-consumer-transports.service.d.ts +3 -57
  85. package/dist/lib/consumers/re-update-inter.service.d.ts +1 -39
  86. package/dist/lib/consumers/reorder-streams.service.d.ts +1 -35
  87. package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +2 -13
  88. package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +1 -13
  89. package/dist/lib/consumers/socket-receive-methods/producer-closed.service.d.ts +1 -8
  90. package/dist/lib/consumers/translation-consumer-switch.service.d.ts +68 -0
  91. package/dist/lib/consumers/trigger.service.d.ts +0 -79
  92. package/dist/lib/consumers/update-mini-cards-grid.service.d.ts +0 -24
  93. package/dist/lib/directives/with-override.directive.d.ts +2 -2
  94. package/dist/lib/methods/background-methods/launch-background.service.d.ts +2 -5
  95. package/dist/lib/methods/breakout-room-methods/launch-breakout-rooms.service.d.ts +2 -5
  96. package/dist/lib/methods/co-host-methods/launch-co-host.service.d.ts +2 -5
  97. package/dist/lib/methods/co-host-methods/modify-co-host-settings.service.d.ts +1 -1
  98. package/dist/lib/methods/display-settings-methods/launch-display-settings.service.d.ts +2 -5
  99. package/dist/lib/methods/display-settings-methods/modify-display-settings.service.d.ts +2 -0
  100. package/dist/lib/methods/exit-methods/launch-confirm-exit.service.d.ts +2 -5
  101. package/dist/lib/methods/menu-methods/launch-menu-modal.service.d.ts +2 -5
  102. package/dist/lib/methods/message-methods/launch-messages.service.d.ts +2 -5
  103. package/dist/lib/methods/panelists-methods/add-panelist.service.d.ts +19 -0
  104. package/dist/lib/methods/panelists-methods/focus-panelists.service.d.ts +19 -0
  105. package/dist/lib/methods/panelists-methods/remove-panelist.service.d.ts +17 -0
  106. package/dist/lib/methods/participants-methods/launch-participants.service.d.ts +2 -5
  107. package/dist/lib/methods/permissions-methods/bulk-update-participant-permissions.service.d.ts +20 -0
  108. package/dist/lib/methods/permissions-methods/update-participant-permission.service.d.ts +19 -0
  109. package/dist/lib/methods/permissions-methods/update-permission-config.service.d.ts +29 -0
  110. package/dist/lib/methods/polls-methods/handle-create-poll.service.d.ts +1 -1
  111. package/dist/lib/methods/polls-methods/handle-end-poll.service.d.ts +1 -1
  112. package/dist/lib/methods/polls-methods/handle-vote-poll.service.d.ts +1 -1
  113. package/dist/lib/methods/polls-methods/poll-updated.service.d.ts +1 -1
  114. package/dist/lib/methods/recording-methods/check-pause-state.service.d.ts +1 -12
  115. package/dist/lib/methods/recording-methods/check-resume-state.service.d.ts +1 -11
  116. package/dist/lib/methods/recording-methods/confirm-recording.service.d.ts +0 -94
  117. package/dist/lib/methods/recording-methods/launch-recording.service.d.ts +1 -20
  118. package/dist/lib/methods/recording-methods/record-pause-timer.service.d.ts +1 -12
  119. package/dist/lib/methods/recording-methods/record-resume-timer.service.d.ts +0 -66
  120. package/dist/lib/methods/recording-methods/record-start-timer.service.d.ts +1 -33
  121. package/dist/lib/methods/recording-methods/record-update-timer.service.d.ts +1 -17
  122. package/dist/lib/methods/recording-methods/start-recording.service.d.ts +1 -92
  123. package/dist/lib/methods/recording-methods/stop-recording.service.d.ts +1 -42
  124. package/dist/lib/methods/recording-methods/update-recording.service.d.ts +1 -94
  125. package/dist/lib/methods/requests-methods/launch-requests.service.d.ts +2 -5
  126. package/dist/lib/methods/settings-methods/launch-settings.service.d.ts +2 -5
  127. package/dist/lib/methods/settings-methods/modify-settings.service.d.ts +1 -1
  128. package/dist/lib/methods/stream-methods/click-chat.service.d.ts +1 -1
  129. package/dist/lib/methods/utils/get-modal-position.util.d.ts +0 -3
  130. package/dist/lib/methods/utils/initial-values.util.d.ts +18 -1
  131. package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +8 -0
  132. package/dist/lib/methods/utils/producer/a-params.service.d.ts +2 -8
  133. package/dist/lib/methods/utils/producer/h-params.service.d.ts +2 -8
  134. package/dist/lib/methods/utils/producer/screen-params.service.d.ts +2 -8
  135. package/dist/lib/methods/utils/producer/v-params.service.d.ts +2 -8
  136. package/dist/lib/methods/utils/sound-player.service.d.ts +1 -1
  137. package/dist/lib/methods/utils/translation-languages.util.d.ts +341 -0
  138. package/dist/lib/methods/waiting-methods/launch-waiting.service.d.ts +2 -5
  139. package/dist/lib/modern/display-components/modern-alert.component.d.ts +40 -0
  140. package/dist/lib/modern/display-components/modern-loading-modal.component.d.ts +37 -0
  141. package/dist/lib/modern/display-components/modern-meeting-progress-timer.component.d.ts +40 -0
  142. package/dist/lib/modern/display-components/modern-mini-card.component.d.ts +1064 -0
  143. package/dist/lib/modern/display-components/modern-pagination.component.d.ts +91 -0
  144. package/dist/lib/modern/display-components/modern-participants-counter-badge.component.d.ts +16 -0
  145. package/dist/lib/modern/modal-components/modern-co-host-modal.component.d.ts +63 -0
  146. package/dist/lib/modern/modal-components/modern-confirm-exit-modal.component.d.ts +42 -0
  147. package/dist/lib/modern/modal-components/modern-confirm-here-modal.component.d.ts +39 -0
  148. package/dist/lib/modern/modal-components/modern-display-settings-modal.component.d.ts +59 -0
  149. package/dist/lib/modern/modal-components/modern-event-settings-modal.component.d.ts +80 -0
  150. package/dist/lib/modern/modal-components/modern-media-settings-modal.component.d.ts +72 -0
  151. package/dist/lib/modern/modal-components/modern-menu-modal.component.d.ts +48 -0
  152. package/dist/lib/modern/modal-components/modern-messages-modal.component.d.ts +58 -0
  153. package/dist/lib/modern/modal-components/modern-participants-modal.component.d.ts +49 -0
  154. package/dist/lib/modern/modal-components/modern-poll-modal.component.d.ts +54 -0
  155. package/dist/lib/modern/modal-components/modern-recording-modal.component.d.ts +39 -0
  156. package/dist/lib/modern/modal-components/modern-requests-modal.component.d.ts +61 -0
  157. package/dist/lib/modern/modal-components/modern-share-event-modal.component.d.ts +39 -0
  158. package/dist/lib/modern/modal-components/modern-waiting-room-modal.component.d.ts +55 -0
  159. package/dist/lib/modern/primitives/modern-button.component.d.ts +10 -0
  160. package/dist/lib/modern/primitives/modern-entry-shell.component.d.ts +6 -0
  161. package/dist/lib/modern/primitives/modern-field.component.d.ts +32 -0
  162. package/dist/lib/modern/primitives/modern-sidebar-panel.component.d.ts +24 -0
  163. package/dist/lib/modern/primitives/modern-surface.component.d.ts +7 -0
  164. package/dist/lib/modern/utils/render-mode.utils.d.ts +3 -0
  165. package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +0 -9
  166. package/dist/lib/producer-client/producer-client-emits/join-room-client.service.d.ts +0 -19
  167. package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +5 -62
  168. package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +0 -18
  169. package/dist/lib/producers/producer-emits/join-local-room.service.d.ts +3 -106
  170. package/dist/lib/producers/producer-emits/join-room.service.d.ts +0 -18
  171. package/dist/lib/producers/socket-receive-methods/added-as-panelist.service.d.ts +15 -0
  172. package/dist/lib/producers/socket-receive-methods/all-members-rest.service.d.ts +1 -90
  173. package/dist/lib/producers/socket-receive-methods/all-members.service.d.ts +1 -88
  174. package/dist/lib/producers/socket-receive-methods/control-media-host.service.d.ts +1 -66
  175. package/dist/lib/producers/socket-receive-methods/meeting-still-there.service.d.ts +1 -1
  176. package/dist/lib/producers/socket-receive-methods/panelist-focus-changed.service.d.ts +25 -0
  177. package/dist/lib/producers/socket-receive-methods/panelists-updated.service.d.ts +19 -0
  178. package/dist/lib/producers/socket-receive-methods/permission-config-updated.service.d.ts +15 -0
  179. package/dist/lib/producers/socket-receive-methods/permission-updated.service.d.ts +17 -0
  180. package/dist/lib/producers/socket-receive-methods/person-joined.service.d.ts +1 -1
  181. package/dist/lib/producers/socket-receive-methods/producer-media-paused.service.d.ts +0 -80
  182. package/dist/lib/producers/socket-receive-methods/producer-media-resumed.service.d.ts +1 -1
  183. package/dist/lib/producers/socket-receive-methods/receive-control-media.service.d.ts +21 -0
  184. package/dist/lib/producers/socket-receive-methods/recording-notice.service.d.ts +1 -5
  185. package/dist/lib/producers/socket-receive-methods/removed-from-panelists.service.d.ts +15 -0
  186. package/dist/lib/producers/socket-receive-methods/room-record-params.service.d.ts +1 -1
  187. package/dist/lib/producers/socket-receive-methods/translation-receive-methods.service.d.ts +20 -0
  188. package/dist/lib/services/live-subtitle.service.d.ts +15 -0
  189. package/dist/lib/sockets/socket-manager.service.d.ts +1 -2
  190. package/dist/public-api.d.ts +42 -1
  191. package/package.json +106 -95
  192. package/dist/lib/methods/utils/producer/video-capture-constraints.service.d.ts +0 -177
@@ -33,18 +33,7 @@ export type CheckPauseStateType = (options: CheckPauseStateOptions) => Promise<b
33
33
  * ```
34
34
  */
35
35
  export declare class CheckPauseState {
36
- /**
37
- * Checks if the recording can be paused based on the current pause count and the allowed pause limits.
38
- *
39
- * @param {Object} options - The options for checking the pause state.
40
- * @param {string} options.recordingMediaOptions - The type of media being recorded ("video" or "audio").
41
- * @param {number} options.recordingVideoPausesLimit - The maximum number of pauses allowed for video recordings.
42
- * @param {number} options.recordingAudioPausesLimit - The maximum number of pauses allowed for audio recordings.
43
- * @param {number} options.pauseRecordCount - The current count of pauses that have been made.
44
- * @param {Function} options.showAlert - A function to show an alert message if the pause limit is reached.
45
- * @returns {Promise<boolean>} - A promise that resolves to `true` if the recording can be paused, otherwise `false`.
46
- */
47
- checkPauseState: ({ recordingMediaOptions, recordingVideoPausesLimit, recordingAudioPausesLimit, pauseRecordCount, showAlert, }: CheckPauseStateOptions) => Promise<boolean>;
36
+ checkPauseState: (options: CheckPauseStateOptions) => Promise<boolean>;
48
37
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckPauseState, never>;
49
38
  static ɵprov: i0.ɵɵInjectableDeclaration<CheckPauseState>;
50
39
  }
@@ -29,17 +29,7 @@ export type CheckResumeStateType = (options: CheckResumeStateOptions) => Promise
29
29
  * ```
30
30
  */
31
31
  export declare class CheckResumeState {
32
- /**
33
- * Checks if the recording can be resumed based on the media type and pause limits.
34
- *
35
- * @param {Object} options - The options for checking resume state.
36
- * @param {string} options.recordingMediaOptions - The type of media being recorded ("video" or "audio").
37
- * @param {number} options.recordingVideoPausesLimit - The maximum number of pauses allowed for video recording.
38
- * @param {number} options.recordingAudioPausesLimit - The maximum number of pauses allowed for audio recording.
39
- * @param {number} options.pauseRecordCount - The current number of pauses that have occurred.
40
- * @returns {Promise<boolean>} - A promise that resolves to a boolean indicating whether the recording can be resumed.
41
- */
42
- checkResumeState: ({ recordingMediaOptions, recordingVideoPausesLimit, recordingAudioPausesLimit, pauseRecordCount, }: CheckResumeStateOptions) => Promise<boolean>;
32
+ checkResumeState: (options: CheckResumeStateOptions) => Promise<boolean>;
43
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckResumeState, never>;
44
34
  static ɵprov: i0.ɵɵInjectableDeclaration<CheckResumeState>;
45
35
  }
@@ -40,101 +40,7 @@ export interface ConfirmRecordingOptions {
40
40
  parameters: ConfirmRecordingParameters;
41
41
  }
42
42
  export type ConfirmRecordingType = (options: ConfirmRecordingOptions) => Promise<void>;
43
- /**
44
- * Confirms the recording settings based on the provided parameters and updates the recording state.
45
- *
46
- * @param {ConfirmRecordingOptions} options - The options for confirming the recording.
47
- * @param {ConfirmRecordingParameters} options.parameters - The parameters for the recording, including:
48
- * - {ShowAlert} [options.parameters.showAlert] - Optional function to show alert messages.
49
- * - {string} options.parameters.recordingMediaOptions - Type of media being recorded ("video" or "audio").
50
- * - {string} options.parameters.recordingAudioOptions - Audio recording options.
51
- * - {string} options.parameters.recordingVideoOptions - Video recording options.
52
- * - {string} options.parameters.recordingVideoType - Type of video recording.
53
- * - {'video' | 'media' | 'all'} options.parameters.recordingDisplayType - The display type for the recording.
54
- * - {boolean} options.parameters.recordingNameTags - Flag for including name tags in the recording.
55
- * - {string} options.parameters.recordingBackgroundColor - Background color for the recording.
56
- * - {string} options.parameters.recordingNameTagsColor - Color for the name tags.
57
- * - {string} options.parameters.recordingOrientationVideo - Orientation for video recording.
58
- * - {boolean} options.parameters.recordingAddHLS - Flag for adding HLS support.
59
- * - {boolean} options.parameters.recordingAddText - Flag for adding custom text.
60
- * - {string} options.parameters.recordingCustomText - Custom text for the recording.
61
- * - {string} options.parameters.recordingCustomTextPosition - Position of the custom text.
62
- * - {string} options.parameters.recordingCustomTextColor - Color of the custom text.
63
- * - {string} options.parameters.meetingDisplayType - Current display type of the meeting.
64
- * - {boolean} options.parameters.recordingVideoParticipantsFullRoomSupport - Support for video participants in full room.
65
- * - {boolean} options.parameters.recordingAllParticipantsSupport - Support for recording all participants.
66
- * - {boolean} options.parameters.recordingVideoParticipantsSupport - Support for video participants.
67
- * - {boolean} options.parameters.recordingSupportForOtherOrientation - Support for other orientations.
68
- * - {string} options.parameters.recordingPreferredOrientation - Preferred orientation for recording.
69
- * - {boolean} options.parameters.recordingMultiFormatsSupport - Support for multiple formats.
70
- * - {boolean} options.parameters.recordingVideoOptimized - Flag for video optimization.
71
- * - {boolean} options.parameters.recordingAllParticipantsFullRoomSupport - Support for recording all participants in full room.
72
- * - {boolean} options.parameters.meetingVideoOptimized - Flag for meeting video optimization.
73
- * - {EventType} options.parameters.eventType - Type of the event.
74
- * - {boolean} options.parameters.breakOutRoomStarted - Indicates if a breakout room has started.
75
- * - {boolean} options.parameters.breakOutRoomEnded - Indicates if a breakout room has ended.
76
- * - {Function} options.parameters.updateRecordingDisplayType - Function to update the recording display type.
77
- * - {Function} options.parameters.updateRecordingVideoOptimized - Function to update video optimization status.
78
- * - {Function} options.parameters.updateUserRecordingParams - Function to update user recording parameters.
79
- * - {Function} options.parameters.updateConfirmedToRecord - Function to confirm the recording.
80
- *
81
- * @returns {Promise<void>} A promise that resolves when the recording settings have been confirmed.
82
- *
83
- * @remarks
84
- * This function performs several checks to ensure that the recording settings are valid based on the provided parameters.
85
- * If any of the checks fail, an alert is shown and the function returns early without updating the recording state.
86
- *
87
- * The function checks for the following conditions:
88
- * - Whether recording videos of all participants is allowed.
89
- * - Whether recording all participants is allowed.
90
- * - Whether recording other video participants is allowed.
91
- * - Whether recording all orientations is allowed.
92
- * - Whether recording the preferred orientation is allowed.
93
- * - Whether recording all formats is allowed.
94
- * - Whether the recording display type is valid based on the meeting display type.
95
- * - Whether recording all participants with media is allowed.
96
- *
97
- * If all checks pass, the function constructs the `mainSpecs`, `dispSpecs`, and `textSpecs` objects based on the state variables,
98
- * updates the user recording parameters, and confirms the recording.
99
- *
100
- * @example
101
- * ```typescript
102
- * const options: ConfirmRecordingOptions = { parameters: someParameters };
103
- * await confirmRecording(options);
104
- * ```
105
- */
106
43
  export declare class ConfirmRecording {
107
- /**
108
- * Confirms the recording settings based on the provided parameters and updates the recording state.
109
- *
110
- * @param {ConfirmRecordingOptions} options - The options for confirming the recording.
111
- * @param {Parameters} options.parameters - The parameters for the recording.
112
- *
113
- * @returns {Promise<void>} A promise that resolves when the recording settings have been confirmed.
114
- *
115
- * @remarks
116
- * This function performs several checks to ensure that the recording settings are valid based on the provided parameters.
117
- * If any of the checks fail, an alert is shown and the function returns early without updating the recording state.
118
- *
119
- * The function checks for the following conditions:
120
- * - Whether recording videos of all participants is allowed.
121
- * - Whether recording all participants is allowed.
122
- * - Whether recording other video participants is allowed.
123
- * - Whether recording all orientations is allowed.
124
- * - Whether recording the preferred orientation is allowed.
125
- * - Whether recording all formats is allowed.
126
- * - Whether the recording display type is valid based on the meeting display type.
127
- * - Whether recording all participants with media is allowed.
128
- *
129
- * If all checks pass, the function constructs the `mainSpecs`, `dispSpecs`, and `textSpecs` objects based on the state variables,
130
- * updates the user recording parameters, and confirms the recording.
131
- *
132
- * @example
133
- * ```typescript
134
- * const options: ConfirmRecordingOptions = { parameters: someParameters };
135
- * await confirmRecording(options);
136
- * ```
137
- */
138
44
  confirmRecording: ({ parameters }: ConfirmRecordingOptions) => Promise<void>;
139
45
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmRecording, never>;
140
46
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmRecording>;
@@ -60,26 +60,7 @@ export type LaunchRecordingType = (options: LaunchRecordingOptions) => void;
60
60
  * ```
61
61
  */
62
62
  export declare class LaunchRecording {
63
- /**
64
- * Launches the recording process based on various conditions and updates the UI accordingly.
65
- *
66
- * @param {Object} options - The options for launching the recording.
67
- * @param {Function} options.updateIsRecordingModalVisible - Function to update the visibility of the recording modal.
68
- * @param {boolean} options.isRecordingModalVisible - Indicates if the recording modal is currently visible.
69
- * @param {Function} options.showAlert - Function to show an alert message.
70
- * @param {boolean} options.stopLaunchRecord - Indicates if the recording launch should be stopped.
71
- * @param {boolean} options.canLaunchRecord - Indicates if the recording can be launched.
72
- * @param {boolean} options.recordingAudioSupport - Indicates if audio recording is supported.
73
- * @param {boolean} options.recordingVideoSupport - Indicates if video recording is supported.
74
- * @param {Function} options.updateCanRecord - Function to update the recording capability.
75
- * @param {Function} options.updateClearedToRecord - Function to update the cleared-to-record status.
76
- * @param {boolean} options.recordStarted - Indicates if the recording has started.
77
- * @param {boolean} options.recordPaused - Indicates if the recording is paused.
78
- * @param {boolean} options.localUIMode - Indicates if the local UI mode is active.
79
- *
80
- * @returns {void}
81
- */
82
- launchRecording({ updateIsRecordingModalVisible, isRecordingModalVisible, showAlert, stopLaunchRecord, canLaunchRecord, recordingAudioSupport, recordingVideoSupport, updateCanRecord, updateClearedToRecord, recordStarted, recordPaused, localUIMode, }: LaunchRecordingOptions): void;
63
+ launchRecording(options: LaunchRecordingOptions): void;
83
64
  static ɵfac: i0.ɵɵFactoryDeclaration<LaunchRecording, never>;
84
65
  static ɵprov: i0.ɵɵInjectableDeclaration<LaunchRecording>;
85
66
  }
@@ -35,18 +35,7 @@ export type RecordPauseTimerType = (options: RecordPauseTimerOptions) => boolean
35
35
  * ```
36
36
  */
37
37
  export declare class RecordPauseTimer {
38
- /**
39
- * Controls the pause and resume functionality of a recording timer.
40
- *
41
- * @param {Object} options - The options for controlling the timer.
42
- * @param {boolean} [options.stop=false] - Indicates whether to stop the timer.
43
- * @param {Object} options.parameters - The parameters for the timer control.
44
- * @param {boolean} options.parameters.isTimerRunning - Indicates if the timer is currently running.
45
- * @param {boolean} options.parameters.canPauseResume - Indicates if the timer can be paused or resumed.
46
- * @param {Function} [options.parameters.showAlert] - Optional function to show an alert message.
47
- * @returns {boolean} - Returns true if the timer can be paused or resumed, otherwise false.
48
- */
49
- recordPauseTimer: ({ stop, isTimerRunning, canPauseResume, showAlert, }: RecordPauseTimerOptions) => boolean;
38
+ recordPauseTimer: (options: RecordPauseTimerOptions) => boolean;
50
39
  static ɵfac: i0.ɵɵFactoryDeclaration<RecordPauseTimer, never>;
51
40
  static ɵprov: i0.ɵɵInjectableDeclaration<RecordPauseTimer>;
52
41
  }
@@ -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
  *