DWGNicoVideoExtractor is a Nico Nico Douga (nicovideo.jp) video URL extractor for iOS.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- Runs on iOS 6.0 and later
DWGNicoVideoExtractor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DWGNicoVideoExtractor"
NSString *videoID = @"sm23538930";
[DWGNicoVideoExtractor fetchVideoURLFromID:videoID completion:^(NSURL *videoURL, NSError *error) {
if (error) {
NSLog(@"%@", error);
return;
}
MPMoviePlayerViewController *vc = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
[vc.moviePlayer prepareToPlay];
[vc.moviePlayer play];
[self presentMoviePlayerViewControllerAnimated:vc];
}];
- Supports embedable videos only
- Does not support iPhone simulator
- Tests
DWGNicoVideoExtractor is available under the MIT license. See the LICENSE file for more info.