add stream selector to playback troubleshooting (#2474)

This commit is contained in:
Jason Dove
2025-10-01 11:10:38 -05:00
committed by GitHub
parent 077fed6cac
commit 18905a79dc
8 changed files with 120 additions and 42 deletions
@@ -34,6 +34,8 @@ public class TroubleshootController(
[FromQuery]
List<int> graphicsElement,
[FromQuery]
string streamSelector,
[FromQuery]
int? subtitleId,
[FromQuery]
int seekSeconds,
@@ -48,6 +50,7 @@ public class TroubleshootController(
streamingMode,
mediaItem,
ffmpegProfile,
streamSelector,
watermark,
graphicsElement,
subtitleId,
@@ -82,6 +85,7 @@ public class TroubleshootController(
await channelWriter.WriteAsync(
new StartTroubleshootingPlayback(
sessionId,
streamSelector,
playoutItemResult,
mediaInfo,
troubleshootingInfo),
@@ -141,7 +145,13 @@ public class TroubleshootController(
Option<int> ss = seekSeconds > 0 ? seekSeconds : Option<int>.None;
Option<string> maybeArchivePath = await mediator.Send(
new ArchiveTroubleshootingResults(mediaItem, ffmpegProfile, streamingMode, watermark, graphicsElement, ss),
new ArchiveTroubleshootingResults(
mediaItem,
ffmpegProfile,
streamingMode,
watermark,
graphicsElement,
ss),
cancellationToken);
foreach (string archivePath in maybeArchivePath)