过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

obsolete RTCIceCandidatePairStats property writable reports whether or not the connection described by the candidate pair is writable.

句法

isWritable = rtcIceCandidatePairStats.writable;
					

A Boolean value which is true if the connection described by this candidate pair has received acknowledgement of receipt (ACK) for at least one ICE request and that STUN consent hasn't expired.

注意: This property was removed from the specification in early 2017 because you can determine whether or not an incoming ICE request is available to read by checking to see if responsesReceived is greater than 0 and that the time specified by consentExpiredTimestamp has not passed:

if (icpStats.responsesReceived > 0
    && icpStats.consentExpiredTimestamp < performance.now()) {
  /* at least one ICE response has been received */
}
					

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
writable 非标 Chrome Yes
Yes
Chrome does not currently use the specification's algorithm to determine the value of writable ; it may not match the behavior of other browsers.
Edge ≤79
≤79
Edge does not currently use the specification's algorithm to determine the value of writable ; it may not match the behavior of other browsers.
Firefox 56 IE No Opera ? Safari ? WebView Android Yes Chrome Android Yes
Yes
Chrome does not currently use the specification's algorithm to determine the value of writable ; it may not match the behavior of other browsers.
Firefox Android 56 Opera Android ? Safari iOS ? Samsung Internet Android Yes
Yes
Samsung Internet does not currently use the specification's algorithm to determine the value of writable ; it may not match the behavior of other browsers.

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

见实现注意事项。

元数据

  • 最后修改: