xref: /aosp_15_r20/external/webrtc/stats/g3doc/stats.md (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1<?% config.freshness.reviewed = '2022-10-01' %?>
2<?% config.freshness.owner = 'hta' %?>
3
4# getStats in WebRTC
5
6The WebRTC getStats API is specified in
7  https://w3c.github.io/webrtc-stats/
8and allows querying information about the current state of a RTCPeerConnection
9API and some of its member objects.
10
11## Adding new statistics to Chrome
12
13When adding a new standardized `RTCStatsMember` it is necessary to add
14it to the Chrome allowlist
15  chrome/test/data/webrtc/peerconnection_getstats.js
16before landing the WebRTC change. This mechanism prevents the accidential
17addition and exposure of non-standard attributes and is not required for
18`RTCNonStandardStatsMember` which is not exposed to the web API.