|
@@ -4,7 +4,7 @@ var RTCBrowserType = require("../RTC/RTCBrowserType");
|
4
|
4
|
|
5
|
5
|
/* Whether we support the browser we are running into for logging statistics */
|
6
|
6
|
var browserSupported = RTCBrowserType.isChrome() ||
|
7
|
|
- RTCBrowserType.isOpera();
|
|
7
|
+ RTCBrowserType.isOpera() || RTCBrowserType.isFirefox();
|
8
|
8
|
/**
|
9
|
9
|
* Calculates packet lost percent using the number of lost packets and the
|
10
|
10
|
* number of all packet.
|
|
@@ -296,7 +296,8 @@ StatsCollector.prototype.start = function ()
|
296
|
296
|
);
|
297
|
297
|
}
|
298
|
298
|
|
299
|
|
- if (config.logStats && browserSupported) {
|
|
299
|
+ // Logging statistics does not support firefox
|
|
300
|
+ if (config.logStats && (browserSupported && !RTCBrowserType.isFirefox())) {
|
300
|
301
|
this.gatherStatsIntervalId = setInterval(
|
301
|
302
|
function () {
|
302
|
303
|
self.peerconnection.getStats(
|