I have tried the following code but this is not working. only a black screen is coming out as output.
NSURL *url_vdo=[[NSURL alloc] initWithString:@"url"];
moviePlayer=[[MPMoviePlayerController alloc] initWithContentURL:url_vdo];
[moviePlayer.view setFrame: self.view.bounds];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayer];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDonePressed:) name:MPMoviePlayerDidExitFullscreenNotification object:moviePlayer];
moviePlayer.controlStyle=MPMovieControlStyleFullscreen;
[moviePlayer play];
[moviePlayer setFullscreen:YES animated:YES];
[self.view addSubview:moviePlayer.view];