-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pc.AddIceCandidate complains when candidate.Candidate is the empty string #1212
Comments
Is there any workaround for now? |
Not right now, but this would only take ~hour to fix if you are interested! At this line https://github.com/pion/webrtc/blob/master/peerconnection.go#L1364
Then you just need to add a test that asserts it doesn't return an error! Happy to answer any questions/explain things :) |
Thanks for your quick answer. So just from curiosity: So how the library "knows" that there is end-of-candidates? |
Pion doesn't care about You can configure the amount of time you are willing to wait with the SettingEngine! |
https://github.com/pion/ice/blob/master/agent_config.go#L23-L33 these are the defaults |
Thanks @Sean-Der ! |
That's still not clear to me, Sean. If Pion doesn't care about end of candidates, how does it know when to switch to failed? Intuitively, I'd expect it to remain in disconnected state until it's exhausted all the candidates. |
Right now it just does disconnected+failed time. After 30 seconds of sending connectivity checks it goes to failed. This is a really easy change we could make! In general |
I see, thanks. I've summarised this in pion/ice#271. |
Allow a user to pass a nil Candidate. We perform no actions off of this currently. Until browsers implement end-of-candidates consistently it isn't something we can do. Relates to pion/webrtc#1212 and #271
Section 4.8.2 of the spec has the following to say:
However, if I pass such a candidate to
pc.AddIceCandidate
, it complains with the errorattribute not long enough to be ICE candidate (0)
.The text was updated successfully, but these errors were encountered: