Skip to content
Shiny PlatformShiny Platform
.NET MAUI on the WebRun your MAUI app in the browser on WebAssembly - real DOM elements, no Blazor. Try the web sample and the .NET MAUI GalleryGet started

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 returns Unknown until a device has been found (Denied when iOS rejects the browse outright).
  • Background: iOS suspends an app in the background unless it is playing audio itself, which stops a stream. Add audio to UIBackgroundModes only if your app plays audio through its own audio session.
  • UIDevice.Name (the default sender name) returns “iPhone” on iOS 16+ without the com.apple.developer.device-information.user-assigned-device-name entitlement - or pass AirPlayConnectOptions.SenderName.
  • iOS cannot receive AirPlay.

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.client and com.apple.security.network.server.
  • NSLocalNetworkUsageDescription and NSBonjourServices (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 (NSProcessInfo activity).
<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 mediaPlayback foreground 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 for RECORD_AUDIO (and notifications on 13+). The MediaProjection consent dialog appears inside StartSystemAudio, every time - Android does not let it be pre-granted.
  • 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.0 build of the package.
  • Automatic receiver playback and system audio need libpulse-simple.so.0 - PulseAudio, or PipeWire with pipewire-pulse (the default on current Fedora, Ubuntu and Raspberry Pi OS). Without it, Capabilities leaves out AutomaticPlayback and SystemAudioCapture, and a headless receiver uses AirPlayPlaybackMode.Manual.
  • The managed mDNS responder in Shiny.Net.Discovery advertises and browses on UDP 5353 - allow it through the firewall (firewalld: the mdns service).