From 7d963e18fda82a34c267f674128a553ba66db997 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 20 Jan 2021 11:40:05 +0100 Subject: [PATCH] player: support toggle pause again --- src/store/player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/player.js b/src/store/player.js index f5d259a..418c95f 100644 --- a/src/store/player.js +++ b/src/store/player.js @@ -77,9 +77,11 @@ export default ({ if (state.isPlaying) { state.isPlaying = false state.isPaused = true + player.doPause() } else { state.isPlaying = true state.isPaused = false + player.doResume() } }, setTitle(state, title) { @@ -109,7 +111,7 @@ export default ({ context.commit('setBuffering', true) context.commit('setTitle', station.name) context.commit('setPausing', false) - player.doPlay(station.url_resolved) + player.doPlay(station.url_resolved || station.urlresolved) }, },