|
@@ -89,6 +89,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+
|
|
|
onceClickMusic() {
|
|
|
this.$refs.RbottomRef.opMusic(true);
|
|
|
setTimeout(() => {
|
|
@@ -97,9 +98,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
async stopPlay(val) {
|
|
|
+ if (!val && this.playing) this.$refs.RbottomRef.leftCut(-1);
|
|
|
let player = await this.kankan.TourManager.player;
|
|
|
player.pause();
|
|
|
- if (!val) this.$refs.RbottomRef.leftCut(-1);
|
|
|
|
|
|
this.progress = 0;
|
|
|
},
|
|
@@ -196,6 +197,35 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 有关球幕视频控制背景音乐
|
|
|
+ kankan.Scene.on("panorama.videorenderer.startvideo", () => {
|
|
|
+ // 点击热点的时候当前背景音乐的播放状态
|
|
|
+ let dom = document.querySelector("#bacMusic");
|
|
|
+ window.bacMusic = !dom.paused;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.RbottomRef.opMusic(false);
|
|
|
+ }, 200);
|
|
|
+ // 暂停背景音乐
|
|
|
+ });
|
|
|
+ kankan.Scene.on("panorama.videorenderer.resumerender", () => {
|
|
|
+
|
|
|
+ // 点击热点的时候当前背景音乐的播放状态
|
|
|
+ let dom = document.querySelector("#bacMusic");
|
|
|
+ window.bacMusic = !dom.paused;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.RbottomRef.opMusic(false);
|
|
|
+ }, 200);
|
|
|
+ // 暂停背景音乐
|
|
|
+ });
|
|
|
+ kankan.Scene.on("panorama.videorenderer.suspendrender", () => {
|
|
|
+ if (window.bacMusic) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.RbottomRef.opMusic(true);
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ // 恢复背景音乐
|
|
|
+ });
|
|
|
+
|
|
|
// 导览数据
|
|
|
kankan.TourManager.on("loaded", (tours) => {
|
|
|
this.$refs.RbottomRef.baseSw(tours);
|