Iphone – Streaming audio to iPhone

cocoa-touchiphoneiphone-sdk-3.0

Are there any tutorials that discuss how to stream audio from the Internet to the iPhone for OS 3.x? The only one I've seen is very outdated and doesn't compile: http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html.

Best Answer

Are you in control of the content or not? If you're in control, you could use HTTP Live Streaming, which is trivial to play with the MPMoviePlayerController, though you'll lose your GUI. The alternative answer, if you're playing something like a Shoutcast stream, is to use the gamut of Core Audio services, primarily Audio File Stream Services to parse the stream into packets, and Audio Queue Services to play back. And yes, that'll be hard.

Related Topic