Temasys / AdapterJS

AdapterJS Javascript Polyfill and Tools for WebRTC - Skylink WebRTC
http://skylink.io/web
Other
429 stars 100 forks source link

How to get statistics with peerconnection.getstats() ? #259

Closed dongkai1993-zz closed 7 years ago

dongkai1993-zz commented 7 years ago

Hi,

peer.getStats((stats)=>{
      var report = stats.result();
})

the report is an array of RTCLegacyStatsReport, but it only contain id, timestamp and type, how can I get more statistics? Such as: googCaptureStartNtpTimeMs, googCurrentDelayMs, googFrameHeightReceived and so on.

dongkai1993-zz commented 7 years ago

I have solves this problem,

peer.getStats(null, (stats)=>{ var report = stats; })