AirPlay Platform Setup
Info.plist:
<key>NSLocalNetworkUsageDescription</key><string>Finds AirPlay speakers on your network</string><key>NSBonjourServices</key><array> <string>_raop._tcp</string> <string>_airplay._tcp</string> <string>_dacp._tcp</string></array>RequestAccess()triggers the local network prompt. iOS has no API to read the answer, so it returnsUnknownuntil a device has been found (Deniedwhen iOS rejects the browse outright).- Background: iOS suspends an app in the background unless it is playing audio itself, which stops a
stream. Add
audiotoUIBackgroundModesonly if your app plays audio through its own audio session. UIDevice.Name(the default sender name) returns “iPhone” on iOS 16+ without thecom.apple.developer.device-information.user-assigned-device-nameentitlement - or passAirPlayConnectOptions.SenderName.- iOS cannot receive AirPlay.
Mac Catalyst
Section titled “Mac Catalyst”Same Info.plist keys as iOS, plus com.apple.security.network.client and
com.apple.security.network.server when sandboxed. Mac Catalyst can receive.
- Sandboxed apps:
com.apple.security.network.clientandcom.apple.security.network.server. NSLocalNetworkUsageDescriptionandNSBonjourServices(as above) on macOS 15+.- Streaming the Mac’s audio needs Screen & System Audio Recording (ScreenCaptureKit).
RequestAccess(systemAudio: true)asks; macOS only applies a new grant after the app relaunches. - While a session or receiver is running the Mac is kept awake (
NSProcessInfoactivity).
Android
Section titled “Android”<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" /><uses-permission android:name="android.permission.FOREGROUND_SERVICE" /><uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /><uses-permission android:name="android.permission.WAKE_LOCK" /><uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- only for StartSystemAudio --><uses-permission android:name="android.permission.RECORD_AUDIO" /><uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />- Streaming and receiving run in a
mediaPlaybackforeground service with a Wi-Fi lock and a wake lock, so they continue with the app in the background. The service and the MediaProjection consent activity merge into your manifest automatically. - Start a session or the receiver while the app is in the foreground - Android 12+ refuses to start a foreground service from the background.
RequestAccess(systemAudio: true)asks forRECORD_AUDIO(and notifications on 13+). The MediaProjection consent dialog appears insideStartSystemAudio, every time - Android does not let it be pre-granted.
Windows
Section titled “Windows”- Starting a session or the receiver opens UDP ports, which shows a Windows Firewall prompt the first time.
- Receiving plays through WASAPI on the default output device and follows default-device changes.
- System audio is a WASAPI loopback capture of the default output device.
- The machine is kept awake while streaming or receiving.
- Linux uses the
net11.0build of the package. - Automatic receiver playback and system audio need
libpulse-simple.so.0- PulseAudio, or PipeWire withpipewire-pulse(the default on current Fedora, Ubuntu and Raspberry Pi OS). Without it,Capabilitiesleaves outAutomaticPlaybackandSystemAudioCapture, and a headless receiver usesAirPlayPlaybackMode.Manual. - The managed mDNS responder in
Shiny.Net.Discoveryadvertises and browses on UDP 5353 - allow it through the firewall (firewalld: themdnsservice).

