Bladeren bron

stopTourSound etc

zhouenguang 3 jaren geleden
bovenliggende
commit
fe8180c220
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      web/public/static/js/main_2020_show.js

+ 2 - 1
web/public/static/js/main_2020_show.js

@@ -4892,6 +4892,7 @@ window.Modernizr = function(n, e, t) {
 			} */
 			 
             n.prototype.stopTour = function(isAutoStop) {//停止导览        isAutoStop 希望仅在飞完结束自动停止时的stopTour不停止tourSound, 这样才能完整播放tourSound.  不过似乎会在倒数第二个片段点击按钮停止导览时也视作自动结束的(执行this.interrupt() )。
+                SoundManager.pause('tour'), // 周恩光 自动导览暂停时同时停止语音
                 this.isInterrupted() || this.transitionStage === y.Moving && this.checkAndHandleWalkingtourInterruption(this.nextWarpStyle) || (this.tourIsPlaying && (this.player.zoomEnabled = this.wasZoomEnabled),
                 this.tourIsPlaying = !1, 
                 this.interrupt(),
@@ -22758,7 +22759,7 @@ window.Modernizr = function(n, e, t) {
                      //---------before fly--------------- add
                     this.updateHotVisible(i); //更新热点显示
                     this.transitionPos({type:"beforeFlytopano", pano:i, dur:I})//add 
-                    Hot.updateVisibles([this.currentPano, i])
+                    //Hot.updateVisibles([this.currentPano, i])     // 周恩光 注释 只在fly完成时再显示热点
                     
                     //地标变化
                     if(this.model.floorLogos){