title: iOS play video with MPMoviePlayerController
body: <p>I got this piece of code:</p>
  
  <pre><code>theMoviPlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:@"/Resources/disc.mp4"]];
      theMoviPlayer.controlStyle = MPMovieControlStyleFullscreen;
      theMoviPlayer.view.transform = CGAffineTransformConcat(theMoviPlayer.view.transform, CGAffineTransformMakeRotation(M_PI_2));
      UIWindow *backgroundWindow = [[UIApplication sharedApplication] keyWindow];
      [theMoviPlayer.view setFrame:backgroundWindow.frame];
      [backgroundWindow addSubview:theMoviPlayer.view];
      [theMoviPlayer play];
  </code></pre>
  
  <p>But i really dont know how to add the video to my project. In which folder do i have to put the video file!? Or do i have to do something else to add it to my project?</p>
  
  <p>EDIT:</p>
  
  <p>It looks like this in xcode, is it correct?
  Because i do get a playback error right now.
  Previously i used an url to play this video and this worked quite well, but with this file locally not :(</p>
  
  <p><img src="https://i.stack.imgur.com/GbrHq.png" alt="enter image description here"></p>