[mirotalksfu] - popup recording info

هذا الالتزام موجود في:
Miroslav Pejic
2023-06-08 15:18:22 +02:00
الأصل ef4974a906
التزام ed9de12a59
3 ملفات معدلة مع 45 إضافات و7 حذوفات

عرض الملف

@@ -3235,6 +3235,29 @@ class RoomClient {
const type = recordedBlobs[0].type.includes('mp4') ? 'mp4' : 'webm';
const blob = new Blob(recordedBlobs, { type: 'video/' + type });
const recFileName = `${dateTime}-REC.${type}`;
const currentDevice = DetectRTC.isMobileDevice ? 'MOBILE' : 'PC';
const blobFileSize = bytesToSize(blob.size);
const recTime = document.getElementById('recordingStatus').innerText;
Swal.fire({
background: swalBackground,
position: 'center',
icon: 'success',
title: 'Recording',
html: `
<div style="text-align: left;">
🔴 &nbsp; Recording Info: <br/><br/>
<ul>
<li>Time: ${recTime}</li>
<li>File: ${recFileName}</li>
<li>Size: ${blobFileSize}</li>
</ul>
<br/>
Please wait to be processed, then will be downloaded to your ${currentDevice} device.
</div>`,
showClass: { popup: 'animate__animated animate__fadeInDown' },
hideClass: { popup: 'animate__animated animate__fadeOutUp' },
});
console.log('MediaRecorder Download Blobs');
const url = window.URL.createObjectURL(blob);