From fb32eca43094029fbde0d53a1f045cb336f6883c Mon Sep 17 00:00:00 2001 From: whatdoineed2do/Ray Date: Sat, 11 May 2019 17:17:50 +0100 Subject: [PATCH] [web-src] url/http streams with known length are pausable --- web-src/src/components/PlayerButtonPlayPause.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web-src/src/components/PlayerButtonPlayPause.vue b/web-src/src/components/PlayerButtonPlayPause.vue index 7b6ecb3a..5b95a5b8 100644 --- a/web-src/src/components/PlayerButtonPlayPause.vue +++ b/web-src/src/components/PlayerButtonPlayPause.vue @@ -18,7 +18,10 @@ export default { }, is_pause_allowed () { - return this.$store.getters.now_playing && this.$store.getters.now_playing.data_kind !== 'url' && this.$store.getters.now_playing.data_kind !== 'pipe' + return this.$store.getters.now_playing && + (this.$store.getters.now_playing.data_kind === 'file' || + ((this.$store.getters.now_playing.data_kind === 'url' && this.$store.state.player.item_length_ms !== 0) && this.$store.getters.now_playing.data_kind !== 'pipe') + ) } },