Enable TCP/TURN fallback by default (#1033)

This commit is contained in:
David Zhao
2022-09-22 23:58:07 -07:00
committed by GitHub
parent b97d59b8db
commit 5e1912e44c
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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
}