frontend: fix retrieval of recording URL by including secret in the request and update video player attributes

This commit is contained in:
juancarmore 2025-06-18 12:10:50 +02:00
parent 0c2b76d754
commit ebdd70c42b
2 changed files with 3 additions and 5 deletions

View File

@ -6,13 +6,11 @@
<video
autoplay
controls
muted
playsinline
class="video-player"
[src]="recordingUrl"
(error)="videoError = true"
>
Your browser does not support the video tag.
</video>
></video>
</div>
} @else {
<div class="video-error">

View File

@ -39,7 +39,7 @@ export class ViewRecordingComponent implements OnInit {
this.recording = await this.httpService.getRecording(recordingId!, secret!);
if (this.recording.status === MeetRecordingStatus.COMPLETE) {
this.recordingUrl = this.httpService.getRecordingMediaUrl(this.recording!.recordingId);
this.recordingUrl = this.httpService.getRecordingMediaUrl(recordingId!, secret!);
}
} catch (error) {
console.error('Error fetching recording:', error);