xzw 4 years ago
parent
commit
c03cdac960
2 changed files with 10 additions and 4 deletions
  1. 7 2
      edit-backstage/js/main_2020_edit.js
  2. 3 2
      web/public/static/js/overlay.js

+ 7 - 2
edit-backstage/js/main_2020_edit.js

@@ -22244,7 +22244,12 @@ function o(a, s, l) {
                 }else{  
                     this.transitionPos({type:"beforeFlyOut",  dur:p/2})//add                       
                 }
-            
+                if(this.mode == 'panorama'){
+                    this.overlayGroup.visible = false;
+                    this.overlayGroup.children.forEach((overlay)=>{
+                        overlay.overlayType == "video"  &&  overlay.plane.material.map.image.pause()
+                    })
+                }
             
                 
                 if (i === V.PANORAMA)
@@ -22343,7 +22348,7 @@ function o(a, s, l) {
                     if(this.mode == V.PANORAMA){ 
                         Overlay.updateVisibles([this.currentPano])
                     }else{
-                        Overlay.updateVisibles(true)
+                        //Overlay.updateVisibles(true)
                     }
                     
                     c && u !== V.PANORAMA && i === V.PANORAMA ? this.startWarp(M.Retain, S.Retain, R.BLACK, null, null, a) : (a && a(),

+ 3 - 2
web/public/static/js/overlay.js

@@ -108,6 +108,7 @@ var initOverlay = function(THREE){
                 })
                 video.volume = 0
                 video.muted = true
+                plane.material.opacity = 1;
             }else if(info.media.includes('photo')){
                 /* var img = new Image();
                  
@@ -116,9 +117,9 @@ var initOverlay = function(THREE){
                  */
                 
                 info.type = "photo"  
-                
+                plane.material.opacity = 0.1;
             }
-            plane.material.opacity = 0.1;
+            
             plane.material.color = new THREE.Color(1,1,1) 
         }
         if(info.width == void 0) info.width = settings.overlay.width;