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
- Host: GitHub
- URL: https://github.com/rs/sdsrtparser
- Owner: rs
- License: mit
- Created: 2013-10-19T09:59:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-20T05:52:23.000Z (over 12 years ago)
- Last Synced: 2025-04-15T14:13:30.444Z (about 1 year ago)
- Language: Objective-C
- Size: 176 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
}
```