RTCInboundRtpStreamStats.packetsDuplicated - Web APIs 编辑
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.
Syntax
var packetsDuplicated = rtcInboundRtpStreamStats.packetsDuplicated;
Value
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
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
Specification | Status | Comment |
---|---|---|
Identifiers for WebRTC's Statistics API The definition of 'RTCInboundRtpStreamStats.packetsDuplicated' in that specification. | Candidate Recommendation | Initial definition. |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论