我正在使用webrtc peerconnection.getstats获取各种参数来检查Firefox中的通话质量。我想获取抖动缓冲区参数,但该参数未在getstats响应中公开(但在chrome中可用)。 缓冲区也显示在about:webrtc页面中:
是否有办法在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
}
}
}