소스 검색

Fixes cannot read property of undefined if there is no local video.

j8
damencho 9 년 전
부모
커밋
e5f38e34e9
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5
    3
      conference.js

+ 5
- 3
conference.js 파일 보기

1302
         }
1302
         }
1303
 
1303
 
1304
         room.on(ConferenceEvents.CONNECTION_STATS, function (stats) {
1304
         room.on(ConferenceEvents.CONNECTION_STATS, function (stats) {
1305
+            // if we say video muted we will use old method of calculating
1306
+            // quality and will not depend on localVideo if it is missing
1305
             ConnectionQuality.updateLocalStats(
1307
             ConnectionQuality.updateLocalStats(
1306
                 stats,
1308
                 stats,
1307
                 connectionIsInterrupted,
1309
                 connectionIsInterrupted,
1308
-                localVideo.videoType,
1309
-                localVideo.isMuted(),
1310
-                localVideo.resolution);
1310
+                localVideo ? localVideo.videoType : undefined,
1311
+                localVideo ? localVideo.isMuted() : true,
1312
+                localVideo ? localVideo.resolution : null);
1311
         });
1313
         });
1312
 
1314
 
1313
         ConnectionQuality.addListener(CQEvents.LOCALSTATS_UPDATED,
1315
         ConnectionQuality.addListener(CQEvents.LOCALSTATS_UPDATED,

Loading…
취소
저장