mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed recording extension
parent
84d3ea1de7
commit
8f2cfec201
|
@ -84,7 +84,7 @@ export class RecordingService {
|
|||
*/
|
||||
downloadRecording(recording: RecordingInfo) {
|
||||
const recordingId = recording.id;
|
||||
const extension = recording.url?.split('.').pop();
|
||||
const extension = recording.url?.split('.').pop() || 'mp4';
|
||||
|
||||
const link = document.createElement('a');
|
||||
link.href = `/recordings/${recordingId}/${recordingId}.${extension}`;
|
||||
|
|
Loading…
Reference in New Issue