Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stream audio from iOS

Tags:

How would I go about streaming audio FROM an iOS device to another device like a Mac or another iOS device? I can only find solutions like AirPlay on Google and nothing about how to do it in your own app. I would assume you would have to go through a server of some kind.

To be clear, I am not looking to replicate AirPlay. I am looking to do very basic VoIP.

like image 449
David Beck Avatar asked May 29 '11 04:05

David Beck


People also ask

How do I stream audio from my 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.

Can you cast audio from an iPhone?

From your iPhone® or Android device, open the Google Home app. Go to the “Devices” tab, tap the device card menu and select “Create group”. Create a name for the group, select speakers to include and press save. You can mix and match select Chromecast built-in speakers with devices connected to Chromecast Audio.

Can I stream audio from iPhone to iPad?

Apple's AirPlay 2 allows you to do this and more, and it's baked right into every iPhone and Mac. The original Apple AirPlay is a proprietary system for streaming audio or video from one Apple source -- typically an iPhone, iPad or a Mac computer -- to another device over a home network.


1 Answers

crude VOIP use case:

Step 1. record audio with AV Foundation using a compressive encoder
Step 2. Stream packets to another device (ie RTP)
Step 3. Decode & play the audio packets on the remote device

More complex VOIP uses case include discovering users, establishing connections.

These links might get you started

http://developer.apple.com/library/ios/#DOCUMENTATION/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html

http://en.wikipedia.org/wiki/Real-time_Transport_Protocol

like image 186
greg Avatar answered Sep 21 '22 15:09

greg