Skip to content

Commit

Permalink
openvidu-components: Fixed recording extension
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Sep 7, 2022
1 parent 74cfa1e commit 0865aaa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}

Expand All @@ -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}`;
Expand Down

0 comments on commit 0865aaa

Please sign in to comment.