Use "port_range_start/end" instead of udp_port for ICE range

mediasoup is not compatible with the UDP port multiplexing that LiveKit
uses when the `udp_port` setting is enabled, so it won't work anyways
and it's better to bt consistent between both Pion and mediasoup
engines.

Also extend the port range to 100 ports, given that now the multiplexing
feature won't be in use. 100 seems like a big enough range for local
development.
This commit is contained in:
Juan Navarro 2024-07-08 18:20:47 +02:00
parent 0d4c3df493
commit 345dc5327d
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -104,7 +104,7 @@ services:
ports:
- 3478:3478/udp
- 7881:7881/tcp
- 7882-7892:7882-7892/udp
- 7900-7999:7900-7999/udp
entrypoint: /bin/sh /scripts/entrypoint.sh
command: --config /etc/livekit.yaml
volumes:

View File

@ -36,7 +36,8 @@ bind_addresses:
- ""
rtc:
tcp_port: 7881
udp_port: 7882-7892
port_range_start: 7900
port_range_end: 7999
redis:
address: redis:6379
username: ""