Logging negotiation as we are seeing some errors with filtering candi… (#900)

This commit is contained in:
Raja Subramanian
2022-08-09 16:57:15 +05:30
committed by GitHub
parent 82439538e7
commit 4ec7e71b2d
3 changed files with 12 additions and 7 deletions
+2
View File
@@ -187,10 +187,12 @@ func (p *ParticipantImpl) sendIceCandidate(c *webrtc.ICECandidate, target liveki
if target == livekit.SignalTarget_SUBSCRIBER {
if p.iceConfig.PreferSubTcp && c.Protocol != webrtc.ICEProtocolTCP {
filterOut = true
p.subscriber.Logger().Infow("filtering out candidate", "candidate", c)
}
} else if target == livekit.SignalTarget_PUBLISHER {
if p.iceConfig.PreferPubTcp && c.Protocol != webrtc.ICEProtocolTCP {
filterOut = true
p.publisher.Logger().Infow("filtering out candidate", "candidate", c)
}
}
p.lock.RUnlock()