MDN self-hosted library · e01.org

RTCPeerConnectionStats: type property

WebRTC

no runnable cells web-api-instance-property upstream source

WebRTC

The type property of the RTCPeerConnectionStats dictionary is a string with the value "peer-connection".

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 "peer-connection" indicates that the statistics available in the current step are those defined in RTCPeerConnectionStats.

Value

A string with the value "peer-connection".

Specifications

Browser compatibility