using StreamShorts.Library.Analysis;
namespace StreamShorts.Library.Media.Video;
///
/// Represents a service that creates video shorts.
///
public interface IShortsCreator
{
///
/// Creates video shorts from the provided transcript analysis and video stream.
///
/// The transcript analysis.
/// The video stream.
/// An optional buffer duration to include before the start time and after the end time of each short.
/// An asynchronous enumerable of .
/// Thrown when is null.
/// Thrown when is null.
public IAsyncEnumerable CreateShortsAsync(TranscriptAnalysis analysis, Stream video, TimeSpan? buffer = null);
}