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