Set paused state when using media keys
This commit is contained in:
parent
9231093dac
commit
abcac3ffd0
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue