webrtc-stats icon indicating copy to clipboard operation
webrtc-stats copied to clipboard

guidelines for getStats() results caching/throttling are a bit vague

Open fippo opened this issue 3 years ago • 0 comments

https://w3c.github.io/webrtc-stats/#guidelines-for-getstats-results-caching-throttling says | When the state of the RTCPeerConnection visibly changes [clear the cache]

This doesn't define what "visibly changes" means. The onicecandidate or addIceCandidate methods will make new objects (of type local-candidate and remote-candidate) show up (which is assertable in a test).

The icegatheringstatechange event does not change the objects (I think) so should not invalidate. Maybe we should add a "maybe flush the cache" to descriptions like https://w3c.github.io/webrtc-pc/#dom-peerconnection-addicecandidate ?

fippo avatar Jun 17 '22 10:06 fippo