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.
我是一个开始,所以我希望以简单的方式解释我。
我如何使用 MPMusicPlayerController 在我的 iPhone 应用程序中播放声音列表。
如果我的网站上有很多 mp3 文件,如何自动播放这些文件?
我的意思是当打开我的应用程序时自动启动 1.mp3 并在完成时自动启动 2.mp3 ?
非常感谢 :)
这是不可能的,MPMusicPlayerController因为该类只能播放用户 iPod 库中的音乐。从文档:
MPMusicPlayerController
您可以使用 MPMusicPlayerController 对象或音乐播放器来播放 iPod 库中的媒体项目。