W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2017

Re: [webrtc-stats] RTCPeerConnectionStats: should they contain a link to transports?

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Jun 2017 12:39:59 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-309427497-1497875998-sysbot+gh@w3.org>
@fippo You can do
```js
pc.getStats().then(report => [...report.values()].filter(stat => stat.type == 'transport'))
```

But these are all for-loops in my book. RTCPeerConnectionStats is effectively a global in getStats, which means you'd still need a for-loop, so what would it buy us?

It seems we can also get transports off of RTCRTPStreamStats's transportId. That seems plenty to me, so I think I need a clearer description of the problem.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/227#issuecomment-309427497 using your GitHub account
Received on Monday, 19 June 2017 12:40:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:44 UTC