Cache local candidates till local description is sent (#908)

This commit is contained in:
Raja Subramanian
2022-08-12 12:31:26 +05:30
committed by GitHub
parent 641f8d4519
commit 692c4d804f
4 changed files with 92 additions and 19 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ func (p *ParticipantImpl) SendRefreshToken(token string) error {
})
}
func (p *ParticipantImpl) sendIceCandidate(c *webrtc.ICECandidate, target livekit.SignalTarget) {
func (p *ParticipantImpl) sendICECandidate(c *webrtc.ICECandidate, target livekit.SignalTarget) {
p.params.Logger.Infow("sending ice candidate", "candidate", c.String(), "target", target)
trickle := ToProtoTrickle(c.ToJSON())
trickle.Target = target