此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

RTCTransportStats:iceState 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

RTCTransportStats 字典的 iceState 属性是表示底层 RTCIceTransport 的当前 ICE 状态的字符串。

该属性值与对应的 RTCIceTransport.state 属性相同。

字符串,取值可以是以下值之一:newcheckingconnectedcompleteddisconnectedfailedclosed

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtctransportstats-icestate

浏览器兼容性