RTCIceCandidatePairStats.firstRequestTimestamp

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

Syntax

firstRequestTimestamp = rtcIceCandidatePairStats.firstRequestTimestamp;

Value

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;

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
firstRequestTimestamp
No
No
No
No
?
No
No
No
No
?
No
No

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidatePairStats/firstRequestTimestamp