Removed autoplay on page reload

This commit is contained in:
Eliot Berriot 2018-02-17 17:30:21 +01:00
parent d3ff0f0256
commit a2c42996a1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 6 additions and 19 deletions

View file

@ -59,13 +59,15 @@ export default {
},
loaded: function () {
if (this.isCurrent && this.autoplay) {
if (this.isCurrent) {
this.$store.commit('player/duration', this.$refs.audio.duration)
if (this.startTime) {
this.setCurrentTime(this.startTime)
}
this.$store.commit('player/playing', true)
this.$refs.audio.play()
if (this.autoplay) {
this.$store.commit('player/playing', true)
this.$refs.audio.play()
}
}
},
updateProgress: function () {