diff --git a/src/frontend/components/output/layers/BackgroundMedia.svelte b/src/frontend/components/output/layers/BackgroundMedia.svelte index 74788e59..3c60ad56 100644 --- a/src/frontend/components/output/layers/BackgroundMedia.svelte +++ b/src/frontend/components/output/layers/BackgroundMedia.svelte @@ -59,7 +59,13 @@ $: if (mirror && $videosData[outputId]?.paused) videoData.paused = true $: if (mirror && $videosData[outputId]?.paused === false) videoData.paused = false - $: if (mirror && $videosTime[outputId]) videoTime = $videosTime[outputId] + $: if (mirror && $videosTime[outputId]) { + const diff = Math.abs($videosTime[outputId] - videoTime) + if (diff > 0.5) { + videoTime = $videosTime[outputId] + videoData.paused = $videosData[outputId]?.paused + } + } $: if (!mirror && !fadingOut) send(OUTPUT, ["MAIN_DATA"], { [outputId]: videoData }) $: if (!mirror && !fadingOut) sendVideoTime(videoTime)