2020-08-04 14:20:52 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:02:23 +00:00
|
|
|
using System.IO;
|
2018-12-14 09:40:55 +00:00
|
|
|
using MediaBrowser.Model.MediaInfo;
|
|
|
|
|
|
|
|
namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
{
|
|
|
|
public interface ISubtitleParser
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Parses the specified stream.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="stream">The stream.</param>
|
2022-08-01 18:25:42 +00:00
|
|
|
/// <param name="fileExtension">The file extension.</param>
|
2018-12-14 09:40:55 +00:00
|
|
|
/// <returns>SubtitleTrackInfo.</returns>
|
2022-08-01 18:25:42 +00:00
|
|
|
SubtitleTrackInfo Parse(Stream stream, string fileExtension);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Determines whether the file extension is supported by the parser.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="fileExtension">The file extension.</param>
|
|
|
|
/// <returns>A value indicating whether the file extension is supported.</returns>
|
|
|
|
bool SupportsFileExtension(string fileExtension);
|
2018-12-14 09:40:55 +00:00
|
|
|
}
|
|
|
|
}
|