[mirotalksfu] - update dep and config
هذا الالتزام موجود في:
@@ -41,7 +41,7 @@ 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.4.13
|
||||
* @version 1.4.14
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -792,7 +792,9 @@ function startServer() {
|
||||
const portIncrement = i;
|
||||
|
||||
for (const listenInfo of webRtcServerOptions.listenInfos) {
|
||||
listenInfo.port += portIncrement;
|
||||
if (!listenInfo.portRange) {
|
||||
listenInfo.port += portIncrement;
|
||||
}
|
||||
}
|
||||
|
||||
log.info('Create a WebRtcServer', {
|
||||
|
||||
@@ -19,6 +19,8 @@ function getIPv4() {
|
||||
|
||||
const IPv4 = getIPv4();
|
||||
|
||||
const numWorkers = require('os').cpus().length;
|
||||
|
||||
module.exports = {
|
||||
server: {
|
||||
listen: {
|
||||
@@ -337,10 +339,8 @@ module.exports = {
|
||||
},
|
||||
mediasoup: {
|
||||
// Worker settings
|
||||
numWorkers: require('os').cpus().length,
|
||||
numWorkers: numWorkers,
|
||||
worker: {
|
||||
rtcMinPort: 40000,
|
||||
rtcMaxPort: 40100,
|
||||
logLevel: 'error',
|
||||
logTags: ['info', 'ice', 'dtls', 'rtp', 'srtp', 'rtcp', 'rtx', 'bwe', 'score', 'simulcast', 'svc', 'sctp'],
|
||||
},
|
||||
@@ -400,13 +400,15 @@ module.exports = {
|
||||
listenInfos: [
|
||||
{ protocol: 'udp', ip: '0.0.0.0', announcedAddress: IPv4, port: 44444 },
|
||||
{ protocol: 'tcp', ip: '0.0.0.0', announcedAddress: IPv4, port: 44444 },
|
||||
// { protocol: 'udp', ip: '0.0.0.0', announcedAddress: IPv4, portRange: { min: 44444, max: 44444 + numWorkers }},
|
||||
// { protocol: 'tcp', ip: '0.0.0.0', announcedAddress: IPv4, portRange: { min: 44444, max: 44444 + numWorkers }},
|
||||
],
|
||||
},
|
||||
// WebRtcTransportOptions
|
||||
webRtcTransport: {
|
||||
listenInfos: [
|
||||
{ protocol: 'udp', ip: '0.0.0.0', announcedAddress: IPv4 },
|
||||
{ protocol: 'tcp', ip: '0.0.0.0', announcedAddress: IPv4 },
|
||||
{ protocol: 'udp', ip: '0.0.0.0', announcedAddress: IPv4, portRange: { min: 40000, max: 40100 } },
|
||||
{ protocol: 'tcp', ip: '0.0.0.0', announcedAddress: IPv4, portRange: { min: 40000, max: 40100 } },
|
||||
],
|
||||
initialAvailableOutgoingBitrate: 1000000,
|
||||
minimumAvailableOutgoingBitrate: 600000,
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم