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 end time ticks.
/// The cancellation token.
/// Task{Stream}.
Task ConvertSubtitles(
Stream stream,
string inputFormat,
string outputFormat,
long startTimeTicks,
long? endTimeTicks,
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 end time ticks.
/// The cancellation token.
/// Task{Stream}.
Task GetSubtitles(string itemId,
string mediaSourceId,
int subtitleStreamIndex,
string outputFormat,
long startTimeTicks,
long? endTimeTicks,
CancellationToken cancellationToken);
///
/// Gets the subtitle language encoding parameter.
///
/// The path.
/// System.String.
string GetSubtitleFileCharacterSet(string path);
}
}