|
@@ -16367,8 +16367,12 @@ window.Modernizr = function(n, e, t) {
|
|
g_bgAudio.pauseByHot = true
|
|
g_bgAudio.pauseByHot = true
|
|
}
|
|
}
|
|
if(g_tourAudio)g_tourAudio.pause()
|
|
if(g_tourAudio)g_tourAudio.pause()
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ if(this.infoAttribute.video.length){//add
|
|
|
|
+ var playedOverlay = player.overlayGroup.children.filter(e=>e.hasSound && e.overlayType == 'video' && !e.plane.material.map.image.paused)
|
|
|
|
+ playedOverlay.forEach(e=>e.videoControl(false))
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -22316,9 +22320,17 @@ window.Modernizr = function(n, e, t) {
|
|
//------end
|
|
//------end
|
|
n.prototype.closePopup = function() {//xzw 关闭热点页面
|
|
n.prototype.closePopup = function() {//xzw 关闭热点页面
|
|
|
|
|
|
- return;
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
if(!g_currentHot) return;
|
|
if(!g_currentHot) return;
|
|
g_currentHot = null;
|
|
g_currentHot = null;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return;
|
|
|
|
+
|
|
|
|
+
|
|
var hotPop = document.getElementById('popup');
|
|
var hotPop = document.getElementById('popup');
|
|
hotPop.style.display = "none";
|
|
hotPop.style.display = "none";
|
|
document.querySelector(".popup-content").removeChild(document.getElementById("id1"));
|
|
document.querySelector(".popup-content").removeChild(document.getElementById("id1"));
|
|
@@ -22512,9 +22524,9 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
//判断是否是移动端,如果是给关闭按钮添加touchstart事件
|
|
//判断是否是移动端,如果是给关闭按钮添加touchstart事件
|
|
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
|
|
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
|
|
- $('#closepop').on("touchstart",this.closePopup.bind(this));
|
|
|
|
|
|
+ $('.hotspotcon').on("touchstart",this.closePopup.bind(this));
|
|
}else{
|
|
}else{
|
|
- $('#closepop').on("click",this.closePopup.bind(this));
|
|
|
|
|
|
+ $('.hotspotcon').on("click",this.closePopup.bind(this));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
,
|
|
,
|
|
@@ -22674,10 +22686,14 @@ window.Modernizr = function(n, e, t) {
|
|
window.Hotpoint && new Hotpoint().state(this,Hot);
|
|
window.Hotpoint && new Hotpoint().state(this,Hot);
|
|
}
|
|
}
|
|
|
|
|
|
- this.overlayGroup.children.forEach((overlay)=>{
|
|
|
|
- //overlay.overlayType == "video" && overlay.visible && overlay.inSight() && overlay.videoControl(true)
|
|
|
|
- overlay.overlayType == "video" && overlay.plane.material.map.image.shouldPlay && overlay.videoControl(true)
|
|
|
|
- })
|
|
|
|
|
|
+ if(!window.g_currentHot ){
|
|
|
|
+ this.overlayGroup.children.forEach((overlay)=>{
|
|
|
|
+ //overlay.overlayType == "video" && overlay.visible && overlay.inSight() && overlay.videoControl(true)
|
|
|
|
+ overlay.overlayType == "video" && overlay.plane.material.map.image.shouldPlay && overlay.videoControl(true)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|