[Bug 25189] New: Mandatory errorCallback is missing in examples for getStats.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25189

            Bug ID: 25189
           Summary: Mandatory errorCallback is missing in examples for
                    getStats.
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebRTC API
          Assignee: public-webrtc@w3.org
          Reporter: kiran.guduru@samsung.com
                CC: public-webrtc@w3.org

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/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Friday, 28 March 2014 08:53:18 UTC