Requirements
- Foundation.framework
- Trove.framework
- Reachability.h (included in the example project and found here)
Usage
NSString *sampleURL = @"http://foo.org/fooBar.mp4";
[[Trove sharedInstance] cacheAsset:[NSURL URLWithString:sampleURL]];
This method will return the locally stored file URL, if it is not in the cache directory, the original asset URL will be returned.
NSString *sampleURL = @"http://foo.org/fooBar.mp4";
[[Trove sharedInstance] assetURL:[NSURL URLWithString:sampleURL]];
Optional delegate methods
-(void)assetDownloadSuccessful:(NSURL*)assetPath;
-(void)assetDownloadFailed:(NSError*)error;