12 lines
429 B
C#
12 lines
429 B
C#
|
|
namespace FileShare_Services.Services.FileLibrary
|
||
|
|
{
|
||
|
|
public interface IVideoThumbnailService
|
||
|
|
{
|
||
|
|
Task<GeneratedThumbnail?> GenerateThumbnailAsync(int libraryRootId, string videoPath, CancellationToken ct = default);
|
||
|
|
string GetAbsolutePath(string relativePath);
|
||
|
|
double? GetVideoDuration(string videoPath);
|
||
|
|
}
|
||
|
|
|
||
|
|
public sealed record GeneratedThumbnail(string RelativePath, string ContentType);
|
||
|
|
}
|