Play mp3 audio over http socket on iphone - iphone

I am trying to write an iPhone app that playback mp3 audio streamed by our audio server over http socket. I am just wondering if there is any easy solutions that play the mp3 directly over the socket without any local buffering and conversion?
I found same posts about streaming mp3 files over HTTP connection but with no luck to find anything useful about the socket streaming.
Thank you in advance.

The most trivial solution would be the use of MPMoviePlayerController for the playback of streaming audio via HTTP.
Introduction
Alternatives

May be what you could do is impliment a mini server on the iPhone here is a one then simply stream the mp3 from there

Related

How to play video stream received from the network in iOS?

I am streaming video(H264) across network on iOS.I am getting the data in buffers.Is there any way to play this streamed video on iOS? I cannot use AVPlayer or MPMoviePlayerController as these need the URL.
Why not just create a local "web server" and hand AVPlayer the URL to that? It's probably under 100 lines of code and pretty trivial to do with Apple's built-in classes. You'd then just hand out your buffers via the web server.

How to play streaming audio file in iphone?

How to play streaming audio file in iphone?
I am trying to make an app which can play audio file from web server with Play Pause and stop functionality....
can any one have any idea about this ?
This is a lot simpler now with the advent of AVFoundation. Look at the AVPlayer class. It works great for streaming audio.
Check Matt Gallagher work:
http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html
If this is more that you're willing to, the easy answer would be HTTP Live Streaming.

Save audio stream into file with MPMoviePlayerController

I've some trouble with audio streaming using MPMoviePlayerController.
I want to know if it's possible to save the data streaming info to a file while MPMoviePlayer is playing that file.
Is there a simple way to do this?
Does anyone have an idea?
According to apple (http://developer.apple.com/library/ios/#codinghowtos/AudioAndVideo/_index.html) for streaming audio you connect to a network stream using CFNetwork interfaces from CoreFoundation, then parse the network packets into audio packets using Audio File Stream Service (AudioToolbox/AudioFileStream.h) and then play the audio packets using Audio Queue Services (AudioToolbox/AudioQueue.h) ….
Now my idea is that if we can find some way to write the audio packets to the file in between sending the packets to the audio queue then we can save the audio stream while playing them…
Its just an idea that needs implementation and don't know weather it will work for video stream or not.

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 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.

Streaming audio to iPhone

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.
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.