TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Sean McNeil.
Hellcat will take a URL for a video and return an array of UIImages that it extracts from each frame.
– Tracks the progress of each video being processed via progress callback – Returns an array of UIImage once complete – Will return an error that complies with the HellcatError if something goes wrong
To run the example project, clone the repo, and run pod install
from the Example directory first.
The following snippet will send the URL for a video to Hellcat for processing:
let hellcat = Hellcat()
hellcat.imageFrames(for: url, progress: { (progress) in
// Display progress
}, success: { (images) in
// Handle images
}) { (error) in
// Handle error
}
Hellcat is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Hellcat"
Hellcat provides a relatively rich set of errors via an enum that should address all potential failures within the app. These are:
public enum HellcatError: Error {
case FailureToObtainAssetTrack
case FailureToCreateAssetReader(Error)
case FailureToObtainImage
}
Changelog | See the changes introduced in each version.
The use of a sample video in the example app is in the public domain.
seanmcneil, [email protected]
Hellcat is available under the MIT license. See the LICENSE file for more info.