using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.MediaEncoding
{
public interface ISubtitleEncoder
{
///
/// Converts the subtitles.
///
/// The stream.
/// The input format.
/// The output format.
/// The start time ticks.
/// The cancellation token.
/// Task{Stream}.
Task ConvertSubtitles(
Stream stream,
string inputFormat,
string outputFormat,
long startTimeTicks,
CancellationToken cancellationToken);
///
/// Gets the subtitles.
///
/// The item identifier.
/// The media source identifier.
/// Index of the subtitle stream.
/// The output format.
/// The start time ticks.
/// The cancellation token.
/// Task{Stream}.
Task GetSubtitles(string itemId,
string mediaSourceId,
int subtitleStreamIndex,
string outputFormat,
long startTimeTicks,
CancellationToken cancellationToken);
///
/// Gets the subtitle language encoding parameter.
///
/// The path.
/// The language.
/// System.String.
string GetSubtitleFileCharacterSet(string path, string language);
}
}