automatically refresh graphics elements (#2309)

This commit is contained in:
Jason Dove
2025-08-13 15:11:14 +00:00
committed by GitHub
parent d28d0a9805
commit c9e6e601c2
2 changed files with 4 additions and 0 deletions
@@ -1,6 +1,7 @@
using System.Threading.Channels;
using Bugsnag;
using ErsatzTV.Application.Channels;
using ErsatzTV.Application.Graphics;
using ErsatzTV.Application.Maintenance;
using ErsatzTV.Core;
using ErsatzTV.Core.Domain;
@@ -88,6 +89,8 @@ public class StartFFmpegSessionHandler : IRequestHandler<StartFFmpegSession, Eit
idleTimeout = Option<TimeSpan>.None;
}
await _mediator.Send(new RefreshGraphicsElements(), cancellationToken);
IHlsSessionWorker worker = GetSessionWorker(request, targetFramerate);
_ffmpegSegmenterService.AddOrUpdateWorker(request.ChannelNumber, worker);
@@ -179,6 +179,7 @@
_watermarks.Clear();
_watermarks.AddRange(await Mediator.Send(new GetAllWatermarks(), _cts.Token));
await Mediator.Send(new RefreshGraphicsElements(), _cts.Token);
_graphicsElements.Clear();
_graphicsElements.AddRange(await Mediator.Send(new GetAllGraphicsElements(), _cts.Token));