I struggled with this for a long time and finally gave up and switched to using AVAudioSourceNode and playing my own audio.
In my opinion the callbacks on AVPlayerNode are too coarse to give you the information you need to handle all the complex cases that can arise with interruptions, route changes etc.
Topic:
Media Technologies
SubTopic:
Audio
Tags: