Resume background audio after AVAudioPlayer is paused
问题 I've developed an iPhone application that allows other apps to play audio in the background. To achieve this, I initialize my audio session like this: [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; At some point in my application I provide an audio player to play some files stored in CoreData with AVAudioPlayer. When the user hits the play button, the background audio should be paused. When the player has finished or is paused, the background audio