--
---
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/ab8beaf2-3763-4c8d-8244-e42f20f0ec3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello
The way I do it is to monitor the ICE status changes. If the state changes to disconnected on the initiator side (the party that initially sent the SDP offer), I will try to restart ICE by calling RTCPeerConnection.offer(for: constraints, completionHandler: ...).
Constraints will include, alongside the default mandatory constraints for my setup, the following:
constraints["IceRestart"] = "true"
This will then generate a new SDP offer and appropriate ICE candidates that can be dispatched to the other side which will, in turn, generate an SDP answer with new ICE candidates.
Not sure if it's the best way to do it, but it works for me.
Alin
This is what I am doing also and it works. As you stated, it is hard to find documentation for how to do it, and even less for why it is needed and why doing it actually creates a connection when it failed the first time. My question: why does ice fail and on retry it works using the exact same everything.
--
---
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/aeb7227b-e623-4d4f-a2d2-bd424ed5ce54%40googlegroups.com.