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:

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

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

I also filed 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 using your GitHub account

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