frontend: fix retrieval of recording URL by including secret in the request and update video player attributes
This commit is contained in:
parent
0c2b76d754
commit
ebdd70c42b
@ -6,13 +6,11 @@
|
|||||||
<video
|
<video
|
||||||
autoplay
|
autoplay
|
||||||
controls
|
controls
|
||||||
muted
|
playsinline
|
||||||
class="video-player"
|
class="video-player"
|
||||||
[src]="recordingUrl"
|
[src]="recordingUrl"
|
||||||
(error)="videoError = true"
|
(error)="videoError = true"
|
||||||
>
|
></video>
|
||||||
Your browser does not support the video tag.
|
|
||||||
</video>
|
|
||||||
</div>
|
</div>
|
||||||
} @else {
|
} @else {
|
||||||
<div class="video-error">
|
<div class="video-error">
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export class ViewRecordingComponent implements OnInit {
|
|||||||
this.recording = await this.httpService.getRecording(recordingId!, secret!);
|
this.recording = await this.httpService.getRecording(recordingId!, secret!);
|
||||||
|
|
||||||
if (this.recording.status === MeetRecordingStatus.COMPLETE) {
|
if (this.recording.status === MeetRecordingStatus.COMPLETE) {
|
||||||
this.recordingUrl = this.httpService.getRecordingMediaUrl(this.recording!.recordingId);
|
this.recordingUrl = this.httpService.getRecordingMediaUrl(recordingId!, secret!);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching recording:', error);
|
console.error('Error fetching recording:', error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user