From 0865aaa97feb38cdcc6655208a85a154977c763b Mon Sep 17 00:00:00 2001 From: csantosm <4a.santos@gmail.com> Date: Wed, 7 Sep 2022 12:44:47 +0200 Subject: [PATCH] openvidu-components: Fixed recording extension --- .../src/lib/services/recording/recording.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/recording/recording.service.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/recording/recording.service.ts index e55e4b9484..cbb2aec250 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/recording/recording.service.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/recording/recording.service.ts @@ -73,7 +73,8 @@ export class RecordingService { */ playRecording(recording: RecordingInfo) { const recordingId = recording.id; - const extension = recording.url?.split('.').pop() || 'mp4'; + // Only COMPOSED recording is supported. The extension will allways be 'mp4'. + const extension = 'mp4'; //recording.url?.split('.').pop() || 'mp4'; this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${recordingId}/${recordingId}.${extension}`); } @@ -84,7 +85,8 @@ export class RecordingService { */ downloadRecording(recording: RecordingInfo) { const recordingId = recording.id; - const extension = recording.url?.split('.').pop() || 'mp4'; + // Only COMPOSED recording is supported. The extension will allways be 'mp4'. + const extension = 'mp4'; //recording.url?.split('.').pop() || 'mp4'; const link = document.createElement('a'); link.href = `/recordings/${recordingId}/${recordingId}.${extension}`;