[mirotalksfu] - improve config.js

هذا الالتزام موجود في:
Miroslav Pejic
2025-01-16 10:59:46 +01:00
الأصل 5598bf99c4
التزام b508de6124

عرض الملف

@@ -8,20 +8,17 @@ const os = require('os');
const platform = os.platform(); const platform = os.platform();
let ffmpegPath; function getFFmpegPath(platform) {
switch (platform) { switch (platform) {
case 'darwin': case 'darwin':
ffmpegPath = '/usr/local/bin/ffmpeg'; // macOS return '/usr/local/bin/ffmpeg'; // macOS
break;
case 'linux': case 'linux':
ffmpegPath = '/usr/bin/ffmpeg'; // Linux return '/usr/bin/ffmpeg'; // Linux
break;
case 'win32': case 'win32':
ffmpegPath = 'C:\\ffmpeg\\bin\\ffmpeg.exe'; // Windows return 'C:\\ffmpeg\\bin\\ffmpeg.exe'; // Windows
break;
default: default:
ffmpegPath = '/usr/bin/ffmpeg'; // Centos or others... return '/usr/bin/ffmpeg'; // Centos or others...
}
} }
// https://api.ipify.org // https://api.ipify.org
@@ -65,6 +62,8 @@ const rtcMaxPort = 40100;
const numWorkers = require('os').cpus().length; const numWorkers = require('os').cpus().length;
const ffmpegPath = getFFmpegPath(platform);
module.exports = { module.exports = {
console: { console: {
/* /*