I have used this coding in viewDidLoad
Method:-
NSURL *fileURL = [NSURL URLWithString:@"https://www.youtube.com/watch?v=R4-YdC5N6Lo"];
moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:CGRectMake(10, 100, self.view.frame.size.width-20, 260)];
[self.view addSubview:moviePlayerController.view];
moviePlayerController.fullscreen = YES;
[moviePlayerController play];
When I run the app, then a black screen show but not play video. I want to play video from url. Can anybody help me.