using MediaBrowser.Model.MediaInfo;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;
namespace MediaBrowser.Controller.MediaEncoding
{
public interface ISubtitleEncoder
{
///
/// Gets the subtitles.
///
/// Task{Stream}.
Task GetSubtitles(BaseItem item,
string mediaSourceId,
int subtitleStreamIndex,
string outputFormat,
long startTimeTicks,
long endTimeTicks,
bool preserveOriginalTimestamps,
CancellationToken cancellationToken);
///
/// Gets the subtitle language encoding parameter.
///
/// The path.
/// The protocol.
/// The cancellation token.
/// System.String.
Task GetSubtitleFileCharacterSet(string path, string language, MediaProtocol protocol, CancellationToken cancellationToken);
}
}