TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Francis Chong.
IGYouTubeExtractor is a fork of RMYouTubeExtractor that extract MP4 URLs and metadata from a YouTube video identifier.
This library borrows code from XCDYouTubeVideoPlayerViewController by Cédric Luthi - sans the MPMoviePlayerController, allowing you to just extract the URLs and roll your own player.
IGYouTubeExtractor.h
and IGYouTubeExtractor.m
to your project@import AVFoundation;
[[IGYouTubeExtractor sharedInstance] extractVideoForIdentifier:youtubeID
completion:^(NSArray *videos, NSError *error) {
}];
The instance returns a dictionary with up to 4 video qualities: 240p, 360p, 720p and 1080p. 1080p is rare.
Don’t forget to check for empty dictionary / errors.
See demo project for an example of how to use the extractor.
Developed by Rune Madsen (@runmad and runmad.com).
Credit to Cédric Luthi for his work on extraction code.
I appreciate feedback. Create Github issues, pull requests or connect with me on Twitter.
I'd love to see and hear from you if you use it in a project.
IGYouTubeExtractor is available under the MIT license. See the LICENSE file for more information.