From 233944d066e19512709b3940695985e70ae88596 Mon Sep 17 00:00:00 2001 From: Simon Ziegler Date: Sun, 25 Feb 2024 03:50:34 +0100 Subject: [PATCH] seperated background-image into seperate media-layer and improved visibility function --- README.md | 2 +- casparcg-templates/JohnCG/Countdown.html | 6 - casparcg-templates/JohnCG/Song.html | 6 - client/main.css | 12 + config.json | 8 +- src/client/main.ts | 34 +- src/server/Sequence.ts | 342 ++++++++++----------- src/server/SequenceItems/CommandComment.ts | 16 +- src/server/SequenceItems/Countdown.ts | 25 +- src/server/SequenceItems/Image.ts | 2 + src/server/SequenceItems/SequenceItem.ts | 63 +++- src/server/SequenceItems/Song.ts | 35 ++- src/server/config.ts | 6 +- src/templates/Countdown.ts | 15 +- src/templates/Song.ts | 10 +- 15 files changed, 314 insertions(+), 268 deletions(-) diff --git a/README.md b/README.md index cf12df1..eef7cb6 100644 --- a/README.md +++ b/README.md @@ -30,4 +30,4 @@ Generate lyric-graphics and play them out through CasparCG. - command-comment: define commands / names which get loaded straigth from the start and can be shown anytime - song: transmit template in server->client message instead of hardcoding it into the client - fix "Buffer() is deprecated" -- cgplay after invisible: only foreground / send background as fast as possible dark \ No newline at end of file +- generate background-image-b64 only if needed \ No newline at end of file diff --git a/casparcg-templates/JohnCG/Countdown.html b/casparcg-templates/JohnCG/Countdown.html index 380b029..ddb3ab9 100644 --- a/casparcg-templates/JohnCG/Countdown.html +++ b/casparcg-templates/JohnCG/Countdown.html @@ -4,12 +4,6 @@ font-size: 0.125vw; } - * { - cursor: pointer; - - user-select: none; - } - body { margin: 0px; diff --git a/casparcg-templates/JohnCG/Song.html b/casparcg-templates/JohnCG/Song.html index 0dbdd59..ba0f7af 100644 --- a/casparcg-templates/JohnCG/Song.html +++ b/casparcg-templates/JohnCG/Song.html @@ -11,12 +11,6 @@ JohnCG - Song-template