mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed bug with playing recording
Set a default value if recording extension is undefined.pull/743/head
parent
65025c4e33
commit
1122fb8649
|
@ -73,7 +73,7 @@ export class RecordingService {
|
|||
*/
|
||||
playRecording(recording: RecordingInfo) {
|
||||
const recordingId = recording.id;
|
||||
const extension = recording.url?.split('.').pop();
|
||||
const extension = recording.url?.split('.').pop() || 'mp4';
|
||||
this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${recordingId}/${recordingId}.${extension}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue