title: MPMoviePlayerController stops playing the video after 5s
body: <p>I tried to play a video in iOS but it just played 5s for any video. This is my code:</p>
  
  <pre><code>NSBundle *bundle = [NSBundle mainBundle];
  NSString *moviePath = [bundle pathForResource:@"videoviewdemo" ofType:@"mp4"];
  NSURL *movieURL = [[NSURL alloc]initFileURLWithPath:moviePath];
  
  MPMoviePlayerController *theMoviPlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
  theMoviPlayer.controlStyle = MPMovieControlStyleFullscreen;
  theMoviPlayer.controlStyle = MPMovieControlStyleDefault;
  [theMoviPlayer setMovieSourceType:MPMovieSourceTypeFile];
  theMoviPlayer.shouldAutoplay = YES;
  
  theMoviPlayer.view.transform = CGAffineTransformConcat(theMoviPlayer.view.transform, CGAffineTransformMakeRotation(M_PI_2));
  
  [theMoviPlayer.view setFrame:self.view.frame];
  [theMoviPlayer prepareToPlay];
  [self.view addSubview:theMoviPlayer.view];
  </code></pre>