timeout playout builds after 2 minutes (#1269)
* add cancellation token support to playout builds and collection enumerators * fix playout bug with shuffle in order * update changelog
This commit is contained in:
+2
-1
@@ -7,5 +7,6 @@ public interface IMultiEpisodeShuffleCollectionEnumeratorFactory
|
||||
IMediaCollectionEnumerator Create(
|
||||
string jsScriptPath,
|
||||
IList<MediaItem> mediaItems,
|
||||
CollectionEnumeratorState state);
|
||||
CollectionEnumeratorState state,
|
||||
CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ namespace ErsatzTV.Core.Interfaces.Scheduling;
|
||||
|
||||
public interface IPlayoutBuilder
|
||||
{
|
||||
Task<Playout> Build(Playout playout, PlayoutBuildMode mode);
|
||||
Task<Playout> Build(Playout playout, PlayoutBuildMode mode, CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
@@ -10,5 +10,6 @@ public interface IPlayoutModeScheduler<in T> where T : ProgramScheduleItem
|
||||
Dictionary<CollectionKey, IMediaCollectionEnumerator> collectionEnumerators,
|
||||
T scheduleItem,
|
||||
ProgramScheduleItem nextScheduleItem,
|
||||
DateTimeOffset hardStop);
|
||||
DateTimeOffset hardStop,
|
||||
CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user