Re: [webrtc-stats] Are the stats read-only snapshots or will they change kept around?

I assume you're referring to the objects in the `RTCStatsReport` map. 
See https://github.com/w3c/webrtc-stats/issues/137.

These were always meant to be writable copies of data, i.e. dictionary
 semantics, where you get new objects each time.

This was apparent in [early versions of the 
spec](https://w3c.github.io/webrtc-pc/archives/20150922/webrtc.html#rtcstatsreport-object).
 Unfortunately, that WebIDL was broken, because dictionaries don't 
support inheritance, so we were forced to switch to using `object`, 
leading to the confusion you're pointing out. You're right we probably
 need prose to make up for this.



-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at 
https://github.com/w3c/webrtc-stats/issues/136#issuecomment-271705266 
using your GitHub account

Received on Tuesday, 10 January 2017 21:36:06 UTC