title: ios MPMoviePlayerController can't play local files on simulator
body: <p>I'm new here. I'm already 2 days browsing for solutions, but unhappy.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>NSString *docPath = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
  NSString *docaPathFull = [docPath stringByAppendingPathComponent:@"/IMG_0003.m4v"];
  self.videoURL = [NSURL fileURLWithPath:docaPathFull];
  
  MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
  UIImage  *thumbnail = [player thumbnailImageAtTime:4.0 timeOption:MPMovieTimeOptionExact];
  player = nil;       
  self.imageView.image = thumbnail;
  </code></pre>
  
  <p>Problem is, i can't make video file visible for MPMoviePlayerController. I can't get thumbnail and I can't play it, just black player and loading infinity. </p>
  
  <p>I did try:</p>
  
  <pre><code>NSString*thePath=[[NSBundle mainBundle] pathForResource:@"IMG_0003" ofType:@"m4v"];
  self.videoURLtheurl=[NSURL fileURLWithPath:thePath];
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>self.videoURL = [[NSBundle mainBundle] URLForResource:@"IMG_0005" withExtension:@"mov"];
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>NSString *filePath = @"/Users/[user]/Documents/video/IMG_0004.mov";
  self.videoURL = [NSURL fileURLWithPath:filePath];
  </code></pre>
  
  <p>If you have any ideas how to save my life, please do!!!</p>
  
  <p>Many thanks for you time.</p>