firefox - 如何在 Firefox 中获取 webrtc 抖动缓冲区?
问题描述
我正在使用 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
}
}
}
解决方案
推荐阅读
- database - 历史表树
- react-native - 在 React Native 按钮中创建新的触摸效果
- excel-formula - 停止在excel中自动将一般更改为日期
- perforce - 如何从待处理的cherrypick CL 中获取源分支?
- sql - 使用 Oracle 'with' 与使用表的行为不同
- react-native - react-native 上的 Tipsi-stripe 本地化
- firebase - 如何让 Firestore 规则与服务帐户一起使用
- java - 如何在java中处理大型日志文件
- logback - wildfly10 和 slf4j 和 logback 不起作用
- python - 在 pandas 或 numpy 中处理负无穷数