W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2014

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 28 Mar 2014 08:53:16 +0000
To: public-webrtc@w3.org
Message-ID: <bug-25189-4991@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:38 UTC