I want to get access to some of the logged variables in the chrome://webrtc-internals/
, but I didn't find anything on google - not even a description of the graphs I can see.
I am particularly interested in packetsLost
, googCurrentDelayMs
and googNacksSent
.
why I want to access the webrtc-internals
I am writing a google chrome application that shares a video stream (p2p). It uses peerjs to share the stream with other peers, which in turn uses googles webrtc implementation underneath. To make my application perfect I would need to know when a big delay occurs. Since I can see the delay logged in chrome://webrtc-internals/
I was wondering if I could access it through javascript.
My guess is there is no API for the chrome://webrtc-internals/
-menu.
I found it - had to crawl through a couple of google community-threads(thread 1, thread2):
Connections is an object:
Take a look at any of those connection objects:
Afer researching a lot, this is how I managed to get the pc using twilio SDK.
//Calculate errorRate Packetlost / packetsent