Skip to content
Fetches YouTube mp4 URLS for iOS and tvOS.
Branch: master
Clone or download
hellozimi Merge pull request #68 from bryant1410/master
Fix broken headings in Markdown files
Latest commit 7944fdb Apr 18, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
YoutubeParser.xcodeproj Added tvOS target Nov 4, 2015
YoutubeParser dispatch_semaphore_signal at the end of the block Dec 31, 2015
youtubeparser-tvos Added tvOS target Nov 4, 2015
.gitignore added ds_store to gitignore Oct 29, 2013
HCYoutubeParser.podspec Version bump Dec 31, 2015 Fix broken Markdown headings Apr 18, 2017

This project is not being maintained.


HCYoutubeParser is a class which lets you get the iOS compatible video url from YouTube so you don't need to use a UIWebView or open the YouTube Application.

It's really simple to get going

// Gets an dictionary with each available youtube url
NSDictionary *videos = [HCYoutubeParser h264videosWithYoutubeURL:[NSURL URLWithString:@""]];

// Presents a MoviePlayerController with the youtube quality medium
MPMoviePlayerViewController *mp = [[[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:[videos objectForKey:@"medium"]]] autorelease];
[self presentModalViewController:mp animated:YES];

// To get a thumbnail for an image there is now a async method for that
[HCYoutubeParser thumbnailForYoutubeURL:url
                          completeBlock:^(UIImage *image, NSError *error) {
    if (!error) {
        self.thumbailImageView.image = image;
    else {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[error localizedDescription] delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
        [alert show];

Warning: This is not approved by the ToC of YouTube. Use at own risk.

You can’t perform that action at this time.