MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Youtube Video Parser iOS

edited June 2014 in iOS Devlopment

Hi everyone,
I am trying to parse youtube link and play on MPMoviePlayerViewController.

I am just following this link and I can parse successfully with their example youtube link.
https://github.com/hellozimi/HCYoutubeParser


However, the problem is that I can't parse other youtube URL like this

Is it because of video duration? I would like to know how to solve this.

Code

    // 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
                          thumbnailSize:YouTubeThumbnailDefaultHighQuality
                          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];
    }
    }];
Tagged:
Sign In or Register to comment.