2015-03-31 16:24:16 +00:00
|
|
|
|
using MediaBrowser.Model.MediaInfo;
|
|
|
|
|
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 19:31:33 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the subtitles.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>Task{Stream}.</returns>
|
|
|
|
|
Task<Stream> GetSubtitles(string itemId,
|
2014-06-11 14:42:03 +00:00
|
|
|
|
string mediaSourceId,
|
|
|
|
|
int subtitleStreamIndex,
|
|
|
|
|
string outputFormat,
|
2014-06-11 19:31:33 +00:00
|
|
|
|
long startTimeTicks,
|
2014-08-05 23:59:24 +00:00
|
|
|
|
long? endTimeTicks,
|
2016-05-27 17:17:57 +00:00
|
|
|
|
bool preserveOriginalTimestamps,
|
2014-06-11 14:42:03 +00:00
|
|
|
|
CancellationToken cancellationToken);
|
2014-06-11 19:31:33 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the subtitle language encoding parameter.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
2015-03-31 16:24:16 +00:00
|
|
|
|
/// <param name="protocol">The protocol.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2014-06-11 19:31:33 +00:00
|
|
|
|
/// <returns>System.String.</returns>
|
2016-04-03 01:19:27 +00:00
|
|
|
|
Task<string> GetSubtitleFileCharacterSet(string path, string language, MediaProtocol protocol, CancellationToken cancellationToken);
|
2014-06-10 17:36:06 +00:00
|
|
|
|
}
|
|
|
|
|
}
|