简体   繁体   English

iPhone 音频流

[英]iPhone Audio Streaming

I would like to know how to start creating an Audio Streaming Player to iPhone (a radio streaming).我想知道如何开始为 iPhone 创建音频流播放器(无线电流)。

I read that I have to use AudioToolbox and AudioQueue.我读到我必须使用 AudioToolbox 和 AudioQueue。 Is there any easy solution?有什么简单的解决办法吗? Anybody has an advice?有人有建议吗?

Thanks!谢谢!

Take a look at http://cocoawithlove.com/2010/03/streaming-mp3aac-audio-again.html for a very complete audio streaming example.查看http://cocoawithlove.com/2010/03/streaming-mp3aac-audio-again.html以获得非常完整的音频流示例。

Recent versions of the iOS SDK allow you to use AVPlayer which can also play remote mp3 audio streams. iOS SDK 的最新版本允许您使用 AVPlayer,它还可以播放远程 mp3 音频流。 AVPlayer is easier to use and way more high-level than the AudioQueue API. AVPlayer 比 AudioQueue API 更易于使用且更高级。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM