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 format? 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.