How antimof/uxplay works
UxPlay is an AirPlay mirroring, audio, and limited HLS video server. An Apple client discovers the server, establishes a session, and sends media; UxPlay handles AirPlay/RAOP requests and streams media to local renderers or optional external RTP receivers. Pairing, service discovery, Bluetooth LE advertisement, and playback controls are distinct supporting capabilities. The source index and excerpts show the central interfaces, but not every runtime call; uncertain connections are omitted. Additional branches reflect README-documented features, including recording and HLS, without implying unsampled implementation details.
Main entry points: raop.c RAOP session server · uxplay.cpp Server entry · httpd.c HTTP server · video_renderer.c Video and HLS renderer
Components 18
Server and protocols
- Server entry
uxplay.cpp - RAOP session server
lib/raop.c - AirPlay HTTP handlers
lib/http_handlers.h - HTTP server
lib/httpd.c - HTTP parser
lib/llhttp/llhttp.c
Media processing
- Mirror RTP receiver
lib/raop_rtp_mirror.c - Audio RTP receiver
lib/raop_rtp.c - Media timing
lib/raop_ntp.c
Playback and outputs
- Video and HLS renderer
renderers/video_renderer.c - Audio renderer
renderers/audio_renderer.c - Media recording
renderers/mux_renderer.c
Discovery and access
- Pairing and authentication
lib/pairing.c - DNS-SD discovery
lib/dnssd.c - Bluetooth LE beacon
Bluetooth_LE_beacon/uxplay-beacon.py - BLE platform modules
Bluetooth_LE_beacon
Other components
- AirPlay client
- External RTP receiver
- Network clients
Connections 20
- AirPlay client → Server entry: initiates streaming
README.md - Server entry → RAOP session server: starts server
lib/raop.c - RAOP session server → HTTP server: creates HTTP server
lib/raop.c - HTTP server → AirPlay HTTP handlers: dispatches requests
- HTTP server → HTTP parser: parses requests
- RAOP session server → Pairing and authentication: uses pairing
lib/raop.c - RAOP session server → DNS-SD discovery: configures discovery
- Network clients → DNS-SD discovery: discovers service
README.md - Bluetooth LE beacon → BLE platform modules: loads platform support
- Bluetooth LE beacon → Network clients: advertises endpoint
README.md - RAOP session server → Mirror RTP receiver: starts mirror receiver
lib/raop.c - RAOP session server → Audio RTP receiver: starts audio receiver
lib/raop.c - Mirror RTP receiver → Video and HLS renderer: delivers video frames
lib/raop_rtp_mirror.c - Audio RTP receiver → Audio renderer: delivers audio
- Server entry → Video and HLS renderer: configures playback
uxplay.cpp - Server entry → Audio renderer: configures playback
uxplay.cpp - Server entry → Media recording: supports recording
README.md - Video and HLS renderer → External RTP receiver: forwards video RTP
README.md - Audio renderer → External RTP receiver: forwards audio RTP
README.md - RAOP session server → Media timing: uses media timing