RTCIceCandidateStats: id property

The id property of the RTCIceCandidateStats dictionary is a string that uniquely identifies the object for which this object provides statistics.

Using the id, you can correlate this statistics object with others, in order to monitor statistics over time for a given WebRTC object, such as an RTCPeerConnection, or an RTCDataChannel.

Value

A string that uniquely identifies the object for which this RTCIceCandidateStats object provides statistics.

The format of the ID string is not defined by the specification, so you cannot reliably make any assumptions about the contents of the string, or assume that the format of the string will remain unchanged for a given object type.

Specifications

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcstats-id

Browser compatibility

BCD tables only load in the browser