[mirotalksfu] - improve config.js
هذا الالتزام موجود في:
@@ -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':
|
return '/usr/local/bin/ffmpeg'; // macOS
|
||||||
ffmpegPath = '/usr/local/bin/ffmpeg'; // macOS
|
case 'linux':
|
||||||
break;
|
return '/usr/bin/ffmpeg'; // Linux
|
||||||
case 'linux':
|
case 'win32':
|
||||||
ffmpegPath = '/usr/bin/ffmpeg'; // Linux
|
return 'C:\\ffmpeg\\bin\\ffmpeg.exe'; // Windows
|
||||||
break;
|
default:
|
||||||
case 'win32':
|
return '/usr/bin/ffmpeg'; // Centos or others...
|
||||||
ffmpegPath = 'C:\\ffmpeg\\bin\\ffmpeg.exe'; // Windows
|
}
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ffmpegPath = '/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: {
|
||||||
/*
|
/*
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم