MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.3k stars 394 forks source link

Request: AirPlay integration #1294

Open fan4k opened 3 years ago

fan4k commented 3 years ago

Hello, I use "shairport-sync" to play music from iTunes or iOS device players on the Phoniebox. To stop tracks currently played by mpd I use the settings in shairport-sync.conf:

run_this_before_play_begins = "/usr/bin/mpc stop";

I would love it if there was a standard integration of AirPlay, like there is for Spotify via Mopidy and thus also the following features would be possible:

To prevent inactivity the "active-state" could be remembered according to shairport-sync.conf e.g. in a file: // run_this_before_entering_active_state // run_this_after_exiting_active_state

There is also an event for volume changes: // run_this_when_volume_is_set

Metadata can be obtained either via a Pipe or via MQTT topics. I don't think this is that important, instead it would be enough to just show an AirPlay similar icon on the display.

Unfortunately I have very little time at the moment to pursue this further, but maybe someone will be willing to implement it ;-)

Thanks + many greetings!

s-martin commented 2 months ago

Related to #1281