mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 00:29:52 +00:00
Enable TCP/TURN fallback by default (#1033)
This commit is contained in:
@@ -62,8 +62,8 @@ rtc:
|
||||
# # in the unlikely event of highly congested networks, SFU may choose to pause some tracks
|
||||
# # in order to allow others to stream smoothly. You can disable this behavior here
|
||||
# allow_pause: true
|
||||
# # allows automatic connection fallback to TCP and TURN/TLS (if configured) when UDP has been unstable
|
||||
# allow_tcp_fallback: false
|
||||
# # allows automatic connection fallback to TCP and TURN/TLS (if configured) when UDP has been unstable, default true
|
||||
# allow_tcp_fallback: true
|
||||
# # number of packets to buffer in the SFU, defaults to 500
|
||||
# packet_buffer_size: 500
|
||||
# # minimum amount of time between pli/fir rtcp packets being sent to an individual
|
||||
|
||||
@@ -271,7 +271,8 @@ func (r *RoomManager) StartSession(
|
||||
sid := livekit.ParticipantID(utils.NewGuid(utils.ParticipantPrefix))
|
||||
pLogger := rtc.LoggerWithParticipant(room.Logger, pi.Identity, sid, false)
|
||||
protoRoom := room.ToProto()
|
||||
allowFallback := false
|
||||
// default allow forceTCP
|
||||
allowFallback := true
|
||||
if r.config.RTC.AllowTCPFallback != nil {
|
||||
allowFallback = *r.config.RTC.AllowTCPFallback
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user