Access to info from chrome://webrtc-internals

898 views
Skip to first unread message

andy424

unread,
Oct 9, 2013, 1:28:10 PM10/9/13
to discuss...@googlegroups.com
Are some of the dynamic statistics accessible at the javascript layer in some round about fashion rather than just from the chrome://webrtc-internals URL? For instance, if available send or receive bandwidth is deemed too low, it is better to not offer video and just make an audio call. An application can decide if it had access to more information that is currently only available in the webrtc-internals flag.

timestampWed Oct 09 2013 12:24:02 GMT-0500 (CDT)
ssrc1766417153
googTrackIdWdRroNgEiP6l6RfGfjYIvZ8ukBiMkjjsrTvwv0
transportIdChannel-video-1
bytesReceived1800743
packetsReceived3357
packetsLost11
googFirsSent0
googNacksSent-1
googFrameWidthReceived640
googFrameHeightReceived480
googFrameRateReceived27
googFrameRateDecoded30
googFrameRateOutput

timestampWed Oct 09 2013 12:25:38 GMT-0500 (CDT)
googAvailableSendBandwidth128000
googAvailableReceiveBandwidth114638
googTargetEncBitrate128000
googActualEncBitrate136750
googRetransmitBitrate0
googTransmitBitrate136750
googBucketDelay

andy424

unread,
Oct 9, 2013, 1:33:57 PM10/9/13
to discuss...@googlegroups.com

view-source:chrome://webrtc-internals/ has these relevant lines

<script src="chrome://resources/js/util.js"></script>
<script src="chrome://webrtc-internals/webrtc_internals.js"></script>


My question is whether these js files accessible and where do we get the source code for these js files?

Thanks in advance

Philipp Hancke

unread,
Oct 9, 2013, 1:35:28 PM10/9/13
to discuss...@googlegroups.com
That information is available through the getStats API. http://code.google.com/p/webrtc/source/browse/trunk/samples/js/demos/html/constraints-and-stats.html shows one way to use it.

I recently commited something which uses this to calculate packet loss per interval:
More generally, you query results[i].names() and do a results[i].stat(name) for each name -- see dumpstats from the sample page.
Reply all
Reply to author
Forward
0 new messages