Enhance configuration and routing for streaming features: update .env.example and appsettings.json to include new scheduler and streaming options, add streaming endpoint mapping in Program.cs, and integrate streaming services in DependencyInjection. Introduce segment path resolution in MediaPathResolver for asset management.

This commit is contained in:
Leonid Pershin
2026-07-24 16:07:37 +03:00
parent 4fa9dae37f
commit 1bbfd15907
18 changed files with 686 additions and 0 deletions
@@ -0,0 +1,12 @@
namespace TeleWave.Application.Streaming;
/// <summary>Параметры раздачи эфира. Биндится к секции «Storage» (общая с обработкой медиа).</summary>
public sealed class StreamingOptions
{
public const string SectionName = "Storage";
public int SegmentSeconds { get; init; } = 2;
/// <summary>Сколько сегментов держать в скользящем окне live-плейлиста.</summary>
public int LiveWindowSegments { get; init; } = 10;
}