|
@@ -4818,7 +4818,7 @@ window.Modernizr = function(n, e, t) {
|
|
let audioSrc2 = common.getFileNameFromUrl(src)
|
|
let audioSrc2 = common.getFileNameFromUrl(src)
|
|
|
|
|
|
if(audioSrc1 == audioSrc2){//应该是继续播放该folder
|
|
if(audioSrc1 == audioSrc2){//应该是继续播放该folder
|
|
- if(this.destinationItem[1] == 0){//从头开始播放 因为可能暂停后然后再点该缩略图播
|
|
|
|
|
|
+ if(this.destinationItem[1] == 1){//从头开始播放 因为可能暂停后然后再点该缩略图播 // 周恩光改 开头为1
|
|
SoundManager.play('tour',null,0) // currentTime = 0;
|
|
SoundManager.play('tour',null,0) // currentTime = 0;
|
|
}else if( audioObj.audio.paused && audioObj.audio.currentTime < audioObj.audio.duration ){//未播完
|
|
}else if( audioObj.audio.paused && audioObj.audio.currentTime < audioObj.audio.duration ){//未播完
|
|
SoundManager.play('tour')//继续播。为什么会有暂停的情况?如果手动切换到bgm了呢?
|
|
SoundManager.play('tour')//继续播。为什么会有暂停的情况?如果手动切换到bgm了呢?
|
|
@@ -4880,6 +4880,7 @@ window.Modernizr = function(n, e, t) {
|
|
}
|
|
}
|
|
.bind(this), o),
|
|
.bind(this), o),
|
|
this.emit("update.controls")
|
|
this.emit("update.controls")
|
|
|
|
+ // 周恩光加 更新右侧导览当前位置
|
|
let pano = this.model.panos.index[r.panoId]
|
|
let pano = this.model.panos.index[r.panoId]
|
|
this.player.emit("flying.ended", pano.position, oldPos, pano, oldPano)
|
|
this.player.emit("flying.ended", pano.position, oldPos, pano, oldPano)
|
|
}
|
|
}
|
|
@@ -5059,7 +5060,7 @@ window.Modernizr = function(n, e, t) {
|
|
var currentChildNum = currentLocation.heroLocations ? currentLocation.heroLocations.length : 1
|
|
var currentChildNum = currentLocation.heroLocations ? currentLocation.heroLocations.length : 1
|
|
var item;
|
|
var item;
|
|
if(this.currentItem[1] >= currentChildNum - 1){//子目录中最后一个
|
|
if(this.currentItem[1] >= currentChildNum - 1){//子目录中最后一个
|
|
- item = [currentItem[0] + 1, 0] //结果可能超出nItems
|
|
|
|
|
|
+ item = [currentItem[0] + 1, 1] //结果可能超出nItems // 周恩光 导览片段从1开始
|
|
}else{
|
|
}else{
|
|
item = [currentItem[0] , currentItem[1]+1]
|
|
item = [currentItem[0] , currentItem[1]+1]
|
|
}
|
|
}
|
|
@@ -5079,7 +5080,7 @@ window.Modernizr = function(n, e, t) {
|
|
else{
|
|
else{
|
|
var lastChildNum = lastLocation.heroLocations ? lastLocation.heroLocations.length : 1
|
|
var lastChildNum = lastLocation.heroLocations ? lastLocation.heroLocations.length : 1
|
|
|
|
|
|
- if(this.currentItem[1] == 0){//子目录中第一个
|
|
|
|
|
|
+ if(this.currentItem[1] == 1){//子目录中第一个
|
|
return [currentItem[0] - 1, lastChildNum-1]
|
|
return [currentItem[0] - 1, lastChildNum-1]
|
|
}else{
|
|
}else{
|
|
return [currentItem[0], currentItem[1]-1]
|
|
return [currentItem[0], currentItem[1]-1]
|
|
@@ -5114,12 +5115,14 @@ window.Modernizr = function(n, e, t) {
|
|
currentPanoDestinations.push(0)
|
|
currentPanoDestinations.push(0)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 周恩光改 导览片段应该从1开始,而不是0
|
|
if(null === this.currentItem || void 0 === this.currentItem){
|
|
if(null === this.currentItem || void 0 === this.currentItem){
|
|
// this.setDestinationItem(this.firstDestination())
|
|
// this.setDestinationItem(this.firstDestination())
|
|
- this.setDestinationItem([currentPanoDestinations[0], 0])
|
|
|
|
|
|
+ // this.setDestinationItem([currentPanoDestinations[0], 0])
|
|
|
|
+ this.setDestinationItem([currentPanoDestinations[0], 1])
|
|
}else{
|
|
}else{
|
|
if(currentPanoDestinations.indexOf(this.currentItem[0]) == -1) {
|
|
if(currentPanoDestinations.indexOf(this.currentItem[0]) == -1) {
|
|
- this.setDestinationItem([currentPanoDestinations[0], 0])
|
|
|
|
|
|
+ this.setDestinationItem([currentPanoDestinations[0], 1])
|
|
} else {
|
|
} else {
|
|
var item
|
|
var item
|
|
if(e == 1){
|
|
if(e == 1){
|