From 55bd39a52fbe13e14d5b3190a0b75a46142dc339 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 18 Apr 2024 14:50:17 +0200 Subject: [PATCH] reset progress when nothing is running --- components/PlayerControl.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PlayerControl.vue b/components/PlayerControl.vue index 76ab3f8f..f2ce42c7 100644 --- a/components/PlayerControl.vue +++ b/components/PlayerControl.vue @@ -242,7 +242,7 @@ async function status() { playlistStore.remainingSec = playlistStore.currentClipStart + playlistStore.currentClipOut - timeInSec const playedSec = playlistStore.currentClipOut - playlistStore.remainingSec - if (playlistStore.currentClipOut === 0) { + if (playlistStore.currentClipOut === 0 || !playlistStore.playoutIsRunning) { playlistStore.progressValue = 0 } else { playlistStore.progressValue = (playedSec * 100) / playlistStore.currentClipOut