jellyfin/MediaBrowser.Controller/MediaEncoding/ISubtitleEncoder.cs

22 lines
565 B
C#
Raw Normal View History

using System.IO;
2014-06-10 10:36:06 -07:00
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.MediaEncoding
{
public interface ISubtitleEncoder
{
Task<Stream> ConvertSubtitles(
Stream stream,
2014-06-10 10:36:06 -07:00
string inputFormat,
string outputFormat,
CancellationToken cancellationToken);
Task<Stream> GetSubtitles(string itemId,
string mediaSourceId,
int subtitleStreamIndex,
string outputFormat,
CancellationToken cancellationToken);
2014-06-10 10:36:06 -07:00
}
}