ov-components: Refactor recording stop event logging to include room name for better traceability

master
Carlos Santos 2025-08-22 12:23:21 +02:00
parent 1762c43769
commit 03fb7c0a93
2 changed files with 69 additions and 58 deletions

View File

@ -1,10 +1,13 @@
<div id="call-container">
<!-- Loading spinner -->
@if (componentState.isLoading) {
<div id="spinner" *ngIf="componentState.isLoading">
<mat-spinner [diameter]="spinnerDiameter"></mat-spinner>
<span>{{ 'PREJOIN.PREPARING' | translate }}</span>
</div>
<div [@inOutAnimation] id="pre-join-container" *ngIf="componentState.showPrejoin && !componentState.isLoading">
} @else if (componentState.showPrejoin) {
<!-- Prejoin -->
<div [@inOutAnimation] id="pre-join-container">
<ng-container *ngIf="openviduAngularPreJoinTemplate; else defaultPreJoin">
<ng-container *ngTemplateOutlet="openviduAngularPreJoinTemplate"></ng-container>
</ng-container>
@ -20,17 +23,17 @@
></ov-pre-join>
</ng-template>
</div>
} @else if (componentState.error?.hasError) {
<!-- Error -->
<div id="spinner" *ngIf="!componentState.isLoading && componentState.error?.hasError">
<div id="spinner">
<mat-icon class="error-icon">error</mat-icon>
<span>{{ componentState.error?.message }}</span>
</div>
} @else if (componentState.isRoomReady) {
<!-- VideoConference -->
<div
[@inOutAnimation]
id="vc-container"
*ngIf="componentState.isRoomReady && !componentState.showPrejoin && !componentState.isLoading && !componentState.error?.hasError"
>
<div [@inOutAnimation] id="vc-container">
<ov-session
(onRoomCreated)="onRoomCreated.emit($event)"
(onRoomReconnecting)="onRoomDisconnected.emit()"
@ -59,6 +62,13 @@
</ng-template>
</ov-session>
</div>
} @else {
<!-- Fallback / unknown state -->
<div id="unknown-state">
<mat-icon class="warning-icon">help_outline</mat-icon>
<span>An error occurred in the video conference</span>
</div>
}
</div>
<ng-template #defaultToolbar>

View File

@ -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);