C# Class SubtitlesParser.Classes.Parsers.SrtParser

Parser for the .srt subtitles files A .srt file looks like: 1 00:00:10,500 --> 00:00:13,000 Elephant's Dream 2 00:00:15,000 --> 00:00:18,000 At the left we can see...[12]
Inheritance: ISubtitlesParser
Afficher le fichier Open project: AlexPoint/SubtitlesParser Class Usage Examples

Méthodes publiques

Méthode Description
ParseStream ( Stream srtStream, Encoding encoding ) : List
SrtParser ( ) : System

Private Methods

Méthode Description
GetSrtSubTitleParts ( TextReader reader ) : IEnumerable

Enumerates the subtitle parts in a srt file based on the standard line break observed between them. A srt subtitle part is in the form: 1 00:00:20,000 --> 00:00:24,400 Altocumulus clouds occur between six thousand

ParseSrtTimecode ( string s ) : int

Takes an SRT timecode as a string and parses it into a double (in seconds). A SRT timecode reads as follows: 00:00:20,000

TryParseTimecodeLine ( string line, int &startTc, int &endTc ) : bool

Method Details

ParseStream() public méthode

public ParseStream ( Stream srtStream, Encoding encoding ) : List
srtStream Stream
encoding System.Text.Encoding
Résultat List

SrtParser() public méthode

public SrtParser ( ) : System
Résultat System