W3cubDocs

/Web APIs

RTCInboundRtpStreamStats: packetsDuplicated property

The packetsDuplicated property of the RTCInboundRtpStreamStats dictionary indicates the total number of packets discarded because they were duplicates of previously-received packets.

These packets are not counted by the packetsDiscarded property.

Value

An integer value which specifies how many duplicate packets have been received by the local end of this RTP stream so far. These duplicate packets are not included in the packetsDiscarded property.

Usage notes

Duplicate packets are detected when a packet has the same RTP sequence number as another packet that has previously been processed. Each time a packet is repeated, the value of packetsDuplicated is incremented, even if the same packet is received more than twice.

You can get a more accurate tally of how many packets have been lost on the stream by adding packetsDuplicated to packetsLost. The resulting value will be positive, although it will not match the count as computed in RFC 3660.

Specifications

No specification found

No specification data found for api.RTCInboundRtpStreamStats.packetsDuplicated.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats/packetsDuplicated