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

View in English Always switch to English

RTCDataChannelStats:bytesSent 属性

Limited availability

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

RTCDataChannelStats 字典的 bytesSent 属性返回在关联的 RTCDataChannel 上发送的总的有效负载字节数。

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

表示在关联的数据通道上发送的总的有效负载字节数的正整数值。

规范

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

浏览器兼容性

参见