Possible Duplicate:
Play YouTube videos with MPMoviePlayerController instead of UIWebView
I use this code
-(void)viewDidLoad
{
[super viewDidLoad];
NSString *movieURL = @"http://www.youtube.com/watch?v=hH4sHqDEjSg";
MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:movieURL]];
moviePlayer.moviePlayer.shouldAutoplay = YES;
[self presentMoviePlayerViewControllerAnimated:moviePlayer];
[moviePlayer release];
}
But It didn't work. I suggest this likg is wrong ? or there's something I miss.
So Could you help me or Guide me please : )