Skip to content

Does candidate order matter? #280

Closed Answered by paullouisageneau
tmathews asked this question in Q&A
Discussion options

You must be logged in to vote

Candidate order doesn't matter. ICE candidates have priorities to decide which candidate pair is the best one, and libjuice uses the suggested formula to calculate priorities.

It is better to trickle candidates as it allows connectivity checks to start immediately for gathered candidates which can reduce the connection time. If candidates are sent all at once, a STUN or TURN server failure means connection will be delayed until that server times out.

The gathering done event is not very useful, it only helps shorten the timeout to fail earlier if no other candidates are expected. You can safely ignore it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tmathews
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants