Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,是否可以使用 AVAudioPlayer 而不是 MPMusicPlayer 来获取和播放 iPod 库歌曲/播放列表?
在此先感谢,钱德拉。
我尝试的一种方法是将歌曲从 iPod 库复制到您的应用程序,然后您就可以播放了。当您关闭时,您也可以删除这些歌曲。但是会使您的应用程序在大小方面变得沉重。见我的帖子。
我发现的另一种方法是使用AVFoundation 框架的AVPlayer。这支持 iPod 库。有关 AVPlayer 的参考,您可以发布