RTCIceCandidatePairStats dictionary's requestsReceived property indicates the total number of STUN connectivity check requests that have been received so far on the connection described by this pairing of candidates.

句法

requestsReceived = rtcIceCandidatePairStats.requestsReceived;
					

An integer value which specifies the number of STUN connectivity and/or consent requests that have been received to date on the connection described by this pair of ICE candidates.

Because there's no way to tell the difference between requests made to check connectivity and requests made to check consent, the returned figure includes both.

注意: The reported number of requests includes retransmissions. If a request had to be repeated due to network issues, it will be counted multiple times here. This differs from requestsSent , which does not include retransmisions.

规范

规范 状态 注释
Identifiers for WebRTC's Statistics API
The definition of 'RTCIceCandidatePairStats.requestsReceived' in that specification.
候选推荐 最初的规范。

浏览器兼容性

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
requestsReceived Chrome Yes Edge ≤79 Firefox No IE No Opera ? Safari ? WebView Android Yes Chrome Android Yes Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

元数据

  • 最后修改: