Don't allow track playing start if it's not current track

partially fixes #1213
This commit is contained in:
JuniorJPDJ 2021-06-24 03:07:46 +02:00 committed by Georg Krause
parent 63a6fdceff
commit f1f6a77d14
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Partially fixed playing two tracks at same time (#1213)

View File

@ -384,6 +384,10 @@ export default {
}) })
}, },
onplay: function () { onplay: function () {
if (this != self.currentSound) {
this.stop()
return
}
self.$store.commit('player/isLoadingAudio', false) self.$store.commit('player/isLoadingAudio', false)
self.$store.commit('player/resetErrorCount') self.$store.commit('player/resetErrorCount')
self.$store.commit('player/errored', false) self.$store.commit('player/errored', false)