如何在Firefox中获取WebRTC抖动缓冲区?

时间:2018-11-16 07:57:08

标签: firefox webrtc rtcpeerconnection

我正在使用webrtc peerconnection.getstats获取各种参数来检查Firefox中的通话质量。我想获取抖动缓冲区参数,但该参数未在getstats响应中公开(但在chrome中可用)。 缓冲区也显示在about:webrtc页面中:

Firefox stats

是否有办法在firefox中获得此抖动缓冲区?

编辑: 添加代码

var pc = rtcPeerConnection;(for representation coding done elsewhere)
pc.getStats().then( function (stats) {
    for (var [key, res] of stats) {
        if( res.type == "outboundrtp" || res.type == "inboundrtp" && !res.isRemote ) {
            //expecting jitte-buffer here 
            //other params like packetslost, jitter are available here
        }
    }
}

0 个答案:

没有答案