reset progress when nothing is running

This commit is contained in:
jb-alvarado 2024-04-18 14:50:17 +02:00
parent b6b532033f
commit 55bd39a52f

View File

@ -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