This commit is contained in:
parent
ec9c9858f6
commit
8248073a4d
@ -65,9 +65,12 @@ export default {
|
|||||||
this.audio.play();
|
this.audio.play();
|
||||||
},
|
},
|
||||||
pause() {
|
pause() {
|
||||||
if (!this.audio.paused) {
|
this.audio.pause();
|
||||||
this.audio.pause();
|
|
||||||
}
|
window.clearInterval(this.intervalProgress);
|
||||||
|
window.clearInterval(this.intervalHistory);
|
||||||
|
|
||||||
|
this.progress = this.audio.currentTime;
|
||||||
},
|
},
|
||||||
durationChanged() {
|
durationChanged() {
|
||||||
this.duration = this.audio.duration;
|
this.duration = this.audio.duration;
|
||||||
@ -180,7 +183,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.audio.paused) {
|
if (!this.audio.paused) {
|
||||||
this.audio.pause();
|
this.pause();
|
||||||
} else if (this.audio.src != "") {
|
} else if (this.audio.src != "") {
|
||||||
this.audio.play();
|
this.audio.play();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user