diff --git a/web-src/src/pages/PageNowPlaying.vue b/web-src/src/pages/PageNowPlaying.vue index 49d4d53f..294ac65a 100644 --- a/web-src/src/pages/PageNowPlaying.vue +++ b/web-src/src/pages/PageNowPlaying.vue @@ -11,8 +11,8 @@ /> -
- - + + - - +{ this.$store.commit(types.UPDATE_PLAYER_STATUS, data) if (this.player.state === 'play') { - this.interval_id = window.setInterval(this.tick, 1000) + this.interval_id = window.setInterval(this.tick, INTERVAL) } }) }, @@ -173,11 +176,11 @@ export default { tick() { if (!this.is_dragged) { if (this.is_live) { - this.item_progress_ms += 1000 - } else if (this.item_progress_ms + 1000 > this.track.length_ms) { + this.item_progress_ms += INTERVAL + } else if (this.item_progress_ms + INTERVAL > this.track.length_ms) { this.item_progress_ms = this.track.length_ms } else { - this.item_progress_ms += 1000 + this.item_progress_ms += INTERVAL } } },