Ver código fonte

Enables stats in FF.

j8
damencho 10 anos atrás
pai
commit
2081757ba1
3 arquivos alterados com 29313 adições e 28930 exclusões
  1. 1
    1
      index.html
  2. 29309
    28927
      libs/app.bundle.js
  3. 3
    2
      modules/statistics/RTPStatsCollector.js

+ 1
- 1
index.html Ver arquivo

20
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
20
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
21
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
21
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
22
     <script src="interface_config.js?v=5"></script>
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
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
24
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
25
     <link rel="stylesheet" href="css/font.css?v=7"/>
25
     <link rel="stylesheet" href="css/font.css?v=7"/>
26
     <link rel="stylesheet" href="css/toastr.css?v=1">
26
     <link rel="stylesheet" href="css/toastr.css?v=1">

+ 29309
- 28927
libs/app.bundle.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 3
- 2
modules/statistics/RTPStatsCollector.js Ver arquivo

4
 
4
 
5
 /* Whether we support the browser we are running into for logging statistics */
5
 /* Whether we support the browser we are running into for logging statistics */
6
 var browserSupported = RTCBrowserType.isChrome() ||
6
 var browserSupported = RTCBrowserType.isChrome() ||
7
-    RTCBrowserType.isOpera();
7
+    RTCBrowserType.isOpera() || RTCBrowserType.isFirefox();
8
 /**
8
 /**
9
  * Calculates packet lost percent using the number of lost packets and the
9
  * Calculates packet lost percent using the number of lost packets and the
10
  * number of all packet.
10
  * number of all packet.
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
         this.gatherStatsIntervalId = setInterval(
301
         this.gatherStatsIntervalId = setInterval(
301
             function () {
302
             function () {
302
                 self.peerconnection.getStats(
303
                 self.peerconnection.getStats(

Carregando…
Cancelar
Salvar