Skip to content

konomae/DWGNicoVideoExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWGNicoVideoExtractor

CI Status Version License Platform

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

DWGNicoVideoExtractor is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DWGNicoVideoExtractor"

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.

About

Nico Nico Douga (nicovideo.jp) Video URL Extractor

Resources

License

Stars

Watchers

Forks

Packages

No packages published