Skip to content

Commit

Permalink
[mirotalksfu] - fix popup rec time
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 9, 2023
1 parent ed9de12 commit 76f67b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,7 @@ class RoomClient {
const recFileName = `${dateTime}-REC.${type}`;
const currentDevice = DetectRTC.isMobileDevice ? 'MOBILE' : 'PC';
const blobFileSize = bytesToSize(blob.size);
const recTime = document.getElementById('recordingStatus').innerText;
const recTime = document.getElementById('recordingStatus');

Swal.fire({
background: swalBackground,
Expand All @@ -3248,7 +3248,7 @@ class RoomClient {
<div style="text-align: left;">
🔴 &nbsp; Recording Info: <br/><br/>
<ul>
<li>Time: ${recTime}</li>
<li>Time: ${recTime.innerText}</li>
<li>File: ${recFileName}</li>
<li>Size: ${blobFileSize}</li>
</ul>
Expand All @@ -3272,6 +3272,8 @@ class RoomClient {
window.URL.revokeObjectURL(url);
}, 100);
console.log(`🔴 Recording FILE: ${recFileName} done 👍`);

recTime.innerText = '0s';
} catch (ex) {
console.warn('Recording save failed', ex);
}
Expand All @@ -3298,7 +3300,6 @@ class RoomClient {
});
}
if (this.isMobileDevice) this.getId('swapCameraButton').className = '';
this.getId('recordingStatus').innerText = '0s';
this.event(_EVENTS.stopRec);
this.sound('recStop');
}
Expand Down

0 comments on commit 76f67b3

Please sign in to comment.