瀏覽代碼

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

Loading…
取消
儲存