AVAudioPlayer is able to play one song at a time. It cannot access iPod Library means you cannot play songs which are present in user’s iPod’s Library. But biggest advantage I see is AVAudioPlayer can play songs when your app is in background.
MPMusicPlayerController is used to play songs from a playlist you pick using MPMediaPickerController from iPod Library which is a plus point. It accesses many properties of song which AVAudioPlayer cannot. It cannot play music in background.
AVAudioPlayer和MPMusicPlayerController的区别
最新推荐文章于 2020-08-05 16:30:30 发布