automatically refresh graphics elements (#2309)
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user