Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Streaming audio from server to iPhone

I'm looking to stream some audio files I have on my server to an iPhone-client application I'm writing. Some of the audio files can be rather large in size, even after compression. My question is, is there a Cocoa framework that helps me with buffering the audio so it becomes available to the user while the rest is being brought down the pipes? If not, can anyone point me in the right direction to learn more about the technologies required to make such a thing happen using Objective-C/Cocoa?

A definitive resource on buffering and compression of audio from a server<->client infrastructure would be ideal.

like image 689
Coocoo4Cocoa Avatar asked Dec 21 '08 20:12

Coocoo4Cocoa


People also ask

How do I stream music from my NAS to my iPhone?

The trick is to call up the media you want to play—music or video—start it playing, tap the AirPlay icon in the app's controller (AirPlay appears in all the apps I've mentioned), and then select your Apple TV as the destination. Your music or video will stream from the NAS to the iOS device and then to the Apple TV.

Can I stream audio from PC to iPhone?

Connect both iOS device and computer to the same Wi-Fi network. Then run Airfoil Satellite and Airfoil separately. In Airfoil for desktop, choose audio source, then click the sound icon besides your iPhone, iPad or iPod touch to start stream audio from Windows or Mac computer to your iOS device.

How do I stream media from my computer to my iPhone?

Set up Home Sharing on your PCOpen iTunes for Windows. If you're not signed in, sign in with your Apple ID. Use the same Apple ID for every computer or device on your Home Sharing network. From the menu bar at the top of the iTunes window, choose File > Home Sharing > Turn on Home Sharing.


1 Answers

Brad mentioned a post that I wrote to stream audio via HTTP. That was this one: Streaming and playing an MP3. I don't mean to be the person that links to his own blog but it does kind of address your question.

In regards to how hard the problem is to solve, you'll notice I've made 4 updates to that post (way more than I've done for anything else), fixing threading errors, memory leaks and network buffering issues. There is a lot to get precisely correct.

like image 51
Matt Gallagher Avatar answered Oct 02 '22 13:10

Matt Gallagher