|
@@ -16,11 +16,11 @@ g_tourAudio.addEventListener("ended", function() {
|
|
|
|
|
|
g_tourAudio.oncanplaythrough = function() {
|
|
|
g_tourAudio.play();
|
|
|
- if(g_bgAudio && !g_bgAudio.paused){
|
|
|
- manage.switchBgmState(false);
|
|
|
- g_bgAudio.pauseByTour = true
|
|
|
- }
|
|
|
- g_playAudio = g_tourAudio;
|
|
|
+ // if(g_bgAudio && !g_bgAudio.paused){
|
|
|
+ // manage.switchBgmState(false);
|
|
|
+ // g_bgAudio.pauseByTour = true
|
|
|
+ // }
|
|
|
+ // g_playAudio = g_tourAudio;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -57,12 +57,6 @@ var videoPosInfo = {
|
|
|
"d37506a1ced0473e9d440bacc1e1adcd":[],
|
|
|
"15ce1af19b254208b53b581f60448187":[],
|
|
|
"caea23de90ac4e15b29a3bb3bd3e8adf":[],
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
var videoOffset
|
|
@@ -4852,7 +4846,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
return destination && destination.panoId == e
|
|
|
}
|
|
|
,
|
|
|
- n.prototype.redirectToItem = function(e, t) {
|
|
|
+ n.prototype.redirectToItem = function(e, t,noMusic) {
|
|
|
if (null === e || void 0 === e)
|
|
|
return void A.warn("Director.redirectToItem() -> Redirecting to null item.");
|
|
|
if (!this.wouldInterrupt())
|
|
@@ -4862,8 +4856,9 @@ window.Modernizr = function(n, e, t) {
|
|
|
A.debug("Director.redirectToItem() -> Redirecting to " + e + " via " + t);
|
|
|
var i = function() {
|
|
|
s.setTimeout(function() {
|
|
|
+ let flag = noMusic?'noMusic':''
|
|
|
this.setDestinationItem(e),
|
|
|
- this.goToDestination(!0, g.BEGINNING, a.warp.warpInterruptionRedirectTime, !1)
|
|
|
+ this.goToDestination(flag, g.BEGINNING, a.warp.warpInterruptionRedirectTime, !1)
|
|
|
}
|
|
|
.bind(this), 0)
|
|
|
}
|
|
@@ -4899,15 +4894,27 @@ window.Modernizr = function(n, e, t) {
|
|
|
n.prototype.goToDestination = function(e, t, i, n) {
|
|
|
|
|
|
//音频
|
|
|
- if(this.destinationItem[1] == 0 && e!='goToHighlight'){//如果是每个folder的起始
|
|
|
- var musicInfo = this.model.heroLocations[this.destinationItem[0]].musicInfo
|
|
|
- if(musicInfo && musicInfo.music){
|
|
|
- var o = musicInfo.music.includes(g_Prefix.slice(-10)) ? musicInfo.music : g_Prefix + musicInfo.music;
|
|
|
- g_tourAudio.src = manage.dealURL(o);
|
|
|
- g_tourAudio.load()
|
|
|
+ if(!this.destinationItem){
|
|
|
+ this.goNext()
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ if(this.destinationItem[1] == 0){//如果是每个folder的起始
|
|
|
+ g_tourAudio.pause();
|
|
|
+ g_tourAudio.src = ""
|
|
|
+ var musicInfo = this.model.heroLocations[this.destinationItem[0]].musicInfo
|
|
|
+ if(musicInfo && musicInfo.music){
|
|
|
+ if(e!='noMusic'){
|
|
|
+ var o = musicInfo.music.includes(g_Prefix.slice(-10)) ? musicInfo.music : g_Prefix + musicInfo.music;
|
|
|
+ g_tourAudio.src = manage.dealURL(o);
|
|
|
+ g_tourAudio.load()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
if (this.onTheBus = !0,
|
|
|
this.emit("update.controls"),
|
|
|
this.player.updateLastView(),
|
|
@@ -4923,17 +4930,18 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
//var s = 0 === this.destinationItem || e ? u.BLACK : this.nextWarpStyle;
|
|
|
//var walk = window.MP_PREFETCHED_MODELDATA.black ? 'black' : 'walk';
|
|
|
-
|
|
|
var s = this.getMomentTour(this.destinationItem) //window.MP_PREFETCHED_MODELDATA.momentTour || "walk";
|
|
|
- if(e == 'goToHighlight'){
|
|
|
+
|
|
|
+
|
|
|
+ if(e == 'noMusic'){
|
|
|
var aim = new THREE.Vector3(0,0,-1).applyQuaternion(r.quaternion).add(r.position)
|
|
|
a = this.player.flyToPano.bind(this.player, {pano: this.model.panos.index[r.panoId], lookAtPoint: aim }, this.actionComplete.bind(this))
|
|
|
}else{
|
|
|
- a = this.player.warpToPanoByHeroIndex.bind(this.player, this.destinationItem, v.Show, m.Slow, s, true, i, this.actionComplete.bind(this))
|
|
|
+ a = this.player.warpToPanoByHeroIndex.bind(this.player, this.destinationItem, v.Show, m.Slow, s, true, i, this.actionComplete.bind(this))
|
|
|
}
|
|
|
|
|
|
-
|
|
|
o = this.arrivedAtDestination.bind(this, !0)
|
|
|
+
|
|
|
} else{
|
|
|
a = this.player.warpToNonPanoByHeroIndex.bind(this.player, this.destinationItem, this.actionComplete.bind(this)),
|
|
|
o = this.arrivedAtDestination.bind(this, !1);
|
|
@@ -5009,6 +5017,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
this.emit("update.controls"),
|
|
|
this.emit(p.TourStart),
|
|
|
this.player.enablePreRendering(),
|
|
|
+
|
|
|
/* this.walkingSectionPaused ? (this.clearWalkingSectionPaused(),
|
|
|
this.goToDestination()) : this.goNext())) */
|
|
|
|
|
@@ -5017,16 +5026,17 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
,
|
|
|
n.prototype.bgmReplay = function() {//xzw add 结束tour后可能要继续播放背景音乐
|
|
|
//if(g_tourAudio && g_tourAudio.paused && g_bgAudio && g_bgAudio.paused){
|
|
|
- if(g_bgAudio && g_bgAudio.paused && g_bgAudio.pauseByTour){
|
|
|
- g_playAudio = g_bgAudio;
|
|
|
- g_tourAudio && g_tourAudio.pause();
|
|
|
- //window.tourAudio && window.tourAudio.pause();
|
|
|
- manage.switchBgmState(true);
|
|
|
- }
|
|
|
+ // if(g_bgAudio && g_bgAudio.paused && g_bgAudio.pauseByTour){
|
|
|
+ // g_playAudio = g_bgAudio;
|
|
|
+ // g_tourAudio && g_tourAudio.pause();
|
|
|
+ // //window.tourAudio && window.tourAudio.pause();
|
|
|
+ // manage.switchBgmState(true);
|
|
|
+ // }
|
|
|
}
|
|
|
,
|
|
|
n.prototype.stopTour = function(isAutoStop) {//停止导览 isAutoStop 希望仅在飞完结束自动停止时的stopTour不停止tourSound, 这样才能完整播放tourSound. 不过似乎会在倒数第二个片段点击按钮停止导览时也视作自动结束的(执行this.interrupt() )。
|
|
@@ -5054,11 +5064,8 @@ window.Modernizr = function(n, e, t) {
|
|
|
,
|
|
|
|
|
|
n.prototype.goToHighlight = function(e) {
|
|
|
-
|
|
|
- /* if (this.wouldInterrupt())
|
|
|
- this.itemCompare(this.destinationItem,e,'equal') ? this.interrupt() : this.redirectToItem(e, "goToHighlight");
|
|
|
- */
|
|
|
- if (this.wouldInterrupt()){}
|
|
|
+ if (this.wouldInterrupt())
|
|
|
+ this.itemCompare(this.destinationItem,e,'equal') ? this.interrupt() : this.redirectToItem(e, "goToHighlight",true);
|
|
|
else {
|
|
|
if (A.debug("<tour.goto " + e + ">"),
|
|
|
this.isInterrupted())
|
|
@@ -5066,7 +5073,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
this.clearWalkingSectionPaused(),
|
|
|
this.setDestinationItem(e),
|
|
|
this.useSpecialTransition("Hilight"),
|
|
|
- this.goToDestination("goToHighlight"),//
|
|
|
+ this.goToDestination('noMusic'),
|
|
|
h.trackAlways("reach_highlight", {
|
|
|
reach_source: "thumb"
|
|
|
})
|
|
@@ -6900,7 +6907,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
var i = Q.pageTitle;
|
|
|
// 2 !== K.valueFromHash("mls", 0) && (i = e.name + " - " + i),
|
|
|
2 !== K.valueFromHash("mls", 0) && e.name && (i = e.name),
|
|
|
- document.title = i ,
|
|
|
+ // document.title = i ,
|
|
|
K.isMobile() ? $("#gui-fullscreen").css("display", "none") : ($("[rel=tooltip]").tooltip({
|
|
|
delay: {
|
|
|
show: 50,
|
|
@@ -15797,7 +15804,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
}else{
|
|
|
u.texture1.value = defaultTex1;
|
|
|
u.texture2.value = defaultTex2;
|
|
|
- console.log(this.sid)
|
|
|
+ // console.log(this.sid)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -15831,7 +15838,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
transparent: !0
|
|
|
})
|
|
|
var sprite = new r.Mesh( geometry, shaderMaterial );
|
|
|
- var hotIconScale = parseFloat(window.MP_PREFETCHED_MODELDATA.hotIconScale);
|
|
|
+ var hotIconScale = parseFloat(window.MP_PREFETCHED_MODELDATA.hotIconScale*0.7);
|
|
|
sprite.dynamic = true;
|
|
|
sprite.position.copy(this.position);
|
|
|
sprite.quaternion.copy(this.quaternion)
|
|
@@ -15961,9 +15968,9 @@ window.Modernizr = function(n, e, t) {
|
|
|
exit.style["z-index"] = "3"
|
|
|
exit.onclick = ()=>{
|
|
|
$(div).remove()
|
|
|
- if(g_bgAudio && g_bgAudio.pauseByHot){
|
|
|
- manage.switchBgmState(true)
|
|
|
- }
|
|
|
+ // if(g_bgAudio && g_bgAudio.pauseByHot){
|
|
|
+ // manage.switchBgmState(true)
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
var myElement = document.createElement("iframe");
|
|
@@ -15982,11 +15989,11 @@ window.Modernizr = function(n, e, t) {
|
|
|
|
|
|
//打开热点的时候把背景音乐关闭了,避免与热点里面的音乐冲突
|
|
|
//g_bgAudio && g_bgAudio.pause();
|
|
|
- if(g_bgAudio && !g_bgAudio.paused){
|
|
|
- // manage.switchBgmState(false);
|
|
|
- // g_bgAudio.pauseByHot = true
|
|
|
- }
|
|
|
- if(g_tourAudio)g_tourAudio.pause()
|
|
|
+ // if(g_bgAudio && !g_bgAudio.paused){
|
|
|
+ // manage.switchBgmState(false);
|
|
|
+ // g_bgAudio.pauseByHot = true
|
|
|
+ // }
|
|
|
+ // if(g_tourAudio)g_tourAudio.pause()
|
|
|
|
|
|
|
|
|
|
|
@@ -16009,13 +16016,13 @@ window.Modernizr = function(n, e, t) {
|
|
|
var myElement = document.createElement("iframe");
|
|
|
//打开热点的时候把背景音乐关闭了,避免与热点里面的音乐冲突
|
|
|
//g_bgAudio && g_bgAudio.pause();
|
|
|
- if(g_bgAudio && !g_bgAudio.paused){
|
|
|
- manage.switchBgmState(false);
|
|
|
- g_bgAudio.pauseByHot = true
|
|
|
- }
|
|
|
+ // if(g_bgAudio && !g_bgAudio.paused){
|
|
|
+ // manage.switchBgmState(false);
|
|
|
+ // g_bgAudio.pauseByHot = true
|
|
|
+ // }
|
|
|
if(g_tourAudio)g_tourAudio.pause()
|
|
|
|
|
|
- var src = getLink(this.link )
|
|
|
+ var src = getLink(this.link)
|
|
|
myElement.src = src;
|
|
|
myElement.id = "id1";
|
|
|
myElement.allowTransparency = "true";
|
|
@@ -19916,8 +19923,8 @@ window.Modernizr = function(n, e, t) {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- console.log("--------------------------"),
|
|
|
- console.log(JSON.stringify(i));
|
|
|
+ // console.log("--------------------------"),
|
|
|
+ // console.log(JSON.stringify(i));
|
|
|
var n = this.player.model.addtag(e, i).build();
|
|
|
n && (n.disc && this.player.tagDiscs.push(n.disc),
|
|
|
n.visible || n.show(o.tags.startup.fadeInDuration))
|
|
@@ -21831,9 +21838,9 @@ window.Modernizr = function(n, e, t) {
|
|
|
manage.switchBgmState(true)
|
|
|
}; */
|
|
|
|
|
|
- if(g_bgAudio && g_bgAudio.pauseByHot){
|
|
|
- manage.switchBgmState(true)
|
|
|
- }
|
|
|
+ // if(g_bgAudio && g_bgAudio.pauseByHot){
|
|
|
+ // manage.switchBgmState(true)
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
//$('#player').off("click",this.closePopup);
|
|
@@ -21980,7 +21987,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
manage.switchBgmState(true)
|
|
|
} */
|
|
|
|
|
|
- if(!this.director.tourIsPlaying) this.director.bgmReplay()
|
|
|
+ // if(!this.director.tourIsPlaying) this.director.bgmReplay()
|
|
|
}
|
|
|
,
|
|
|
n.prototype.bindEvents = function(e) {
|
|
@@ -22272,10 +22279,13 @@ window.Modernizr = function(n, e, t) {
|
|
|
return this.tagManager.rankedtagInDirection(e, this.position, this.camera, t)
|
|
|
}
|
|
|
,
|
|
|
+ // n.prototype.tloadOverlays= function(){
|
|
|
+ // this.model.loadOverlays()
|
|
|
+ // },
|
|
|
n.prototype.start = function(e) {
|
|
|
//-------------------
|
|
|
- window.initOverlay(r)
|
|
|
- this.model.loadOverlays()
|
|
|
+ window.initOverlay(r)
|
|
|
+ this.model.loadOverlays()
|
|
|
//loadVideo();//add
|
|
|
//-------------------
|
|
|
|