WebRTC Metrics
A comprehensive overview of WebRTC statistics, derived indicators, and observable signals, to better understand call quality, connectivity, and user experience in rtcStats
Back
transporttransportICEconnectivity
selectedCandidatePairChanges
Number of times the selected candidate pair has changed for this transport.
Description
Unsigned long
The number of times the selected candidate pair for this transport has changed. An increase indicates ICE has switched to a different network path, which may happen due to ICE restarts, network transitions, or the discovery of a better candidate pair.
See also
- transport->selectedCandidatePairId
- candidate-pair->currentRoundTripTime(ms)
- WebRTC Statistics Specification

Notes
- Frequent changes can indicate network instability - the ICE agent keeps finding new paths because the current one becomes unreliable
- In mobile scenarios, changes often correlate with WiFi-to-cellular handovers