Set paused state when using media keys

This commit is contained in:
Agate 2020-07-31 17:24:45 +02:00
commit abcac3ffd0

View file

@ -395,6 +395,9 @@ export default {
self.$store.commit('player/duration', this.duration()) self.$store.commit('player/duration', this.duration())
}, },
onpause: function () {
self.$store.commit('player/playing', false)
},
onloaderror: function (sound, error) { onloaderror: function (sound, error) {
self.removeFromCache(this) self.removeFromCache(this)
if (this != self.currentSound) { if (this != self.currentSound) {