title: MPMoviePlayerController repeat mode not working in viewDidLoad
body: <p>It seems that I'm having a problem with repeatmodeone: it does not repeat the video.</p>
  
  <p>This is the code for the video I have in the implementation:</p>
  
  <pre><code>- (void)viewDidLoad{
  
      NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Space Particle" ofType:@"mp4"]];
  
  
      MPMoviePlayerViewController *playerController = [[MPMoviePlayerViewController alloc]initWithContentURL:url];
      [self presentMoviePlayerViewControllerAnimated:playerController];
      [playerController.moviePlayer prepareToPlay];
      playerController.moviePlayer.movieSourceType = MPMovieSourceTypeFile;
      playerController.moviePlayer.controlStyle = MPMovieControlStyleNone;
      playerController.moviePlayer.scalingMode = MPMovieScalingModeAspectFill;
      playerController.moviePlayer.repeatMode = MPMovieRepeatModeOne;
      [MyView1 addSubview: playerController.view];
  
  
      [playerController.moviePlayer play];
      [playerController release];playerController=nil;
  }
  </code></pre>
  
  <p>It works as an animated background with buttons above it. The video plays but when it finishes, it does not repeat.</p>
  
  <p>I found out that, as an IbAction, it repeats, but as a viewDidLoad it doesn´t.</p>
  
  <p>Note that the "MyView" outlet has been linked to a custom UIButton, and it´s in the button view where the movie plays.</p>
  
  <p>The videos I'm using aren't large in size.</p>
  
  <p>My objective is that the movie must repeat using the viewdidload method in order to auto play and repeat.</p>
  
  <p>Please, is there anything I am doing wrong? Suggestions on how to solve it? Any help would be appreciated.</p>