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:
cnderrauber
2023-03-01 16:45:39 +08:00
committed by GitHub
parent a35eecd03d
commit 4277699600
2 changed files with 16 additions and 3 deletions
+2
View File
@@ -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,
})