开发者

Streaming audio from iPhone

Does anybody know of a way to stream audio from a file being played back in an app over the internet in a standardized streaming audio forma开发者_运维百科t? That is server up an Audio stream from the iPhone.


You need a http server on you device, multiple packet audio files, like:

  • http://your.com/audio1.mp3

  • http://your.com/audio2.mp3

  • http://your.com/audio3.mp3

And m3u file that shows the current realtime file... surely with a small delay, try 0.5 sec, the client opens http://your.com/play.m3u and plays with AVPlayer the stream. Like that.


In 4.0, just open the .m3u URL with the AVAudioPlayer. It was never simpler to stream audio.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜