RTCInboundRtpStreamStats.fecPacketsReceived - Web APIs 编辑

The fecPacketsReceived property of the RTCInboundRtpStreamStats dictionary indicates how many Forward Error Correction (FEC) packets have been received by this RTP receiver from the remote peer. An FEC packet provides parity information which can be used to attempt to reconstruct RTP data packets which have been corrupted in transit.

Syntax

var fecPacketsReceived = rtcInboundRtpStreamStats.fecPacketsReceived;

Value

An unsigned integer value which indicates the total number of FEC packets which have been recieved from the remote peer during this RTP session. Forward Error Correction uses an exclusive-or method to perform parity checks on the received data.

By using the FEC parity information to attempt to reconstruct damaged packets, it is possible to avoid the need to retransmit damaged packets, which in turn helps to reduce lag, or the need to skip damaged frames entirely.

Note: This counter may also be incremented when FEC packets arrive in-band along with media content; this can happen with Opus, for example.

Usage notes

It's possible that a subset of the FEC packets which have been received were discarded instead of being used. This can happen if the packets covered by the FEC packets have already been received successfully or have already been reconstructed using a previously-received FEC packet. This may also happen if the FEC packet arrives outside the window of time in which the client will attempt to use it.

If you wish to know how many of the received packets were discarded, you can examine the value of fecPacketsDiscarded.

Specifications

SpecificationStatusComment
Identifiers for WebRTC's Statistics API
The definition of 'RTCInboundRtpStreamStats.fecPacketsReceived' in that specification.
Candidate RecommendationInitial definition.

See also

  • RFC 5109 (RTP Payload Format for Generic Forward Error Correction)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:47 次

字数:2975

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文