此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

RTCDataChannelStats:bytesReceived 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

RTCDataChannelStats 字典的 bytesReceived 属性返回与之关联的 RTCDataChannel 上接收的有效载荷字节总数。

需要注意的是,该属性不会包括非有效载荷字节(例如用于成帧和在报头中使用的字节)。

表示与之关联的数据通道上接收的有效载荷字节总数的正整数值。

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcdatachannelstats-bytesreceived

浏览器兼容性

参见