Manage bounded UDP listeners directly in Yavsc.Api, expose secret SRT URLs in PostIt, and preserve quotas, revocation and replay. Update deployment and privacy documentation, remove relay configuration, and add real-media lifecycle regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
21 lines
1 KiB
C#
21 lines
1 KiB
C#
using Yavsc.Services;
|
|
|
|
namespace Yavsc.Api.Services;
|
|
|
|
public static class PodcastServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddPodcasts(this IServiceCollection services, IConfiguration configuration)
|
|
{
|
|
services.Configure<PodcastOptions>(configuration.GetSection("Podcast"));
|
|
services.Configure<PodcastObsOptions>(configuration.GetSection("Podcast:Obs"));
|
|
services.AddScoped<IPodcastObsService, PodcastObsService>();
|
|
services.AddSingleton<PodcastObsWorker>();
|
|
services.AddHostedService(provider => provider.GetRequiredService<PodcastObsWorker>());
|
|
services.AddSingleton<ILiveProcessor, LiveProcessor>();
|
|
services.AddScoped<IPodcastScheduleService, PodcastScheduleService>();
|
|
services.AddSingleton<IPodcastReplayRemuxer, FfmpegPodcastReplayRemuxer>();
|
|
services.AddHostedService<PodcastReplayWorker>();
|
|
services.AddOpenApi("podcasts", options => options.ShouldInclude = description => description.GroupName == "podcasts");
|
|
return services;
|
|
}
|
|
}
|