Re: [webrtc-stats] Is keeping stats around a memory problem?

@alvestrand I like the event idea.

We might want to bikeshed on the names a bit (final = deleted = completed = ended).

There's also the question (thanks @na-g) of whether the event would contain an `RTCStatsReport` object or an `RTCStats` object (sadly `object` in WebIDL). E.g. is it one event per object:

```js
pc.onfinalstat = e => console.log(e.finalStat.kind == "track");
```
or plural:

```js
pc.onfinalstats = e => console.log([...e.finalStats.values()].some(s => s.kind == "track"));
```


I also filed https://github.com/w3c/webrtc-stats/issues/300 on some timing issues that came up to light while thinking about this.

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

Received on Wednesday, 17 January 2018 23:50:58 UTC