title: How to play a video from Amazon S3 server in IOS?
body: <p>I am working on IOS Application which Uploading the Video at Amazon S3 server and then i need to play that video in my Iphone with progressive download.(I dont want to download the Video in iphone).
  I have tried with this </p>
  
  <pre><code>NSURL *url = [NSURL URLWithString:@"https://BuccketName.s3.amazonaws.com/MovieName.mp4"];
  
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(moviePlayBackDidFinish:)
                                                   name:MPMoviePlayerPlaybackDidFinishNotification
                                                 object:moviePlayer];
  
      moviePlayer = [[MPMoviePlayerController alloc] init];
      moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
      [moviePlayer setContentURL:url];
  
  
      moviePlayer.controlStyle = MPMovieControlStyleDefault;
      moviePlayer.shouldAutoplay = YES;
      [self.view addSubview:moviePlayer.view];
      [moviePlayer setFullscreen:YES animated:YES];
  </code></pre>
  
  <p>Now My Problem is Its not plying the Video From Url and Giving me Error as follows : </p>
  
  <pre><code>2014-03-28 12:13:35.327 Streamingplayer[214:60b] _itemFailedToPlayToEnd: {
      kind = 1;
      new = 2;
      old = 0;
  }
  </code></pre>
  
  <p>Can anyone please Guide me How can i play a video from Amazone S3 Server URL ...</p>