Skip to content

henrikhelmers/SwiftSubRip

Repository files navigation

SwiftSubRip 💬

Parser for the SubRip format written using RegexBuilder in modern Swift.

Convert

1
00:00:00,000 --> 00:00:04,000
In the twilight's gentle glow,

...

Using

let subtitles = Subtitles(from: <fileUrl>)

Get subtitle at given time

subtitles.subtitle(at: 2) // { from: 0.0, to: 4.0, text: "In the twilight's gentle glow," }

Get text at given time

subtitles.getText(at: 2) // "In the twilight's gentle glow,"

About

SubRip (srt) parser written in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages