帮助我选择正确的 iPhone 音频类 - MPMoviePlayer、AVAudioPlayer 和 MPMusicPlayer
有谁知道关于 MPMoviePlayer 与 AVAudioPlayer 与 MPMusicPlayer 之间区别的好教程?
我想播放外部 URL 上提供的 mp3 文件中的音频。
理想情况下,它可以在类似 iPod 的音频视图中播放。我尝试过 MPMoviePlayer,但它似乎更适合视频,因为当音频开始显示“电影播放”消息时,控件会消失并显示白色的 Quicktime 启动页面。
我希望标准 ipod 音频控件始终显示,并自定义其背后的图像。
Does anyone know of a good tutorial on the distinction between the MPMoviePlayer vs AVAudioPlayer vs MPMusicPlayer?
I want to play audio from an mp3 file available at an external URL.
Ideally it is played in an iPod-like audio view. I toyed with MPMoviePlayer but it appears to be more suitable for video, as when audio starts a "movie playing" message displays, the controls disappear and a white quicktime splash page displays.
I would like the standard ipod audio controls to display all the time, and to customize the image behind them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一组来自 Ray Wenderlich 的精彩文章。不是你具体想要的,但可能会派上用场。
音频 101适用于 iPhone 开发者:以编程方式播放音频
面向 iPhone 开发人员的 Audio 101:文件和数据格式
适用于 iPhone 开发人员的 Audio 101:转换和录制
Here's a great little group of articles from Ray Wenderlich. Not specifically what you're after but might come in handy.
Audio 101 for iPhone Developers: Playing Audio Programmatically
Audio 101 for iPhone Developers: File and Data Formats
Audio 101 for iPhone Developers: Converting and Recording