diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/recording-activity/recording-activity.component.html b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/recording-activity/recording-activity.component.html index e7a89449..5f871081 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/recording-activity/recording-activity.component.html +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/recording-activity/recording-activity.component.html @@ -17,14 +17,15 @@ starting: recordingStatus === recStatusEnum.STARTING || recordingStatus === recStatusEnum.STOPPING }" > - - video_camera_front - - error - radio_button_checked + @if (recordingStatus !== recStatusEnum.FAILED && recordingStatus !== recStatusEnum.STARTED) { + video_camera_front + } + @if (recordingStatus === recStatusEnum.FAILED) { + error + } + @if (recordingStatus === recStatusEnum.STARTED) { + radio_button_checked + }

{{ 'PANEL.RECORDING.TITLE' | translate }}

@@ -48,61 +49,102 @@ -
-
- -
- -
- - -
-

- {{ - isReadOnlyMode - ? ('PANEL.RECORDING.VIEW_ONLY_CONTENT_TITLE' | translate) - : ('PANEL.RECORDING.CONTENT_TITLE' | translate) - }} -

- - {{ - isReadOnlyMode - ? recordingList.length === 0 - ? ('PANEL.RECORDING.NO_RECORDINGS_AVAILABLE' | translate) - : ('PANEL.RECORDING.VIEW_ONLY_CONTENT_SUBTITLE' | translate) - : ('PANEL.RECORDING.CONTENT_SUBTITLE' | translate) - }} - -
- - - @if (!isReadOnlyMode) { -
- - - - -
- + @if (isPanelOpened) { +
+
+ + @if (recordingList.length === 0) { +
+
+ } + + @if (recordingList.length === 0) { +
+

+ {{ + isReadOnlyMode + ? ('PANEL.RECORDING.VIEW_ONLY_CONTENT_TITLE' | translate) + : ('PANEL.RECORDING.CONTENT_TITLE' | translate) + }} +

+ + {{ + isReadOnlyMode + ? recordingList.length === 0 + ? ('PANEL.RECORDING.NO_RECORDINGS_AVAILABLE' | translate) + : ('PANEL.RECORDING.VIEW_ONLY_CONTENT_SUBTITLE' | translate) + : ('PANEL.RECORDING.CONTENT_SUBTITLE' | translate) + }} + +
+ } + + + @if (!isReadOnlyMode) { +
+ + @if (recordingAlive) { + + } + + + @if (recordingStatus === recStatusEnum.STOPPED) { +
+ +
+ } + + +
+ +
+ + +
+ @if (recordingStatus === recStatusEnum.STARTING) { + + {{ 'PANEL.RECORDING.STARTING' | translate }} + + } + + @if (recordingStatus === recStatusEnum.STOPPING) { + + {{ 'PANEL.RECORDING.STOPPING' | translate }} + + } + + @if (recordingStatus === recStatusEnum.FAILED) { +
+ Message: {{ recordingError }} + +
+ } +
+
+ } @else {
+ } +
+ @if (recordingList.length > 0) { + + } - -
- - {{ 'PANEL.RECORDING.STARTING' | translate }} - + + @if (recordingList.length > 0) { +
+ + @for (recording of recordingList; track trackByRecordingId($index, recording)) { + + + video_file - - {{ 'PANEL.RECORDING.STOPPING' | translate }} - + +
+ {{ recording.filename }} +
-
- Message: {{ recordingError }} - -
-
-
- } @else { - -
- + +
+ @if (recording.status === recStatusEnum.STARTED) { + + {{ 'PANEL.RECORDING.IN_PROGRESS' | translate }} + + } @else { + {{ recording.duration | duration }} + | {{ recording.size / 1024 / 1024 | number: '1.1-2' }} MBs + } +
+ + + @if (recording.status !== recStatusEnum.STARTED) { +
+ {{ recording.startedAt | date: 'HH:mm - dd/MM/yyyy' }} +
+ } + + + @if (!isReadOnlyMode) { + @if (recording.status !== recStatusEnum.STARTED) { +
+ @if (showControls.play) { + + } + + @if (showControls.externalView) { + + } + + @if (showControls.download) { + + } + + @if (showControls.delete) { + + } +
+ } + } @else { + @if (recording.status !== recStatusEnum.STARTED) { +
+ +
+ } + } + + } +
}
- - - -
- - - - video_file - - -
- {{ recording.filename }} -
- - -
- - {{ 'PANEL.RECORDING.IN_PROGRESS' | translate }} - - - {{ recording.duration | duration }} - | {{ recording.size / 1024 / 1024 | number: '1.1-2' }} MBs - -
- - -
- {{ recording.startedAt | date: 'HH:mm - dd/MM/yyyy' }} -
- - - @if (!isReadOnlyMode) { -
- - - @if (showControls.externalView) { -
- -
- } - - - - -
- } @else { -
- -
- } -
-
-
-
+ }