AirPlay_ShairportSync - AlvinSchiller/RPi-Jukebox-RFID GitHub Wiki
AirPlay using Shairport Sync
Taken from the Phoniebox@GitHub issues forum
I updated my installation of Phoniebox with AIRPLAY compability! Just want to share my experience here. I followed this step by step installation guide, on top of the running phoniebox.
Everything is just working fine and I can see no problems... I can now swipe cards to use phoniebox, and I can also send music from my iPhone to the Rpi.
The two options will not stop each other, which means: If Phoniebox is running and you send Airplay music to the Rpi it will play both at the same time, and vice versa.
You can add a command to stop mpd to /etc/shairport-sync.conf. See sessioncontrol in config file
e.g.
run_this_before_play_begins = "/usr/bin/mpc stop"
run_this_after_play_ends = "/usr/bin/mpc play"