2014-06-11 07:42:03 -07:00
|
|
|
|
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
|
|
|
|
|
{
|
2014-06-11 07:42:03 -07:00
|
|
|
|
Task<Stream> ConvertSubtitles(
|
|
|
|
|
Stream stream,
|
2014-06-10 10:36:06 -07:00
|
|
|
|
string inputFormat,
|
|
|
|
|
string outputFormat,
|
|
|
|
|
CancellationToken cancellationToken);
|
2014-06-11 07:42:03 -07:00
|
|
|
|
|
|
|
|
|
Task<Stream> GetSubtitles(string itemId,
|
|
|
|
|
string mediaSourceId,
|
|
|
|
|
int subtitleStreamIndex,
|
|
|
|
|
string outputFormat,
|
|
|
|
|
CancellationToken cancellationToken);
|
2014-06-10 10:36:06 -07:00
|
|
|
|
}
|
|
|
|
|
}
|