RTCInboundRtpStreamStats
dictionary's
bytesReceived
property is an integer value which indicates the total number of bytes received so far from this synchronization source (SSRC).
var bytesReceived = rtcInboundRtpStreamStats.bytesReceived;
An unsigned integer value indicating the total number of bytes received so far on this RTP stream, not including header and padding bytes. This value can be used to calculate an approximation of the average media data rate:
avgDataRate = rtcInboundRtpStreamStats.bytesReceived / elapsedTime;
This value gets reset to zero if the sender's SSRC identifier changes for any reason.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Identifiers for WebRTC's Statistics API
The definition of 'RTCInboundRtpStreamStats.bytesReceived' in that specification. |
候选推荐 | 初始定义。 |
No compatibility data found. Please contribute data for "api.RTCInboundRtpStreamStats.bytesReceived" (depth: 1) to the MDN 兼容性数据存储库 .
RTCInboundRtpStreamStats
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent