2021-05-06 18:39:20 -04:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 15:56:24 -04:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-10-18 07:52:32 -04: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
|
|
|
|
{
|
2021-12-24 16:18:24 -05:00
|
|
|
Task<(MediaAttachment Attachment, Stream Stream)> GetAttachment(
|
2019-12-26 17:09:00 -05:00
|
|
|
BaseItem item,
|
2019-10-18 07:52:32 -04:00
|
|
|
string mediaSourceId,
|
|
|
|
int attachmentStreamIndex,
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|