From cfe014a77ac596fd68071700e4d99120ba7ade93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Tue, 27 Feb 2024 17:10:59 +0100 Subject: [PATCH] Use ListenInfo in config.example.js --- server/config.example.js | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/server/config.example.js b/server/config.example.js index b0062b539..95a0d29fe 100644 --- a/server/config.example.js +++ b/server/config.example.js @@ -124,16 +124,16 @@ module.exports = listenInfos : [ { - protocol : 'udp', - ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', - announcedIp : process.env.MEDIASOUP_ANNOUNCED_IP, - port : 44444 + protocol : 'udp', + ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', + announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, + port : 44444 }, { - protocol : 'tcp', - ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', - announcedIp : process.env.MEDIASOUP_ANNOUNCED_IP, - port : 44444 + protocol : 'tcp', + ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', + announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, + port : 44444 } ] }, @@ -142,13 +142,19 @@ module.exports = // See https://mediasoup.org/documentation/v3/mediasoup/api/#WebRtcTransportOptions webRtcTransportOptions : { - // listenIps is not needed since webRtcServer is used. + // listenInfos is not needed since webRtcServer is used. // However passing MEDIASOUP_USE_WEBRTC_SERVER=false will change it. - listenIps : + listenInfos : [ { - ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', - announcedIp : process.env.MEDIASOUP_ANNOUNCED_IP + protocol : 'udp', + ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', + announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP + }, + { + protocol : 'tcp', + ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', + announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP } ], initialAvailableOutgoingBitrate : 1000000, @@ -162,10 +168,11 @@ module.exports = // See https://mediasoup.org/documentation/v3/mediasoup/api/#PlainTransportOptions plainTransportOptions : { - listenIp : + listenInfo : { - ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', - announcedIp : process.env.MEDIASOUP_ANNOUNCED_IP + protocol : 'udp', + ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', + announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP }, maxSctpMessageSize : 262144 }