RTCIceCandidatePairStats: type 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 type property of the RTCIceCandidatePairStats dictionary is a string with the value "candidate-pair".

Different statistics are obtained by iterating the RTCStatsReport object returned by a call to RTCPeerConnection.getStats(). The type indicates the set of statistics available through the object in a particular iteration step. A value of "candidate-pair" indicates that the statistics available in the current step are those defined in RTCIceCandidatePairStats.

Value

A string with the value "candidate-pair".

Specifications

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

Browser compatibility

BCD tables only load in the browser