title: AVPlayer status always AVPlayerStatusReadyToPlay
body: <p>I am using AVPlayer to play audio from a URL</p>
  
  <p>In ViewDidLoad:</p>
  
  <pre><code>self.playerItem = [AVPlayerItem playerItemWithURL:[NSURL URLWithString:imageText]];
  
  self.player = [AVPlayer playerWithPlayerItem:playerItem];
  
  [player addObserver:self forKeyPath:@"status" options:0 context:nil];
  
  [player play];
  </code></pre>
  
  <p><strong>Observer</strong></p>
  
  <pre><code>- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
                          change:(NSDictionary *)change context:(void *)context {
      if (object == player &amp;&amp; [keyPath isEqualToString:@"status"]) {
          if (player.status == AVPlayerStatusReadyToPlay) {
              //[playingLbl setText:@"Playing Audio"];
              NSLog(@"fineee");
              [playBtn setEnabled:YES];
          } else if (player.status == AVPlayerStatusFailed) {
              // something went wrong. player.error should contain some information
              NSLog(@"not fineee");
              NSLog(@"%@",player.error);
  
          }
          else if (player.status == AVPlayerItemStatusUnknown) {
              NSLog(@"AVPlayer Unknown");
  
  
          }
      }
  }
  </code></pre>
  
  <p>but the player sometimes is stuck and does not play the audio but then also status is AVPlayerStatusReadyToPlay. It never goes inside AVPlayerStatusFailed or  AVPlayerItemStatusUnknown. As i want to handle AVPlayer's error, it must go inside these as well. Please help!!</p>