From abcac3ffd08a2ab4e33f9c617cf209f07e663b17 Mon Sep 17 00:00:00 2001 From: Agate Date: Fri, 31 Jul 2020 17:24:45 +0200 Subject: [PATCH] Set paused state when using media keys --- front/src/components/audio/Player.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index c67e6e554..a5d127135 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -395,6 +395,9 @@ export default { self.$store.commit('player/duration', this.duration()) }, + onpause: function () { + self.$store.commit('player/playing', false) + }, onloaderror: function (sound, error) { self.removeFromCache(this) if (this != self.currentSound) {