This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
errorCallback is mandatory for getStats. But errorCallback is missing in examples while calling getStats in section 7.7, Example 1. pc.getStats(selector, function (report) { baselineReport = report; }); pc.getStats(selector, function (report) { currentReport = report; processStats(); }); should be like pc.getStats(selector, function (report) { baselineReport = report; },logError); pc.getStats(selector, function (report) { currentReport = report; processStats(); }, logError); References: [1] http://dev.w3.org/2011/webrtc/editor/webrtc.html [2] http://www.w3.org/TR/webrtc/
Thanks for spotting this. We might need to take a closer look at the stats examples to see if they still are valid. Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/7e3b3d724afc19bc82b3ad622319947655888233