title: No AVPlayer Delegate? How to track when song finished playing? Objective C iPhone development
body: <p>I've looked around but I can't find a delegate protocol for the <code>AVPlayer class</code>. What gives?</p>
  
  <p>I'm using its subclass, <code>AVQueuePlayer</code>, to play an array of <code>AVPlayerItems</code>, each loaded from a URL. Is there any way I can call a method when a song finishes playing? Notably at the end of the queue?</p>
  
  <p>And if that's not possible, is there any way I could call a method when the song STARTS playing, after buffering? I'm trying to get a loading icon in there but it turns the icon off before the music actually begins, even though it's after the <code>[audioPlayer play]</code> action.</p>