Add option to enable skip tcp ice if tcp rtt is high (#1484)
* Add option to switch tcp ice only if tcp works well * solve comment * rename and remove config change
This commit is contained in:
@@ -73,6 +73,7 @@ type ParticipantParams struct {
|
||||
Migration bool
|
||||
AdaptiveStream bool
|
||||
AllowTCPFallback bool
|
||||
TCPFallbackRTTThreshold int
|
||||
TURNSEnabled bool
|
||||
GetParticipantInfo func(pID livekit.ParticipantID) *livekit.ParticipantInfo
|
||||
ReconnectOnPublicationError bool
|
||||
@@ -981,6 +982,7 @@ func (p *ParticipantImpl) setupTransportManager() error {
|
||||
ClientInfo: p.params.ClientInfo,
|
||||
Migration: p.params.Migration,
|
||||
AllowTCPFallback: p.params.AllowTCPFallback,
|
||||
TCPFallbackRTTThreshold: p.params.TCPFallbackRTTThreshold,
|
||||
TURNSEnabled: p.params.TURNSEnabled,
|
||||
Logger: p.params.Logger,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user