Properly handle redundant MediaSession play/pause requests
MediaSession pause requests may happen even when Funkwhale is already in a paused state. Previously FW would flip between play/pause without consideration for the current state instead of doing nothing when the playback state matches the requested one. Notably, this made Funkwhale resume audio playback when entering sleep mode on my system.
Showing
- front/src/components/Queue.vue 4 additions, 3 deletionsfront/src/components/Queue.vue
- front/src/components/audio/Player.vue 8 additions, 6 deletionsfront/src/components/audio/Player.vue
- front/src/store/player.js 14 additions, 1 deletionfront/src/store/player.js
- front/tests/unit/specs/store/player.spec.js 21 additions, 4 deletionsfront/tests/unit/specs/store/player.spec.js
Loading
Please register or sign in to comment