diff --git a/components/PlayerControl.vue b/components/PlayerControl.vue index 2e23aae9..d59ce3ff 100644 --- a/components/PlayerControl.vue +++ b/components/PlayerControl.vue @@ -268,7 +268,7 @@ watch([configID], () => { }) function timeRemaining() { - let remaining = playlistStore.currentClipOut - playlistStore.currentClipIn - playlistStore.playedSec + let remaining = playlistStore.currentClipOut - playlistStore.playedSec if (remaining < 0) { remaining = 0 diff --git a/stores/playlist.ts b/stores/playlist.ts index 2875cd45..e3c6c371 100644 --- a/stores/playlist.ts +++ b/stores/playlist.ts @@ -84,7 +84,7 @@ export const usePlaylist = defineStore('playlist', { this.playedSec = item.played this.ingestRuns = item.ingest - this.progressValue = (this.playedSec * 100) / this.currentClipOut- this.currentClipIn + this.progressValue = (this.playedSec * 100) / this.currentClipOut }, }, })