ICE | Pair Candidates

Once the Candidates have been obtained (local and remote) and the SDP descriptions have been set, the ICE caller client can start to process all the pair candidates to find those that can exchange data. To start this process, call the method ProcessCandidates.

 

The method ProcessCandidates evaluate all pair candidates sending a STUN binding packet, if the STUN binding packet is received as an answer from the other peer, means the connection is possible between those 2 peers, so the pair is nominated.

 

When the pairing is successful, the event OnICECandidatePairNominated is triggered asynchronously. If the pairing has an error or cannot connect after a timeout, the event OnICECandidatePairFailed is triggered.