ICE config using protocol model (#1233)

* ICE config using protocol model

* use pointers consistently

* protocol pointer

* mage generate
This commit is contained in:
Raja Subramanian
2022-12-19 10:25:08 +05:30
committed by GitHub
parent 33902a9f2a
commit 241a7120f5
8 changed files with 64 additions and 87 deletions
+3 -3
View File
@@ -651,9 +651,9 @@ func (r *Room) SimulateScenario(participant types.LocalParticipant, simulateScen
case *livekit.SimulateScenario_SwitchCandidateProtocol:
r.Logger.Infow("simulating switch candidate protocol", "participant", participant.Identity())
participant.ICERestart(&types.IceConfig{
PreferSub: types.PreferCandidateType(scenario.SwitchCandidateProtocol),
PreferPub: types.PreferCandidateType(scenario.SwitchCandidateProtocol),
participant.ICERestart(&livekit.ICEConfig{
PreferenceSubscriber: livekit.ICECandidateType(scenario.SwitchCandidateProtocol),
PreferencePublisher: livekit.ICECandidateType(scenario.SwitchCandidateProtocol),
})
}
return nil