Fixed some player issues
This commit is contained in:
parent
bfe28cc12e
commit
70cbe73fc0
|
@ -379,7 +379,7 @@ export default {
|
||||||
},
|
},
|
||||||
onunlock: function () {
|
onunlock: function () {
|
||||||
if (this.$store.state.player.playing) {
|
if (this.$store.state.player.playing) {
|
||||||
self.soundId = self.sound.play()
|
self.soundId = self.sound.play(self.soundId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onload: function () {
|
onload: function () {
|
||||||
|
@ -518,7 +518,8 @@ export default {
|
||||||
let onlyTrack = this.$store.state.queue.tracks.length === 1
|
let onlyTrack = this.$store.state.queue.tracks.length === 1
|
||||||
if (this.looping === 1 || (onlyTrack && this.looping === 2)) {
|
if (this.looping === 1 || (onlyTrack && this.looping === 2)) {
|
||||||
this.currentSound.seek(0)
|
this.currentSound.seek(0)
|
||||||
this.soundId = this.currentSound.play()
|
this.$store.dispatch('player/updateProgress', 0)
|
||||||
|
this.soundId = this.currentSound.play(this.soundId)
|
||||||
} else {
|
} else {
|
||||||
this.$store.dispatch('player/trackEnded', this.currentTrack)
|
this.$store.dispatch('player/trackEnded', this.currentTrack)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue