Is it possible to play a resource mp3 file with the MPMusicPlayerController or do I need to use the AVAudioPlayer API?
+1
A:
You should generally use AVAudioPlayer
if you have just one MP3 file that you need to play. MPMusicPlayerController
is designed to handle playlists of audio files and is fairly heavyweight in comparison.
Rob Keniger
2010-02-23 22:45:44
That sounds sensible but do actually know whether it's possible to play this resource mp3, that's not in the iTunes library, using the MPMusicPlayerController API?
ruibm
2010-02-24 00:30:25
Yes, it is. You just need to instantiate it with `[MPMusicPlayerController applicationMusicPlayer]` rather than `[MPMusicPlayerController iPodMusicPlayer]`.
Rob Keniger
2010-02-24 00:38:54
Cool, thanks!!!
ruibm
2010-02-24 00:44:33