How mihdan15/iphone-link works
iPhone Link runs locally on Windows: the iPhone sends AirPlay video to the receiver, while a browser-based phone view and palette provide display and controls. The web API routes input and phone actions to BLE HID, and recording/screenshot requests to media storage. OBS has a separate clean video view. The graph preserves setup, discovery, input mapping, and UI branches; unsampled subsystems are included only where the README or source index supports them, so some internal links are intentionally omitted.
Main entry points: Program.cs Application startup · WebServer.cs Local web server · InputEngine.cs Input engine · BlePeripheral.cs BLE HID peripheral
Components 23
Application runtime
- Application startup
src/Program.cs - Local web server
src/WebServer.cs
AirPlay and video
- AirPlay host
src/AirPlayHost.cs - uxplay receiver
- AirPlay discovery
src/AirPlayDiscovery.cs - Video relay
src/VideoRelay.cs
Bluetooth control
- BLE HID peripheral
src/BlePeripheral.cs - Input engine
src/InputEngine.cs - HID report mapping
src/HidMap.cs - Keyboard mapping
src/KeyMap.cs - Phone actions
src/PhoneActions.cs - Connection assistant
src/ConnectAssistant.cs
User interfaces
- Desktop windows
src/Shell.cs - Phone view
web/app.js - Floating palette
web/palette.js - OBS video view
web/obs.js
Media and support
- Capture and recording
src/MediaFiles.cs - Local data files
- Application paths
src/AppPaths.cs - Logging
src/Logger.cs - Windows Runtime bridge
src/WinRt.cs - Power handling
src/Power.cs
Other components
- iPhone
Connections 36
- Application startup → BLE HID peripheral: starts
src/Program.cs - Application startup → Local web server: starts
src/Program.cs - Application startup → Video relay: starts
src/Program.cs - Application startup → AirPlay host: creates
src/Program.cs - Application startup → Connection assistant: creates
src/Program.cs - Application startup → Phone actions: creates
src/Program.cs - Application startup → Capture and recording: creates
src/Program.cs - Application startup → Desktop windows: opens
src/Program.cs - Desktop windows → Phone view: hosts
src/Shell.cs - iPhone → uxplay receiver: sends AirPlay
README.md - uxplay receiver → AirPlay host: connects receiver
src/AirPlayHost.cs - uxplay receiver → Video relay: sends RTP
README.md - AirPlay host → AirPlay discovery: advertises receiver
- Local web server → Phone view: serves interface
- Phone view → Local web server: calls API
README.md - Floating palette → Local web server: calls API
- Local web server → Video relay: registers viewers
src/WebServer.cs - Video relay → OBS video view: streams video
README.md - Local web server → Input engine: routes controls
src/WebServer.cs - Input engine → BLE HID peripheral: delivers HID
src/InputEngine.cs - Input engine → HID report mapping: uses reports
src/InputEngine.cs - Input engine → Keyboard mapping: uses key mapping
src/InputEngine.cs - BLE HID peripheral → HID report mapping: registers reports
src/BlePeripheral.cs - Local web server → Phone actions: routes actions
src/WebServer.cs - Phone actions → Input engine: sends keystrokes
src/PhoneActions.cs - Local web server → Connection assistant: starts connection
src/WebServer.cs - Connection assistant → Phone actions: opens Control Center
src/ConnectAssistant.cs - Connection assistant → Input engine: types navigation
src/ConnectAssistant.cs - Connection assistant → AirPlay host: reads PIN and name
src/ConnectAssistant.cs - Local web server → Capture and recording: routes captures
src/WebServer.cs - Capture and recording → Local data files: writes recordings
src/MediaFiles.cs - AirPlay host → Local data files: stores pairing data
src/AirPlayHost.cs - Application startup → Application paths: resolves data paths
src/Program.cs - Application startup → Logging: creates logger
src/Program.cs - BLE HID peripheral → Windows Runtime bridge: uses platform bridge
src/BlePeripheral.cs - BLE HID peripheral → Power handling: uses power support
src/BlePeripheral.cs