Latest 0.4.1
Homepage https://github.com/siuying/IGYouTubeExtractor
License MIT
Platforms ios 7.0, osx 10.9, requires ARC
Frameworks AVFoundation
Authors ,

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.

Requirements

  • iOS 7 (uses NSURLSession)
  • ARC

Installation

CocoaPods

pod “IGYouTubeExtractor”

then

$ pod install

Submodule / manually

  1. Add IGYouTubeExtractor.h and IGYouTubeExtractor.m to your project
  2. @import AVFoundation;

Usage

[[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.

Demo project

See demo project for an example of how to use the extractor.

Credit

Developed by Rune Madsen (@runmad and runmad.com).

Credit to Cédric Luthi for his work on extraction code.

Feedback

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.

License

IGYouTubeExtractor is available under the MIT license. See the LICENSE file for more information.

Latest podspec

{
    "name": "IGYouTubeExtractor",
    "version": "0.4.1",
    "summary": "IGYouTubeExtractor provides an easy way to obtain MP4 URLs and metadata for your iOS apps by providing a YouTube video identifier.",
    "homepage": "https://github.com/siuying/IGYouTubeExtractor",
    "authors": {
        "Francis Chong": "[email protected]",
        "Rune Madsen": "[email protected]"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source": {
        "git": "https://github.com/siuying/IGYouTubeExtractor.git",
        "tag": "0.4.1"
    },
    "platforms": {
        "ios": "7.0",
        "osx": "10.9"
    },
    "source_files": "IGYouTubeExtractor",
    "frameworks": "AVFoundation",
    "requires_arc": true
}

Pin It on Pinterest

Share This