I want to play Youtube video within my application with url.I tried the following code, but it doesn't work.
NSURL *url = [NSURL URLWithString:@"http://www.youtube.com/v/pGqraZN5U0k&"];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
if (moviePlayer)
{
[self.moviePlayer play];
}
Please help me.
Thanks in advance.