title: iPhone - What's the right audio player for my app?
body: <p>I'm designing a music app that plays music from the user's iPhone music library and I'm having problems figuring out which audio player is the right one to use for it (AVAudioPlayer, AVPlayer, or MPMusicPlayer).</p>
  
  <p>My app needs to do the following:</p>
  
  <ul>
  <li>Play music from the iPhone music library </li>
  <li>Control app music volume separately from device/system volume</li>
  <li>Continue to play app music when app moves to background</li>
  <li>Catch events when song changes to next song or finishes</li>
  </ul>
  
  <p>From my research it seems like each of the three audio players mentioned above do SOME of the tasks required for my app, but none of them do ALL of them. AVPlayer seems to get the closest, except its volume is dependent on the device/system volume.</p>
  
  <p>Does anyone have any recommendations or workarounds to accomplish this? I've been wracking my brain over this for quite some time so any help at all would be appreciated.</p>