RTCIceCandidatePairStats: id property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

The id property of the RTCIceCandidatePairStats 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 RTCIceCandidatePairStats 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