Quellcode durchsuchen

Fixes few undefined errors on standby.

master
damencho vor 6 Jahren
Ursprung
Commit
96f013c549
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      modules/UI/videolayout/VideoLayout.js

+ 2
- 2
modules/UI/videolayout/VideoLayout.js Datei anzeigen

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
 

Laden…
Abbrechen
Speichern