Skip to content

Commit 6410d30

Browse files
[mirotalk] - fix(recording): always pass timeslice to MediaRecorder.start()
1 parent 6f6c037 commit 6410d30

7 files changed

Lines changed: 19 additions & 15 deletions

File tree

.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ====================================================
2-
# MiroTalk P2P v.1.8.44 - Environment Configuration
2+
# MiroTalk P2P v.1.8.45 - Environment Configuration
33
# ====================================================
44

55
# App environment

app/src/config.template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* ==============================================
5-
* MiroTalk P2P v.1.8.44 - Configuration File
5+
* MiroTalk P2P v.1.8.45 - Configuration File
66
* ==============================================
77
*
88
* This file is the central configuration source.

app/src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies: {
4545
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
4646
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
4747
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
48-
* @version 1.8.44
48+
* @version 1.8.45
4949
*
5050
*/
5151

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mirotalk",
3-
"version": "1.8.44",
3+
"version": "1.8.45",
44
"description": "A free WebRTC browser-based video call",
55
"main": "server.js",
66
"scripts": {
@@ -53,7 +53,7 @@
5353
"compression": "^1.8.1",
5454
"cors": "^2.8.6",
5555
"crypto-js": "^4.2.0",
56-
"dompurify": "^3.4.4",
56+
"dompurify": "^3.4.5",
5757
"dotenv": "^17.4.2",
5858
"express": "^5.2.1",
5959
"express-openid-connect": "^3.0.0",

public/js/brand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ let brand = {
109109
},
110110
about: {
111111
imageUrl: '../images/mirotalk-logo.gif',
112-
title: 'WebRTC P2P v1.8.44',
112+
title: 'WebRTC P2P v1.8.45',
113113
html: `
114114
<button
115115
id="support-button"

public/js/client.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
1616
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
1717
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
18-
* @version 1.8.44
18+
* @version 1.8.45
1919
*
2020
*/
2121

@@ -9650,7 +9650,11 @@ function toggleVideoAudioTabs(disabled = false) {
96509650
* @param {object} mediaRecorder
96519651
*/
96529652
function handleMediaRecorder(mediaRecorder) {
9653-
mediaRecorder.start();
9653+
// Always pass a timeslice so the browser flushes encoded chunks into
9654+
// recordedBlobs periodically instead of buffering the entire recording
9655+
// in renderer memory. This makes long (>1h) recordings stable and
9656+
// avoids MediaRecorder auto-stops caused by memory pressure.
9657+
mediaRecorder.start(1000);
96549658
mediaRecorder.addEventListener('start', handleMediaRecorderStart);
96559659
mediaRecorder.addEventListener('dataavailable', handleMediaRecorderData);
96569660
mediaRecorder.addEventListener('stop', handleMediaRecorderStop);
@@ -15850,7 +15854,7 @@ function showAbout() {
1585015854
Swal.fire({
1585115855
background: swBg,
1585215856
position: 'center',
15853-
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.44',
15857+
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.45',
1585415858
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
1585515859
customClass: { image: 'img-about' },
1585615860
html: renderRoomTemplate('tpl-about-modal', {

0 commit comments

Comments
 (0)