Reputation: 1304
How to make use of IceConnectionState and IceGatheringState while sending the icecandiates to the peer in webrtc ?
Upvotes: 1
Views: 1644
Reputation: 2128
The ice gathering state is not so important, as the application logic does not care usually about those (the application might monitor the candidates and know if the gathering is done when a null candidate surfaces), the ice connection states are VERY important to know if a connection was established and your application should focus on that. The peer connection state can be stable, and all the handshake done, without media flowing if the ICE connection state is failed.
Upvotes: 3