Reputation: 1594
Does anyone know how to play a selected .m4a file from the iPhone's iPod music library using a AVAudioPlayer? Is it possible to either export or copy the file to local Documents directory of the iPhone? Can anyone share any sample code to successfully handle this?
Thanks
Upvotes: 1
Views: 1290
Reputation: 191
Using the avaudioplayer to play music from your music library is not possible. Nor is there a way to copy files from the music library to the local path of your app. If you use the avplayer you can access the music library.
Upvotes: 1