DWGNicoVideoExtractor 0.1.0

DWGNicoVideoExtractor 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by konomae.



  • By
  • konomae

DWGNicoVideoExtractor is a Nico Nico Douga (nicovideo.jp) video URL extractor for iOS.

Screenshot

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Runs on iOS 6.0 and later

Installation

Example

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];
}];

Restriction

  • Supports embedable videos only
  • Does not support iPhone simulator

TODO

  • Tests

License

DWGNicoVideoExtractor is available under the MIT license. See the LICENSE file for more info.