[mirotalksfu] - ops

هذا الالتزام موجود في:
Miroslav Pejic
2024-03-10 10:26:46 +01:00
الأصل fc35201fec
التزام e130f8a420
3 ملفات معدلة مع 4 إضافات و7 حذوفات

عرض الملف

@@ -761,13 +761,13 @@ function startServer() {
if (config.mediasoup.webRtcServerActive) {
//
log.debug('Create a WebRtcServer', { worker_pid: worker.pid });
log.info('Create a WebRtcServer', { worker_pid: worker.pid });
const webRtcServerOptions = clone(config.mediasoup.webRtcServerOptions);
const portIncrement = i;
for (const listenInfo of webRtcServerOptions.listenInfos) {
listenInfo.port += portIncrement;
}
//log.debug('WebRtcServer options', { webRtcServerOptions: webRtcServerOptions });
//log.info('WebRtcServer options', { webRtcServerOptions: webRtcServerOptions });
const webRtcServer = await worker.createWebRtcServer(webRtcServerOptions);
worker.appData.webRtcServer = webRtcServer;
}

عرض الملف

@@ -299,7 +299,7 @@ module.exports = {
},
mediasoup: {
// Worker settings
numWorkers: process.env.NUM_CPUS || require('os').cpus().length,
numWorkers: require('os').cpus().length,
worker: {
rtcMinPort: 40000,
rtcMaxPort: 40100,
@@ -364,7 +364,7 @@ module.exports = {
{ protocol: 'tcp', ip: '0.0.0.0', announcedAddress: getLocalIp(), port: 44444 },
],
},
// WebRtcTransport
// WebRtcTransportOptions
webRtcTransport: {
listenInfos: [
{ protocol: 'udp', ip: '0.0.0.0', announcedAddress: getLocalIp() },