RTCIceCandidatePairStats.state - Web APIs 编辑

The state property in an RTCIceCandidatePairStats object indicates the state of the check list of which the candidate pair is a member.

Syntax

state = rtcIceCandidatePairStats.state;

Value

A DOMString whose value is one of those found in the RTCStatsIceCandidatePairState enumerated type.

ICE check lists

During ICE negotiation, the ICE layer builds up a check list, which is a list of potential pairings of ICE candidates. Each pair has a state, whose value is represented by RTCStatsIceCandidatePairState.

A diagram showing how ICE candidate pairs change state as the check list is analyed

When a candidate pair is added to the check list, it begins in the frozen state. As soon as there are no checks ongoing which block the pair from being analyzed, it is unfrozen and moves into the waiting state. This may happen immediately upon being added to the check list.

Each time a candidate pair is done being checked, the next-highest priority candidate pair remaining on the check list moves from the waiting state to the in-progress state, and its check begins. If the check fails for any reason, the pair moves into its final state, failed. If the check succeeds, the pair ends up in the succeeded state.

The ICE check list state for any given pair of ICE candidates can be found in the corresponding the state property.

Specifications

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

Browser compatibility

BCD tables only load in the browser

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

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

发布评论

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

词条统计

浏览:50 次

字数:3022

最后编辑:6 年前

编辑次数:0 次

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