mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 22:29:17 +02:00
Removed autoplay on page reload
This commit is contained in:
parent
d3ff0f0256
commit
a2c42996a1
3 changed files with 6 additions and 19 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue