-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
34 lines (24 loc) · 955 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "RTCInboundRtpStreamStats: bytesReceived property"
short-title: bytesReceived
slug: Web/API/RTCInboundRtpStreamStats/bytesReceived
page-type: web-api-instance-property
browser-compat: api.RTCStatsReport.type_inbound-rtp.bytesReceived
---
{{APIRef("WebRTC")}}
The {{domxref("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
{{Specifications}}
## Browser compatibility
{{Compat}}