Skip to content

juice_set_local_description usage order clarification #281

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

You must be logged in to vote

The warning means both peers think they are the initiator of the connection. It can be recovered at the price of an added round-trip, but it indicates a more fundamental issue in the way signaling is done.

ICE is designed around an initiating agent and responding agent. libjuice handles it automatically: the initiator calls juice_get_local_description() to send its description to the responder, the responder first sets the initiator's description with juice_set_remote_description(), then calls juice_get_local_description() to send its description back to the initiator which sets it with juice_set_remote_description().

This ensures proper parameter negotiation and role selection. The colli…

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