From 03fb7c0a9302b02b61fb535df3e479a50fd441e8 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Fri, 22 Aug 2025 12:23:21 +0200 Subject: [PATCH] ov-components: Refactor recording stop event logging to include room name for better traceability --- .../videoconference.component.html | 124 ++++++++++-------- .../src/app/openvidu-call/call.component.ts | 3 +- 2 files changed, 69 insertions(+), 58 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html index e577cc54..9f32527b 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/videoconference/videoconference.component.html @@ -1,64 +1,74 @@
-
- - {{ 'PREJOIN.PREPARING' | translate }} -
- -
- - - - - - -
- -
- error - {{ componentState.error?.message }} -
- -
- - - - - + + @if (componentState.isLoading) { +
+ + {{ 'PREJOIN.PREPARING' | translate }} +
+ } @else if (componentState.showPrejoin) { + +
+ + + + + +
+ } @else if (componentState.error?.hasError) { + - - - - - +
+ error + {{ componentState.error?.message }} +
+ } @else if (componentState.isRoomReady) { + - - - - - -
-
+
+ + + + + + + + + + + + + + + + + + + +
+ } @else { + +
+ help_outline + An error occurred in the video conference +
+ }
diff --git a/openvidu-components-angular/src/app/openvidu-call/call.component.ts b/openvidu-components-angular/src/app/openvidu-call/call.component.ts index 48b0264e..5211e78f 100644 --- a/openvidu-components-angular/src/app/openvidu-call/call.component.ts +++ b/openvidu-components-angular/src/app/openvidu-call/call.component.ts @@ -332,7 +332,8 @@ export class CallComponent implements OnInit { } } async onRecordingStopRequested(event: RecordingStopRequestedEvent) { - this.appendElement('onRecordingStopRequested'); + this.appendElement('onRecordingStopRequested-' + event.roomName); + console.warn('STOP RECORDING CLICKED', event); try { await this.restService.stopRecording(event);