소스 검색

Enables stats in FF.

master
damencho 10 년 전
부모
커밋
2081757ba1
3개의 변경된 파일29313개의 추가작업 그리고 28930개의 파일을 삭제
  1. 1
    1
      index.html
  2. 29309
    28927
      libs/app.bundle.js
  3. 3
    2
      modules/statistics/RTPStatsCollector.js

+ 1
- 1
index.html 파일 보기

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
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 3
- 2
modules/statistics/RTPStatsCollector.js 파일 보기

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(

Loading…
취소
저장