Is there an API for the chrome://webrtc-internals/ variables in javascript?

后端 未结 2 2164
醉话见心
醉话见心 2020-12-13 21:27

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 gr

2条回答
  •  一整个雨季
    2020-12-13 22:27

    Afer researching a lot, this is how I managed to get the pc using twilio SDK.

    var rtcPeerConn =Twilio.Device.activeConnection();
    rtcPeerConn.options.mediaStreamFactory.protocol.pc.getStats(function callback(report) {
                    var rtcStatsReports = report.result();
                    for (var i=0; i -1) {
                            var logs = "";
                            for (var j=0; j

    //Calculate errorRate Packetlost / packetsent

    var rtcPeerConn =Twilio.Device.activeConnection();
    rtcPeerConn.options.mediaStreamFactory.protocol.pc.getStats(function callback(report) {
                    var error, pcksent;
                    var rtcStatsReports = report.result();
                    for (var i=0; i -1) {
                            var logs = "";
                            for (var j=0; j

提交回复
热议问题