ソースを参照

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,12 +1302,14 @@ export default {
1302 1302
         }
1303 1303
 
1304 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 1307
             ConnectionQuality.updateLocalStats(
1306 1308
                 stats,
1307 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 1315
         ConnectionQuality.addListener(CQEvents.LOCALSTATS_UPDATED,

読み込み中…
キャンセル
保存