Add TV bumpers functionality: introduce configuration options for bumpers in .env.example and appsettings.json, enhance ChannelEndpoints to manage jingles and bumper assets, and update Channel and ScheduleEntry models to support bumper logic. Implement validation for bumper settings and integrate bumper handling in scheduling logic.

This commit is contained in:
Leonid Pershin
2026-07-25 00:45:22 +03:00
parent 622bf1e440
commit 0cfc72166a
60 changed files with 5073 additions and 33 deletions
@@ -0,0 +1,31 @@
namespace TeleWave.Application.Common.Interfaces;
/// <summary>
/// Хранилище сырых файлов шаблона заставки канала (фон и музыка) под bumpers/{channelId}. В отличие
/// от обычных ассетов эти файлы НЕ режутся на HLS — они подаются как входы в рендер заставки.
/// </summary>
public interface IBumperTemplateStorage
{
Task SaveBackgroundAsync(
Guid channelId,
string extension,
Stream content,
CancellationToken cancellationToken
);
Task SaveMusicAsync(
Guid channelId,
string extension,
Stream content,
CancellationToken cancellationToken
);
void DeleteBackground(Guid channelId);
void DeleteMusic(Guid channelId);
/// <summary>Абсолютный путь к загруженному фону или null (нет расширения / файл отсутствует).</summary>
string? BackgroundPath(Guid channelId, string? extension);
/// <summary>Абсолютный путь к загруженной музыке или null.</summary>
string? MusicPath(Guid channelId, string? extension);
}