The things are simple. When you create an offer and set it to local peer connection ice gathering mechanism is activated and onicecandidate event occurs when candidate is gathered. The last candidate is a NULL in both JS and C++ APIs. This means that all local candidates are gathered. When this happens you have get local SDP from peerconnection object. This object will consists of SDP plus all the candidates which are gathered during the candidate gathering process. You can use this logic to skip sending candidates and when last NULL candidate is gathered to request SDP from peer connection and send it over signalling mechanism. This will slow down the process but it will ease handling async code and race conditions.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/c54af560-3c19-4a72-8170-e6b7a41f7137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.