diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-01-08 11:04:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-08 11:04:21 +0900 |
| commit | 423d50e9785e6c97b566059abcb51e7d6e3d99f0 (patch) | |
| tree | 7d671066170ba6632dc38aa11cfe98ae5514dcb1 /MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs | |
| parent | 534716d9c90fd0691dcbe3ec5a3fdf8ac265cbb1 (diff) | |
| parent | 73fac50e57982ac46aea2b487e9906826c3dc3b2 (diff) | |
Merge pull request #1838 from Unhelpful/media-attachments
Add support for embedded attachments in media files
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs b/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs new file mode 100644 index 000000000..7c7e84de6 --- /dev/null +++ b/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs @@ -0,0 +1,17 @@ +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 + { + Task<(MediaAttachment attachment, Stream stream)> GetAttachment( + BaseItem item, + string mediaSourceId, + int attachmentStreamIndex, + CancellationToken cancellationToken); + } +} |
