This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2022.
The totalSamplesReceived property of the RTCInboundRtpStreamStats dictionary indicates the total number of samples received on this stream, including concealedSamples.
Note: The value is undefined for video streams.
An positive integer.
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcinboundrtpstreamstats-totalsamplesreceived> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
totalSamplesReceived |
86 | 86 | 104 | 72 | 14.1 | 86 | 104 | 61 | 14.5 | 14.0 | 86 | 14.5 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/totalSamplesReceived