title: play video using url ios 6
body: <p>I am struggling to play a video which is a url of the video file on a server. I have a view in which I display url from the web service. When I click the url(contained in a table cell) I want that a new view should appear with movie player on it playing the video. I have tried <code>MPMoviePlayerViewController</code> and also <code>MPMoviePlayerController</code> and various combinations of the two but I could not play the video  on simulator. Currently I don't have a device so please consider simulator as well as device while answering. Currently i am using:</p>
  
  <pre><code>NSURL *url = [NSURL fileURLWithPath:filePath];
  self.player= [[ MPMoviePlayerViewController alloc] initWithContentURL:url];
  //self.player.navigationController.navigationBar.hidden = YES;
  [self.player.moviePlayer prepareToPlay];
  //self.player.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
  self.player.moviePlayer.controlStyle = MPMovieControlStyleNone;
  self.player.moviePlayer.movieSourceType = MPMovieSourceTypeFile;
  self.player.moviePlayer.fullscreen = NO;
  [self presentModalViewController:self.player animated:NO];
  [self.player.moviePlayer play];
  </code></pre>
  
  <p><code>filepath</code> is a <code>nsstring</code> containing the video url.</p>