2021-05-06 22:39:20 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 19:56:24 +00:00
|
|
|
#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.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
{
|
|
|
|
public interface IAttachmentExtractor
|
|
|
|
{
|
2019-12-26 22:09:00 +00:00
|
|
|
Task<(MediaAttachment attachment, Stream stream)> GetAttachment(
|
|
|
|
BaseItem item,
|
2019-10-18 11:52:32 +00:00
|
|
|
string mediaSourceId,
|
|
|
|
int attachmentStreamIndex,
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|