fix a handful of scheduling edge cases (#814)

This commit is contained in:
Jason Dove
2022-05-18 06:00:58 -05:00
committed by GitHub
parent ea0d43cf99
commit a61c4b3472
11 changed files with 416 additions and 6 deletions
@@ -27,6 +27,12 @@ public class PlayoutModeSchedulerOne : PlayoutModeSchedulerBase<ProgramScheduleI
playoutBuilderState,
scheduleItem);
if (itemStartTime >= hardStop)
{
playoutBuilderState = playoutBuilderState with { CurrentTime = hardStop };
break;
}
TimeSpan itemDuration = DurationForMediaItem(mediaItem);
List<MediaChapter> itemChapters = ChaptersForMediaItem(mediaItem);