Detect client short ice connection (#1532)

This commit is contained in:
cnderrauber
2023-03-21 09:50:43 +08:00
committed by GitHub
parent e8c7506d60
commit 1a78dba3e0
3 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -793,7 +793,7 @@ func (p *ParticipantImpl) ICERestart(iceConfig *livekit.ICEConfig, reason liveki
t.(types.LocalMediaTrack).Restart()
}
p.TransportManager.ICERestart(iceConfig, reason == livekit.ReconnectReason_RR_PUBLISHER_FAILED || reason == livekit.ReconnectReason_RR_SUBSCRIBER_FAILED)
p.TransportManager.ICERestart(iceConfig, reason)
}
func (p *ParticipantImpl) OnICEConfigChanged(f func(participant types.LocalParticipant, iceConfig *livekit.ICEConfig)) {