Re: [webrtc-stats] RTCPeerConnection.getStats: What to do with 'selector' argument?

When we were ruminating about the selector in the office, we could 
think of some other useful definitions and selectors:
- Get the object with this stats ID (would allow the iteration in 
@jan-ivar 's sample to be done client-side) - probably would require 
gathering all objects UA-side, since we don't select this way 
currently
- Get all the objects with this stats type (trivially implementable 
UA-side)
- Make the selector mean "this track's stat object only" (and couple 
with individual-object lookup to get the stuff it refers to, if 
interesting)
- Make the selector mean "this track's stat object and every stat 
object that is referenced by an ID value in it (recursively)"

But it seemed scary to start down any of these without first 
discussing whether there was agreement on what the current text was 
intended to mean, and getting it either clarified or removed before 
continuing.


The last is probably the one closest to what the spec says today.

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

Received on Tuesday, 20 December 2016 11:32:53 UTC