|
@@ -191,6 +191,7 @@ const hanlderTour = async () => {
|
|
|
player.on('play', (data) => {
|
|
|
progressNum.value = 0;
|
|
|
musicPlayer.pause(true);
|
|
|
+
|
|
|
// if (tours.value.length > 1) {
|
|
|
// let time = getPartTime(data.partId)
|
|
|
// hanlderTourPartPlay(time)
|
|
@@ -199,7 +200,8 @@ const hanlderTour = async () => {
|
|
|
player.on('pause', (tours) => {
|
|
|
// console.log('pause', player);
|
|
|
musicPlayer.resume();
|
|
|
-
|
|
|
+ currProgress = 0;
|
|
|
+ currFrameProgress = 0;
|
|
|
progressNum.value = 0;
|
|
|
cancelTimer();
|
|
|
store.commit('tour/setData', { isPlay: false });
|
|
@@ -207,6 +209,8 @@ const hanlderTour = async () => {
|
|
|
player.on('end', (tours) => {
|
|
|
musicPlayer.resume();
|
|
|
progressNum.value = 100;
|
|
|
+ currProgress = 0;
|
|
|
+ currFrameProgress = 0;
|
|
|
store.commit('tour/setData', { isPlay: false });
|
|
|
cancelTimer();
|
|
|
});
|
|
@@ -267,7 +271,7 @@ const hanlderTour = async () => {
|
|
|
}
|
|
|
// currProgress = data.progress / FrameLength;
|
|
|
|
|
|
- // console.log(currProgress);
|
|
|
+ // console.log(currFrameProgress);
|
|
|
|
|
|
if (currProgress >= 100) {
|
|
|
currProgress = 100;
|