Add FastPublish in JoinResponse (#2964)

Set FastPublish in JoinResponse for participant can publish
and no ice fallback setting.
This commit is contained in:
cnderrauber
2024-08-28 12:00:28 +08:00
committed by GitHub
parent bde702d9c9
commit 16896e4d66
7 changed files with 151 additions and 3 deletions
+9
View File
@@ -433,6 +433,15 @@ func (t *TransportManager) SetICEConfig(iceConfig *livekit.ICEConfig) {
}
}
func (t *TransportManager) GetICEConfig() *livekit.ICEConfig {
t.lock.RLock()
defer t.lock.RUnlock()
if t.iceConfig == nil {
return nil
}
return proto.Clone(t.iceConfig).(*livekit.ICEConfig)
}
func (t *TransportManager) resetTransportConfigureLocked(reconfigured bool) {
t.failureCount = 0
t.isTransportReconfigured = reconfigured