Vinay
Vinay

Reputation: 1304

What is the role of IceConnectionState and IceGatheringState in webrtc

How to make use of IceConnectionState and IceGatheringState while sending the icecandiates to the peer in webrtc ?

Upvotes: 1

Views: 1644

Answers (1)

Dr. Alex Gouaillard
Dr. Alex Gouaillard

Reputation: 2128

  • ice gathering is the generation of the local candidates you will send to the remote peer either in the offer sdp (full ICE) or separately (trickle ICE).
  • ice gathering state is the state of the connection with the remote peer based on your trying of the remote candidates received through your chosen signaling method.

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

Related Questions