Is it posible to play iPod songs using AVAudioPlayer?

假装没事ソ 提交于 2019-12-24 19:03:22

问题


I have a question that, Is it possible to get and play the iPod library songs / playlist using AVAudioPlayer instead of using MPMusicPlayer?

Thanks in advance, Chandra.


回答1:


One way i tried with is just copy the song from iPod library to your app then you can play. When you close then you can delete also those songs. But makes your app heavy in terms of size. See my post.

Another way i found is using AVPlayer of AVFoundation framework. This supports iPod library. For reference of AVPlayer you can go to post



来源:https://stackoverflow.com/questions/6581261/is-it-posible-to-play-ipod-songs-using-avaudioplayer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!