files/en-us/web/api/rtcicecandidatepairstats/state/index.md
{{APIRef("WebRTC")}}
The state property of the {{domxref("RTCIceCandidatePairStats")}} dictionary indicates the state of the checklist of which the candidate pair is a member.
A string whose value is one of the following:
failed
frozen
waiting state.in-progress
succeeded
waiting
waiting state.During ICE negotiation, the ICE layer builds up a checklist, which is a list of potential pairings of ICE candidates. Each pair has a state, represented by a string literal.
When a candidate pair is added to the checklist, it begins in the frozen state.
As soon as there are no checks ongoing that block the pair from being analyzed, it is unfrozen and moves into the waiting state.
This may happen immediately upon being added to the checklist.
Each time a candidate pair is checked, the next-highest priority candidate pair remaining on the checklist moves from the waiting state to the in-progress state, and its check begins.
If the check fails for any reason, the pair moves into its final state, failed.
If the check succeeds, the pair ends up in the succeeded state.
The ICE checklist state for any given pair of ICE candidates can be found in the corresponding state property.
{{Specifications}}
{{Compat}}