Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ChurchApps/FreeShow into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
vassbo committed Jul 29, 2024
2 parents 426267c + a5216ed commit 52ee5fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/frontend/components/output/layers/BackgroundMedia.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 52ee5fb

Please sign in to comment.