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> |