AirPlay
On this page
The panel can be an AirPlay speaker. iPhones, iPads and Macs list it in their AirPlay menu under the panel's name, and play to it like any other AirPlay speaker. It sits in the Music pane next to the Music Assistant player (Sendspin), and it's off until you turn it on.
Turn it on
Turn on AirPlay in either place:
- On the panel or the Manage page: Settings → Panes → Music.
- In Home Assistant:
switch.<device>_airplay, in the panel's device under Configuration. It's disabled by default, so enable the entity first.
The panel appears in the AirPlay menu within a few seconds. The Music pane itself has to be on, as it is by default.
What you get
| Sound | Apple Lossless at 44.1 kHz, as AirPlay sends it, timed to the sender's clock |
| Volume | The sender's volume slider sets the panel's AirPlay level, under the panel's master volume on the Sound page |
| Now playing | The title and artist show on the Music page and in sensor.<device>_airplay_status (disabled by default). With Show what's playing on, the audio halo shows them with the cover and the track's progress (Show what's playing) |
| Voice and announcements | AirPlay goes quiet while the assistant listens or talks, and comes back when it's done |
| Music Assistant | The newest source has the speaker. While AirPlay plays, the panel's Sendspin player goes quiet and stays in sync with its group. If Music Assistant starts playing later, AirPlay goes quiet instead. Pausing on your phone hands the speaker back after a few seconds |
One sender plays at a time. A second sender takes over from the first, as AirPlay speakers do.
Limits
- AirPlay 1 only, for now. Apple's devices still offer AirPlay 1 speakers in their AirPlay menu, but they can't group them with AirPlay 2 speakers, and the Home app doesn't list them. AirPlay 2 needs root on the panel and comes later.
- Audio only. Video and screen mirroring aren't supported.
- No password. Anyone on your network can play to the panel while AirPlay is on, as with most AirPlay speakers. Turn it off if that doesn't suit your network.
- The sender needs the same network. AirPlay finds the panel over mDNS (
_raop._tcp), which doesn't cross subnets or VLANs without an mDNS reflector.
How it works
The panel runs an AirPlay 1 receiver written for Glassworks in plain Kotlin, the
raop library. It plays through synced-audio, the same
player the Sendspin player uses. The panel announces itself under a made-up hardware id that it keeps across
restarts, never its real MAC address. Logs use the tag Glassworks.AirPlay.