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