Back to Content

RTCInboundRtpStreamStats: concealedSamples property

files/en-us/web/api/rtcinboundrtpstreamstats/concealedsamples/index.md

latest1018 B
Original Source

{{APIRef("WebRTC")}}

The concealedSamples property of the {{domxref("RTCInboundRtpStreamStats")}} dictionary indicates the total number of concealed samples for the received audio track over the lifetime of this stats object.

A concealed sample is a sample that was lost or arrived too late to be played out, and therefore had to be replaced with a locally generated synthesized sample. Note that lost samples are reported in {{domxref("RTCInboundRtpStreamStats.packetsLost", "packetsLost")}}, while late packets are reported in {{domxref("RTCInboundRtpStreamStats.fecPacketsDiscarded", "fecPacketsDiscarded")}}.

[!NOTE] The value is undefined for video streams.

Value

A positive integer.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("RTCInboundRtpStreamStats.silentConcealedSamples")}}
  • {{domxref("RTCInboundRtpStreamStats.concealmentEvents")}}
  • Packet loss concealment on Wikipedia