An open API service indexing awesome lists of open source software.

https://github.com/rs/sdsrtparser

Objective-C SRT subtitle parser
https://github.com/rs/sdsrtparser

Last synced: about 1 year ago
JSON representation

Objective-C SRT subtitle parser

Awesome Lists containing this project

README

          

SDSRTParser
===========

SDSRTParser is an easy to use Objective-C SRT subtitle parser.

Sample usage example:

```objective-c
SDSRTParser *parser = [[SDSRTParser alloc] init];
[parser loadFromString:@"1\n00:00:12,345 --> 00:00:34,567\nfoo\nbar\n\n..."];

for (SDSubtitle *subtitle in parser.subtitles)
{
subtitle.index;
subtitle.startTime;
subtitle.endTime
subtitle.content;
}
```