Skip to content

Commit eff85b2

Browse files
author
dimaspirit
committed
changes #2
1 parent 5992b28 commit eff85b2

File tree

3 files changed

+18
-23
lines changed

3 files changed

+18
-23
lines changed

js/modules/webrtc/qbRTCPeerConnection.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,19 +259,12 @@ RTCPeerConnection.prototype._getStatsWrap = function() {
259259

260260
var _statsReportCallback = function() {
261261
_getStats(self, function (results) {
262-
for (var i = 0; i < results.length; ++i) {
263-
var res = results[i],
264-
is_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
265-
266-
if (res.googCodecName == 'opus' || res.type == 'inboundrtp') {
267-
self.delegate._onCallStatsReport(self.userID, res);
268-
}
262+
self.delegate._onCallStatsReport(self.userID, results);
263+
},
264+
selector,
265+
function errorLog(err) {
266+
Helpers.traceError(error.name + ": " + error.message);
269267
}
270-
},
271-
selector,
272-
function errorLog(err) {
273-
Helpers.traceError(error.name + ": " + error.message);
274-
}
275268
);
276269
};
277270

0 commit comments

Comments
 (0)