简体   繁体   English

如何获取 WebRTC 实验统计数据

[英]How to get WebRTC experimentals stats

I am trying to get some statistics about a WebRTC live stream.我正在尝试获取有关 WebRTC 实时流的一些统计信息。

On chrome://webrtc-internals I am able to see some statistics marked experimental (with a * ), that I can not find using getStats method.chrome://webrtc-internals我可以看到一些标记为实验性(带有* )的统计数据,但使用getStats方法找不到。 That includes freezeCount , pauseCount , totalFreezesDuration , totalPausesDuration , totalFramesDuration , sumOfSquaredFramesDuration这包括freezeCountpauseCounttotalFreezesDurationtotalPausesDurationtotalFramesDurationsumOfSquaredFramesDuration

Do you know how to get those statistics using JavaScript ?您知道如何使用 JavaScript 获取这些统计信息吗?


Note: I found this W3 draft of a potential specification that describe those statistics, but cannot find any example on the web.注意:我找到了描述这些统计数据的潜在规范的 W3 草案,但在网上找不到任何示例。

Note: I am using Google Chrome注意:我使用的是谷歌浏览器

Note: According to this commit , those metrics where introduce in February 2019 so quite long ago...注意:根据此提交,很久以前在 2019 年 2 月引入的那些指标......

These values are not available to Javascript/getStats because they're not standardized.这些值对 Javascript/getStats 不可用,因为它们没有标准化。 If you consider them useful, file an issue on https://github.com/w3c/webrtc-provisional-stats and provide a compelling use-case.如果您认为它们有用,请在https://github.com/w3c/webrtc-provisional-stats上提出问题并提供引人注目的用例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM