RTCInboundRtpStreamStats: bytesReceived property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

The RTCInboundRtpStreamStats dictionary's bytesReceived property is an integer value which indicates the total number of bytes received so far from this synchronization source (SSRC).

Value

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:

js
avgDataRate = rtcInboundRtpStreamStats.bytesReceived / elapsedTime;

This value gets reset to zero if the sender's SSRC identifier changes for any reason.

Specifications

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

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
bytesReceived in 'inbound-rtp' stats

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support