mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 12:09:23 +02:00
Fix #970: short audio glitch when switching switching to another track with player paused
This commit is contained in:
parent
7c8b592f61
commit
0d3df8ab77
4 changed files with 7 additions and 12 deletions
|
@ -361,7 +361,7 @@ export default {
|
|||
self.ended()
|
||||
},
|
||||
onunlock: function () {
|
||||
if (self.$store.state.player.playing) {
|
||||
if (self.$store.state.player.playing && self.sound) {
|
||||
self.soundId = self.sound.play(self.soundId)
|
||||
}
|
||||
},
|
||||
|
@ -581,13 +581,11 @@ export default {
|
|||
}
|
||||
this.currentSound = this.getSound(trackData)
|
||||
this.$store.commit('player/isLoadingAudio', true)
|
||||
if (this.playing) {
|
||||
this.soundId = this.currentSound.play()
|
||||
this.$store.commit('player/errored', false)
|
||||
this.$store.commit('player/playing', true)
|
||||
this.$store.dispatch('player/updateProgress', 0)
|
||||
this.observeProgress(true)
|
||||
}
|
||||
this.soundId = this.currentSound.play()
|
||||
this.$store.commit('player/errored', false)
|
||||
this.$store.commit('player/playing', true)
|
||||
this.$store.dispatch('player/updateProgress', 0)
|
||||
this.observeProgress(true)
|
||||
}
|
||||
},
|
||||
toggleMobilePlayer () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue