[web-src] url/http streams with known length are pausable

This commit is contained in:
whatdoineed2do/Ray 2019-05-11 17:17:50 +01:00
parent 37ce8dd607
commit fb32eca430

View File

@ -18,7 +18,10 @@ export default {
}, },
is_pause_allowed () { 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')
)
} }
}, },