title: How to continue playing a youtube video at background when switch from my app back to home screen
body: <p>Seems the default action for iOS 6 is to stop the video from playing after I switch to HOME screen. Then if I want to listen to the audio I have to go back to the app and press the 'Play' button again. I am using youtube API. </p>
  
  <p>How can I continue playing the video when the application is in <code>UIApplicationStateInactive</code> and <code>UIApplicationStateBackground</code>. I just want to be able to listen to the audio even if I am on HOME screen or the screen is locked. Should I use a background thread or restart playing the video at the previous position as it was before turning the app inactive?</p>