Refine transport fallback for client resuming (#1597)

* reset fallback after ice restart

* Configure ice for reconnect before send response
This commit is contained in:
cnderrauber
2023-04-10 15:12:05 +08:00
committed by GitHub
parent c56e37f3fe
commit c70a5c831f
6 changed files with 113 additions and 101 deletions
+2 -2
View File
@@ -774,7 +774,7 @@ func (p *ParticipantImpl) MigrateState() types.MigrateState {
}
// ICERestart restarts subscriber ICE connections
func (p *ParticipantImpl) ICERestart(iceConfig *livekit.ICEConfig, reason livekit.ReconnectReason) {
func (p *ParticipantImpl) ICERestart(iceConfig *livekit.ICEConfig) {
p.clearDisconnectTimer()
p.clearMigrationTimer()
@@ -782,7 +782,7 @@ func (p *ParticipantImpl) ICERestart(iceConfig *livekit.ICEConfig, reason liveki
t.(types.LocalMediaTrack).Restart()
}
p.TransportManager.ICERestart(iceConfig, reason)
p.TransportManager.ICERestart(iceConfig)
}
func (p *ParticipantImpl) OnICEConfigChanged(f func(participant types.LocalParticipant, iceConfig *livekit.ICEConfig)) {