2020-08-04 07:20:52 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 13:02:23 -07:00
|
|
|
using System.IO;
|
2018-12-14 02:40:55 -07: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 11:25:42 -07:00
|
|
|
/// <param name="fileExtension">The file extension.</param>
|
2018-12-14 02:40:55 -07:00
|
|
|
/// <returns>SubtitleTrackInfo.</returns>
|
2022-08-01 11:25:42 -07: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 02:40:55 -07:00
|
|
|
}
|
|
|
|
}
|