Browse Source

Enables stats in FF.

j8
damencho 10 years ago
parent
commit
2081757ba1
3 changed files with 29313 additions and 28930 deletions
  1. 1
    1
      index.html
  2. 29309
    28927
      libs/app.bundle.js
  3. 3
    2
      modules/statistics/RTPStatsCollector.js

+ 1
- 1
index.html View File

@@ -20,7 +20,7 @@
20 20
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
21 21
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
22 22
     <script src="interface_config.js?v=5"></script>
23
-    <script src="libs/app.bundle.js?v=126"></script>
23
+    <script src="libs/app.bundle.js?v=127"></script>
24 24
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
25 25
     <link rel="stylesheet" href="css/font.css?v=7"/>
26 26
     <link rel="stylesheet" href="css/toastr.css?v=1">

+ 29309
- 28927
libs/app.bundle.js
File diff suppressed because it is too large
View File


+ 3
- 2
modules/statistics/RTPStatsCollector.js View File

@@ -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(

Loading…
Cancel
Save