This is the first hacky attempt at streaming stuff from iTunes/iPhone to Squeezebox Server via AirPlay. It's been tested with:
- Squeezebox Server 7.5.3 (r31792)
- Ubuntu 10.10 (x86_64)
- iPhone 4, firmware 4.3.1 (8G4)
- iTunes 10.2.1 (1)
Matthew Flint, email@example.com
I have no intention of maintaing this long-term... so I'm putting it on GitHub and hope that someone will adopt it. ;-)
Squeezebox Server, Avahi, OpenSSL and probably other stuff.
- git clone https://github.com/mflint/SquairPlay.git SquairPlay
- cd SquairPlay
- git submodule init
- git submodule update
- cd shairport
- make a soft-link to your Squeezebox Server plugins directory from SquairPlay: sudo /path/to/SquairPlay/ /usr/share/squeezeboxserver/Plugins/SquairPlay
- go back to SquairPlay directory and "./shairport.pl --pipe=rawpipe"
- a file "rawpipe" will apear in the "shairport" directory when a connection is made for the first time. The "custom-convert.conf" (in the SquairPlay directory) needs to be told where the rawpipe is, so change the path
- restart Squeezebox Server
- ./shairport.pl (if not already running)
- Use your SBS web interface to create a Favourite with URL "squairplay:0" (that's a zero)
- Play something in iTunes or on iPhone
- Connect iTunes/iPhone to the AirPlay instance which should now be available
- Play the SquairPlay favourite on your Squeezebox
- Start "./shairport.pl" automatically
- Prevent 'hairplay' from using a new port each time it restarts
- Fix the "wav" and "flac" entries in "custom-convert.conf"
- Provide a settings page where user can enter the AirPort private key. We probably shouldn't distribute the key with the plugin
- Investigate whether the AirPort protocol sends metadata about the currently-playing track?
Probably many, including:
- It's fragile
- The quality isn't great
- Only the mp3 conversion is currently close to being functional
- Think the sample rate might be wrong, because music skips
- There's a lot of buffering, so it takes a long time for audio to start or stop