Web/API/RTCIceCandidatePairStats/lastRequestTimestamp

From Get docs

The RTCIceCandidatePairStats property lastRequestTimestamp indicates the time at which the most recent STUN request was sent on the described candidate pair.

Syntax

lastRequestTimestamp = rtcIceCandidatePairStats.lastRequestTimestamp;

Value

A DOMHighResTimeStamp object indicating the timestamp at which the last (most recent) STUN request was sent on the connection indicated by the described pair of candidates.

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

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

Specifications

Specification Status Comment
Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.lastRequestTimestamp' in that specification. Candidate Recommendation Initial specification.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
lastRequestTimestamp Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

Legend

No support  
No support
Compatibility unknown  
Compatibility unknown