开发者

Streaming audio from iPhone

开发者 https://www.devze.com 2023-01-23 05:09 出处:网络
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

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

精彩评论

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