diff --git a/config-sample.yaml b/config-sample.yaml index faca99096..a75b5736d 100644 --- a/config-sample.yaml +++ b/config-sample.yaml @@ -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 diff --git a/pkg/service/roommanager.go b/pkg/service/roommanager.go index 386c9cffa..754eb3b57 100644 --- a/pkg/service/roommanager.go +++ b/pkg/service/roommanager.go @@ -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 }