From 09a7ff490a33936473dfd81e213fb8e4ce29ee3a Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 29 Dec 2024 14:28:29 +0100 Subject: [PATCH] [mirotalksfu] - improvements --- app/src/Server.js | 10 ++++++---- app/src/config.template.js | 4 ++-- package.json | 2 +- public/js/Room.js | 4 ++-- public/js/RoomClient.js | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index 5abedd72..b3471524 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -55,7 +55,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.65 + * @version 1.6.66 * */ @@ -595,6 +595,8 @@ function startServer() { return res.sendFile(views.login); } } + + return res.redirect('/'); }); // join room by id @@ -1254,9 +1256,9 @@ function startServer() { const worker = await mediasoup.createWorker({ logLevel: logLevel, logTags: logTags, - rtcMinPort: rtcMinPort, - rtcMaxPort: rtcMaxPort, - disableLiburing: disableLiburing, + rtcMinPort: Number(rtcMinPort), + rtcMaxPort: Number(rtcMaxPort), + disableLiburing: Boolean(disableLiburing), }); if (webRtcServerActive) { diff --git a/app/src/config.template.js b/app/src/config.template.js index a27d6367..37b9c772 100644 --- a/app/src/config.template.js +++ b/app/src/config.template.js @@ -29,8 +29,6 @@ function getIPv4() { */ const IPv4 = getIPv4(); // Replace with the appropriate IPv4 address for your environment. -const numWorkers = require('os').cpus().length; - /* Set the port range for WebRTC communication. This range is used for the dynamic allocation of UDP ports for media streams. - Each participant requires 2 ports: one for audio and one for video. @@ -43,6 +41,8 @@ const numWorkers = require('os').cpus().length; const rtcMinPort = 40000; const rtcMaxPort = 40100; +const numWorkers = require('os').cpus().length; + module.exports = { console: { /* diff --git a/package.json b/package.json index 19751ea3..70dec59b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.6.65", + "version": "1.6.66", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { diff --git a/public/js/Room.js b/public/js/Room.js index 2ca6864b..0fdebf66 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.65 + * @version 1.6.66 * */ @@ -4618,7 +4618,7 @@ function showAbout() { imageUrl: image.about, customClass: { image: 'img-about' }, position: 'center', - title: 'WebRTC SFU v1.6.65', + title: 'WebRTC SFU v1.6.66', html: `
diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index d1de965f..b4da60aa 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -9,7 +9,7 @@ * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.6.65 + * @version 1.6.66 * */