Implement background clip functionality for bumpers
ci / build-backend (push) Successful in 2m14s
ci / build-frontend (push) Successful in 49s
ci / tests (push) Successful in 2m7s
ci / sonar (push) Successful in 7m39s

Enhanced the bumper system to support a new background type, 'Clip', allowing text to be overlaid on existing video clips. This update includes the addition of a BackgroundClipShowId property in various records and classes, ensuring that the clip's duration dictates the bumper length. Updated validation rules, mapping, and rendering logic to accommodate this new feature. Localization strings were also updated to reflect the new background option and its implications for audio handling.
This commit is contained in:
Leonid Pershin
2026-07-29 23:54:11 +03:00
parent 35cb4b09dc
commit 6be373476c
26 changed files with 1798 additions and 24 deletions
@@ -26,13 +26,15 @@ public class BumperPreviewTests
AppDbContext db,
IBumperRenderer? renderer = null,
IBumperTemplateStorage? storage = null,
IImageStore? imageStore = null
IImageStore? imageStore = null,
IMediaStorage? mediaStorage = null
) =>
new(
db,
renderer ?? Substitute.For<IBumperRenderer>(),
storage ?? Substitute.For<IBumperTemplateStorage>(),
imageStore ?? Substitute.For<IImageStore>(),
mediaStorage ?? Substitute.For<IMediaStorage>(),
Options.Create(new BumperOptions()),
Options.Create(new StreamingOptions { SegmentSeconds = 5 })
);
@@ -27,12 +27,14 @@ public class BumperSpecLoaderTests
private static BumperSpecLoader NewLoader(
Infrastructure.Persistence.AppDbContext db,
IBumperTemplateStorage? storage = null,
IImageStore? images = null
IImageStore? images = null,
IMediaStorage? media = null
) =>
new(
db,
storage ?? Substitute.For<IBumperTemplateStorage>(),
images ?? Substitute.For<IImageStore>(),
media ?? Substitute.For<IMediaStorage>(),
Options.Create(new BumperOptions()),
Options.Create(new StreamingOptions { SegmentSeconds = 5 })
);