title: How to check status of AVPlayer?
body: <p>I thought that I could check the status of an AVPlayer simply by the property "rate".</p>
  
  <p>This is how I create a player instance:</p>
  
  <pre><code>player = AVPlayer(URL: stream) // streaming from the internet
  player!.play()
  </code></pre>
  
  <p>At some later point I would do something like this</p>
  
  <pre><code>println(player!.rate)
  </code></pre>
  
  <p>This is what I discovered:</p>
  
  <ul>
  <li>In Simulator I get "0.0" in case the player is not running or "1.0" if it is running. </li>
  <li>If I start the player but interrupt the internet connection it changes values from 1 to 0.</li>
  <li>However, on my iPhone the property keeps value 1 even if I enter Airplane Mode?!</li>
  </ul>
  
  <p>Do you have any idea why that happens and how I could check the stream condition otherwise?</p>
  
  <p>I have tried an observer so far:</p>
  
  <pre><code>player!.addObserver(self, forKeyPath: "status", options: NSKeyValueObservingOptions.New, context: nil)
  </code></pre>
  
  <p>But even the method "observeValueForKeyPath" does not get fired in my iPhone test case.</p>