mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
22 lines
565 B
C#
22 lines
565 B
C#
using System.IO;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.MediaEncoding
|
|
{
|
|
public interface ISubtitleEncoder
|
|
{
|
|
Task<Stream> ConvertSubtitles(
|
|
Stream stream,
|
|
string inputFormat,
|
|
string outputFormat,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<Stream> GetSubtitles(string itemId,
|
|
string mediaSourceId,
|
|
int subtitleStreamIndex,
|
|
string outputFormat,
|
|
CancellationToken cancellationToken);
|
|
}
|
|
}
|