AirPlay API for Mac OS X

Is there currently any API (open or closed) that will allow a third-party Mac OS X application to stream audio to AirPlay receivers? Rogue Amoeba Software's Airfoil seems to be able to do this, the same goes for Erica Sadun AirFlick , but I could not find any source code that would demonstrate how to do this. Any pointers are appreciated!

+8
objective-c cocoa audio streaming airplay
source share
6 answers

It turns out that AirPlay audio streaming is possible with OS X 10.8 using the public APIs, but is not documented anywhere. Joris Kluvers wrote a wonderful post on how to do this.

+4
source share

Here is an open source Ruby implementation. This is pretty straight forward. https://github.com/elcuervo/airplay

+4
source share

There are a couple of open source RAOP players available; I have not tried them, so I don’t know if Apple has broken them since they were written.

+1
source share

Mountain Lion (OS X 10.8) added support for AirPlay in sound settings. User can choose to send local sound to AirPlay device. However, I do not think that you have access to any API in your application.

There are several libraries available for implementing AirPlay, but be aware that Apple will reject your application if you try to publish it to the App Store. At least what happened to me.

I wrote a node.js module to support AirPlay. Even if you are not using node, you can simply transfer your audio data via stdin.

https://github.com/lperrin/node_airtunes/

+1
source share

I do not think this is available. At least not in versions prior to 10.7.

I guess Airfoil was using something like John’s DVD some time ago when it hacked into the Airport Express Express key payload. He released a code (C #) that you can find, but it is rather cryptic.

I don’t know what AirFlick uses, but you can always try to ping Eric, she usually shares her things.

0
source share

Someone recently managed to get the AirPlay private key, which allows you to enable your program in the AirPlay menu on devices on your network.

You can read about it here. There is also an open source project associated with this page. http://mafipulation.org/blagoblig/2011/04/08#shairport

Keep in mind that, obviously, any application you create will never be approved by Apple, and the private key may be changed when updating the firmware / software.

0
source share

All Articles