jellyfin-server/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs

28 lines
745 B
C#
Raw Normal View History

#nullable disable
#pragma warning disable CS1591
2019-10-18 11:52:32 +00:00
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Dto;
2019-10-18 11:52:32 +00:00
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.MediaEncoding
{
public interface IAttachmentExtractor
{
2021-12-24 21:18:24 +00:00
Task<(MediaAttachment Attachment, Stream Stream)> GetAttachment(
2019-12-26 22:09:00 +00:00
BaseItem item,
2019-10-18 11:52:32 +00:00
string mediaSourceId,
int attachmentStreamIndex,
CancellationToken cancellationToken);
Task ExtractAllAttachments(
string inputFile,
MediaSourceInfo mediaSource,
string outputPath,
CancellationToken cancellationToken);
2019-10-18 11:52:32 +00:00
}
}