Thanks to visit codestin.com Credit goes to webrtc.googlesource.com
The WebRTC getStats API is specified in https://w3c.github.io/webrtc-stats/ and allows querying information about the current state of a RTCPeerConnection API and some of its member objects.