Skip to content

Commit

Permalink
[mirotalksfu] - improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Dec 29, 2024
1 parent f6c3725 commit 09a7ff4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions app/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
*/

Expand Down Expand Up @@ -595,6 +595,8 @@ function startServer() {
return res.sendFile(views.login);
}
}

return res.redirect('/');
});

// join room by id
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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: {
/*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
*/

Expand Down Expand Up @@ -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: `
<br />
<div id="about">
Expand Down
2 changes: 1 addition & 1 deletion public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
*/

Expand Down

0 comments on commit 09a7ff4

Please sign in to comment.