Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
When users receive phone calls during audio playback, that audio fades away. The standard answer/decline screen appears. As this happens, AVAudioPlayer delegates receive the audioPlayerBeginInterruption: callback that is shown in Recipe 20-3. The audio session deactivates, and the player pauses. You cannot restart playback until the interruption ends.
Should the user accept the call, the application terminates, and the application delegate receives an applicationWillResignActive: callback. When the call ends, the application relaunches (with an applicationDidBecomeActive: callback). If the user declines the call or if the call ends without an answer, the delegate is instead sent audioPlayerEndInterruption:. You can resume playback from this method.