mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed recording extension
parent
74cfa1e567
commit
0865aaa97f
|
@ -73,7 +73,8 @@ export class RecordingService {
|
||||||
*/
|
*/
|
||||||
playRecording(recording: RecordingInfo) {
|
playRecording(recording: RecordingInfo) {
|
||||||
const recordingId = recording.id;
|
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}`);
|
this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${recordingId}/${recordingId}.${extension}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +85,8 @@ export class RecordingService {
|
||||||
*/
|
*/
|
||||||
downloadRecording(recording: RecordingInfo) {
|
downloadRecording(recording: RecordingInfo) {
|
||||||
const recordingId = recording.id;
|
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');
|
const link = document.createElement('a');
|
||||||
link.href = `/recordings/${recordingId}/${recordingId}.${extension}`;
|
link.href = `/recordings/${recordingId}/${recordingId}.${extension}`;
|
||||||
|
|
Loading…
Reference in New Issue