ice-protocol

What are ICE Candidates and how do the peer connection choose between them?

南楼画角 提交于 2019-12-17 22:04:39
问题 I newly wrote a simple chat application, but I didn't really understand the background of ICE Candidates. When the peer create a connection they get ICE Candidates and they exchange them and set them finally to the peerconnection. So my question is, where do the ICE Candidates come from and how are they used and are they all really used ? I have noticed that my colleague got less candidates when he executes the application on his machine, what could be the reason for different amount of

What are ICE Candidates and how do the peer connection choose between them?

痞子三分冷 提交于 2019-11-28 15:47:19
I newly wrote a simple chat application, but I didn't really understand the background of ICE Candidates. When the peer create a connection they get ICE Candidates and they exchange them and set them finally to the peerconnection. So my question is, where do the ICE Candidates come from and how are they used and are they all really used ? I have noticed that my colleague got less candidates when he executes the application on his machine, what could be the reason for different amount of Candidates ? the answer from @Ichigo is correct, but it is a litte bit bigger. Every ICE contains 'a node'