我用JavaScript做了一个项目,使用了新的WebRTC RtcPeerConnection。我想知道连接使用了多少带宽。我看到有一个WebRTC统计API,但我不知道如何只获取一些以mbytes或mbits为单位的数字。有人能指点我一下吗?
源代码: https://github.com/webrtc/samples/tree/gh-pages/src/content/peerconnection/pc1 示例: https://webrtc.github.io/samples/src/content/peerconnection/pc1/
源代码: https://github.com/webrtc/samples/tree/gh-pages/src/content/peerconnection/pc1 示例: https://webrtc.github.io/samples/src/content/peerconnection/pc1/