瀏覽代碼

Fixes few undefined errors on standby.

master
damencho 6 年之前
父節點
當前提交
96f013c549
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/UI/videolayout/VideoLayout.js

+ 2
- 2
modules/UI/videolayout/VideoLayout.js 查看文件

@@ -637,7 +637,7 @@ const VideoLayout = {
637 637
      */
638 638
     onVideoMute(id, value) {
639 639
         if (APP.conference.isLocalId(id)) {
640
-            localVideoThumbnail.setVideoMutedView(value);
640
+            localVideoThumbnail && localVideoThumbnail.setVideoMutedView(value);
641 641
         } else {
642 642
             const remoteVideo = remoteVideos[id];
643 643
 
@@ -985,7 +985,7 @@ const VideoLayout = {
985 985
         } else if (currentId) {
986 986
             const currentSmallVideo = this.getSmallVideo(currentId);
987 987
 
988
-            currentSmallVideo.updateView();
988
+            currentSmallVideo && currentSmallVideo.updateView();
989 989
         }
990 990
     },
991 991
 

Loading…
取消
儲存