RTCIceCandidatePairStats property firstRequestTimestamp specifies the time at which the first STUN request was sent on the described candidate pair.

句法

firstRequestTimestamp = rtcIceCandidatePairStats.firstRequestTimestamp;
					

A DOMHighResTimeStamp object indicating the timestamp at which the first STUN request was sent on the connection described by the described pair of candidates.

You can use this value in combination with lastRequestTimestamp and requestsSent to compute the average interval between consecutive connectivity checks:

avgCheckInterval = (candidatePairStats.lastRequestTimestamp -
                    candidatePairStats.firstRequestTimestamp) /
                   candidatePairStats.requestsSent;
					

规范

规范 状态 注释
Identifiers for WebRTC's Statistics API
The definition of 'RTCIceCandidatePairStats.firstRequestTimestamp' 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.

No compatibility data found. Please contribute data for "api.RTCIceCandidatePairStats.firstRequestTimestamp" (depth: 1) to the MDN 兼容性数据存储库 .

元数据

  • 最后修改: