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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user