add text graphics element to playback troubleshooting (#2282)

* refactor graphics engine; async frame generation

* add text graphics element to playback troubleshooting
This commit is contained in:
Jason Dove
2025-08-08 19:18:15 +00:00
committed by GitHub
parent 9f3db05c17
commit 76a589b538
44 changed files with 13408 additions and 220 deletions
@@ -29,6 +29,8 @@ public class TroubleshootController(
[FromQuery]
List<int> watermark,
[FromQuery]
List<int> graphicsElement,
[FromQuery]
int? subtitleId,
[FromQuery]
bool startFromBeginning,
@@ -37,7 +39,7 @@ public class TroubleshootController(
try
{
Either<BaseError, PlayoutItemResult> result = await mediator.Send(
new PrepareTroubleshootingPlayback(mediaItem, ffmpegProfile, watermark, subtitleId, startFromBeginning),
new PrepareTroubleshootingPlayback(mediaItem, ffmpegProfile, watermark, graphicsElement, subtitleId, startFromBeginning),
cancellationToken);
if (result.IsLeft)
@@ -115,11 +117,13 @@ public class TroubleshootController(
[FromQuery]
List<int> watermark,
[FromQuery]
List<int> graphicsElement,
[FromQuery]
bool startFromBeginning,
CancellationToken cancellationToken)
{
Option<string> maybeArchivePath = await mediator.Send(
new ArchiveTroubleshootingResults(mediaItem, ffmpegProfile, watermark, startFromBeginning),
new ArchiveTroubleshootingResults(mediaItem, ffmpegProfile, watermark, graphicsElement, startFromBeginning),
cancellationToken);
foreach (string archivePath in maybeArchivePath)