The RTCIceCandidatePairStats property localCandidateId is a string that uniquely identifies the local ICE candidate which was analyzed to generate the RTCIceCandidateStats used to compute the statistics for this pair of candidates.


localCandidateId = rtcIceCandidatePairStats.localCandidateId;


A DOMString giving a unique identifier for the local RTCIceCandidate for the connection described by this RTCIceCandidatePairStats object.

This candidate is the source of one of the two RTCIceCandidateStats objects that were used to compute the contents of this RTCIceCandidatePairStats object.


Specification Status Comment
Identifiers for WebRTC's Statistics API
The definition of 'RTCIceCandidatePairStats.localCandidateId' in that specification.
Candidate Recommendation Initial specification.

Browser compatibility

BCD tables only load in the browser