packetsDuplicated 特性为 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 特性。

句法

var packetsDuplicated = rtcInboundRtpStreamStats.packetsDuplicated;
					

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

用法注意事项

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 .

规范

规范 状态 注释
Identifiers for WebRTC's Statistics API
The definition of 'RTCInboundRtpStreamStats.packetsDuplicated' in that specification.
候选推荐 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.RTCInboundRtpStreamStats.packetsDuplicated" (depth: 1) to the MDN 兼容性数据存储库 .

元数据

  • 最后修改: