|
@@ -16362,10 +16362,10 @@ window.Modernizr = function(n, e, t) {
|
|
|
if(!g_currentHot) return;
|
|
|
|
|
|
|
|
|
- if(this.overlayPausedByThis){
|
|
|
- this.overlayPausedByThis.forEach(e=>e.videoControl(true))
|
|
|
+ if(this.pausedOverlay){
|
|
|
+ this.pausedOverlay.forEach(e=>e.videoControl(true))
|
|
|
|
|
|
- this.overlayPausedByThis = null
|
|
|
+ this.pausedOverlay = null
|
|
|
}
|
|
|
|
|
|
g_currentHot = null;
|
|
@@ -16412,10 +16412,11 @@ window.Modernizr = function(n, e, t) {
|
|
|
g_bgAudio.pauseByHot = true
|
|
|
}
|
|
|
if(g_tourAudio)g_tourAudio.pause()
|
|
|
- if(this.infoAttribute.video.length){//add
|
|
|
+ if(this.infoAttribute.video.length || this.infoAttribute.backgroundMusic){//add
|
|
|
var playedOverlay = player.overlayGroup.children.filter(e=>e.hasSound && e.overlayType == 'video' && !e.plane.material.map.image.paused)
|
|
|
+ this.pausedOverlay = playedOverlay;
|
|
|
playedOverlay.forEach(e=>e.videoControl(false))
|
|
|
- this.overlayPausedByThis = playedOverlay;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|