single port mode connectivity improvements, ICE v2.1.6

This commit is contained in:
David Zhao
2021-04-25 14:13:35 -07:00
parent 342adee606
commit 84ac0a718d
8 changed files with 27 additions and 13 deletions
+4 -2
View File
@@ -547,10 +547,12 @@ func (p *ParticipantImpl) sendIceCandidate(c *webrtc.ICECandidate, target liveki
ci := c.ToJSON()
// write candidate
//logger.Debugw("sending ice candidates")
logger.Debugw("sending ice candidates",
"participant", p.Identity(),
"candidate", c.String())
trickle := ToProtoTrickle(ci)
trickle.Target = target
p.writeMessage(&livekit.SignalResponse{
_ = p.writeMessage(&livekit.SignalResponse{
Message: &livekit.SignalResponse_Trickle{
Trickle: trickle,
},