Skip to content
Snippets Groups Projects
Verified Commit 70cbe73f authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed some player issues

parent bfe28cc1
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,7 @@ export default {
},
onunlock: function () {
if (this.$store.state.player.playing) {
self.soundId = self.sound.play()
self.soundId = self.sound.play(self.soundId)
}
},
onload: function () {
......@@ -518,7 +518,8 @@ export default {
let onlyTrack = this.$store.state.queue.tracks.length === 1
if (this.looping === 1 || (onlyTrack && this.looping === 2)) {
this.currentSound.seek(0)
this.soundId = this.currentSound.play()
this.$store.dispatch('player/updateProgress', 0)
this.soundId = this.currentSound.play(this.soundId)
} else {
this.$store.dispatch('player/trackEnded', this.currentTrack)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment