title: How to config my server to providing the video file play with MPMoviePlayerViewController?
body: <p>I want to using MPMoviePlayerViewController to play the video file on my server. But It not works.</p>
  
  <p>My iOS code are as bellow:</p>
  
  <pre><code>NSURL *mediaURL = [[NSURL alloc] initWithString:[[NSString alloc] initWithFormat:@"http://127.0.0.1:3000/media/%@", @"sample_iTunes.mov"]];
  self.player = [[MPMoviePlayerViewController alloc] initWithContentURL: mediaURL];
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:self.player.moviePlayer];
  self.player.moviePlayer.shouldAutoplay = YES;
  self.player.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
  [self presentMoviePlayerViewControllerAnimated:self.player];
  [self.player.moviePlayer prepareToPlay];
  [self.player.moviePlayer play];
  
  -(void)movieFinishedCallback:(NSNotification*)aNotification
  {
      NSLog(@"%@",[aNotification valueForKey:@"userInfo"]);
      MPMoviePlayerViewController* theMovie = [aNotification object];
  }
  </code></pre>
  
  <p>And I got the error message from <code>NSNotification</code> is:</p>
  
  <pre><code>MPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
  error = "Error Domain=MediaPlayerErrorDomain Code=-11850 \"Operation Stopped\" UserInfo=0x1d51b640 {NSLocalizedDescription=Operation Stopped}";
  </code></pre>
  
  <p>Then I changed the URL to</p>
  
  <pre><code>http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1211/sample_iTunes.mov
  </code></pre>
  
  <p>But it works well. Since the two files are exactly the same file. I think there must be something wrong with my remote server. And here is the response headers from my server :</p>
  
  <pre><code>HTTP/1.1 200 OK
  Content-Length: 3284257
  Date: Mon, 14 Jan 2013 06:06:12 GMT
  Last-Modified: Sun, 13 Jan 2013 10:44:02 +0000
  Accept-Ranges: bytes
  Content-Type: video/quicktime
  Connection: close
  Server: Jetty(7.6.1.v20120215)
  </code></pre>
  
  <p>In additional, The video can play on my macbook with Chrome/Safari, But it can't play on iPhone with browsers too.</p>