title: iOS background Airplay
body: <p>I'm trying to to airplay video even when the app is in the background.
  Is this possible?
  I've enabled <code>Audio, AirPlay, and Picture in Picture</code> for background modes, in app capabilities.
  I've also set AVAudioSession category:</p>
  
  <pre><code>do {
          try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback)
          try AVAudioSession.sharedInstance().setActive(true)
      } catch {
          print("error");
      }
  </code></pre>
  
  <p>Using Xcode 8.2.1 for iOS 8.1+ (iPhone simulator)</p>