W3cubDocs

/Web APIs

RTCPeerConnectionStats: type property

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

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
type 80 80 113 No 67 13.1 80 80 113 57 13.4 13.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionStats/type