• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.