Stream MP3 from a set of bytes

advertisements

I have a webserver containing media files and acting like a radio. An iOS client application needs to be designed to play these files.

The problem is I can only provide the content as arrays of bytes, because sometimes, the webserver itself doesn't own the media yet and downloads it as it sends it. I'm thinking about using Json requests every x bytes.

Is there a native function in iOS to handle MP3 streams from array of bytes. I have very minimal knowledge about iOS, so I want to make sure that it's possible and Apple-Store-compliant to stream mp3 from an array of bytes.


Take a look at the audio streamer from matt gallagher. That might be a good start.

http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html?m=1