2021-05-06 15:39:20 -07:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 12:56:24 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-10-18 04:52:32 -07:00
|
|
|
using System.IO;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2022-02-06 06:02:01 -07:00
|
|
|
using MediaBrowser.Model.Dto;
|
2019-10-18 04:52:32 -07:00
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
{
|
|
|
|
public interface IAttachmentExtractor
|
|
|
|
{
|
2021-12-24 14:18:24 -07:00
|
|
|
Task<(MediaAttachment Attachment, Stream Stream)> GetAttachment(
|
2019-12-26 15:09:00 -07:00
|
|
|
BaseItem item,
|
2019-10-18 04:52:32 -07:00
|
|
|
string mediaSourceId,
|
|
|
|
int attachmentStreamIndex,
|
|
|
|
CancellationToken cancellationToken);
|
2022-02-06 06:02:01 -07:00
|
|
|
Task ExtractAllAttachments(
|
|
|
|
string inputFile,
|
|
|
|
MediaSourceInfo mediaSource,
|
|
|
|
string outputPath,
|
|
|
|
CancellationToken cancellationToken);
|
2019-10-18 04:52:32 -07:00
|
|
|
}
|
|
|
|
}
|