title: MPMoviePlayerController Simulator Crash
body: <p>My MPMoviePlayerController crashes when I try and play any video.</p>
  
  <p>This happens only on the simulator, works fine on a device.</p>
  
  <p>Error is as follows:</p>
  
  <pre><code>2012-10-25 16:46:24.033 TheFasterChef[8529:14303] [MPAVController] Autoplay: Disabling autoplay for pause
  2012-10-25 16:46:24.035 TheFasterChef[8529:14303] [MPAVController] Autoplay: Disabling autoplay
  2012-10-25 16:46:24.172 TheFasterChef[8529:14303] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 1, on player: 0)
  2012-10-25 16:46:24.190 TheFasterChef[8529:14303] [MPAVController] Autoplay: Enabling autoplay
  2012-10-25 16:46:24.227 TheFasterChef[8529:14303] [MPAVController] Autoplay: Likely to keep up or full buffer: 0
  2012-10-25 16:46:24.227 TheFasterChef[8529:14303] [MPAVController] Autoplay: Skipping autoplay, not enough buffered to keep up.
  2012-10-25 16:46:24.232 TheFasterChef[8529:14303] [MPAVController] Autoplay: Enabling autoplay
  2012-10-25 16:46:24.238 TheFasterChef[8529:14303] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0
  </code></pre>
  
  <p>My code is the bog standard method for calling MPMoviePlayerController:</p>
  
  <p>In .h file:</p>
  
  <pre><code>@property (retain) MPMoviePlayerController *videoPlayer;
  </code></pre>
  
  <p>In .m file:</p>
  
  <pre><code>NSBundle *appBundle = [NSBundle mainBundle];
  //NSString *contentURLString = [appBundle pathForResource:videoIdentifier ofType:@"mp4"];
  NSString *contentURLString = [appBundle pathForResource:@"test" ofType:@".mp4"];
  NSURL *contentURL = [NSURL fileURLWithPath:contentURLString];
  
  self.videoPlayer = [[MPMoviePlayerController alloc] initWithContentURL:contentURL];
  [self.videoPlayer prepareToPlay];
  [self.videoPlayer.view setFrame: self.view.bounds];
  [self.view addSubview:self.videoPlayer.view];
  [self.videoPlayer prepareToPlay];
  [self.videoPlayer play];
  </code></pre>
  
  <p>I have tried this snippet of code in a different view controller with the same error result.</p>
  
  <p>I have tried this snippet code in a new project and it works fine.</p>
  
  <p>What else could be causing this error?</p>
  
  <p>The answer <a href="https://stackoverflow.com/questions/12414717/ios-6-streaming-player-com-apple-coremedia-networkbuffering-bug">here</a> did not solve it for me.</p>