A Windows AirPlay receiver that lets an iPhone/iPad mirror its screen to a PC with no app installed on the phone — including watching YouTube together at 60fps and super‑sampled high resolution.
讓 iPhone/iPad 不裝任何 app,用內建「螢幕鏡像」把畫面投到 Windows PC 的 AirPlay 接收器 —— 可以一起看 YouTube,支援 60fps 與超採樣高解析度。
Works across a wide range of iOS — tested from iOS 12.5.8 (iPhone 6) to iOS 26 & 27, old and new iPhones alike.
支援超廣 iOS 版本 —— 從 iOS 12.5.8(iPhone 6) 到 iOS 26、27 都實測可用,新舊 iPhone 通吃。
This project is a fork of / built on xenos1337/AirPlayServer (MIT), which itself builds on fingergit/airplay2-win. Huge thanks to both — their work is the foundation that made all of this possible.
本專案基於 xenos1337/AirPlayServer(MIT 授權)延伸開發,而它又源自 fingergit/airplay2-win。核心的 AirPlay 連線與解碼都來自它們,由衷感謝!
For personal / non‑commercial use. 僅供個人/非商業用途。
| File / 檔案 | Type / 類型 | When to use / 何時用 |
|---|---|---|
AirPlayReceiver.exe |
Single file / 單一檔(建議 recommended) | Easiest — just double‑click. 最簡單,雙擊就跑。 |
AirPlayReceiver-v1.0.2-win-x64.zip |
Folder / 資料夾 | If antivirus flags the single .exe (false positive). 若防毒誤報單一檔就改用這個。 |
The single .exe self‑extracts on first run (may trigger an antivirus false positive — use the .zip if so). Requires Apple Bonjour (free, one‑time): support.apple.com/106380.
單一 .exe 首次執行會自解壓(可能被防毒誤報,遇到就改用 .zip)。需先裝免費的 Apple Bonjour:support.apple.com/106380。
v1.0.2 is built on upstream master (d0283e2) — deliberately not the v1.2.0 tag, because that release has a
connection regression that upstream fixed afterwards in c788d6f. On top of that base, this fork adds:
- High‑resolution super‑sampling — the receiver advertises a 3840x2880 display in
/info, so the iPhone encodes a higher‑resolution mirror stream; scaled down into the window it looks noticeably crisper (like watching 4K content on a 1080p screen). Most visible in portrait mirroring. This is the one protocol‑level change that is unique to this fork. - No green screen — the SDL renderer prefers D3D9 / OpenGL and never D3D11/D3D12, whose YUV path renders all‑green on some GPUs and drivers. This now covers the OBS clean‑feed window as well, not just the main one.
- Hotkeys always work — IME is disabled for the process so
H/Fwork in any input language (no need to switch off Zhuyin/CJK input).
Everything else is upstream's work and is inherited cleanly, including the features added in v1.2.0: four‑digit PIN approval for new connections, a privacy toggle that hides the receiver from screen‑capture APIs, a clean feed window for OBS (video only, no UI), picture‑in‑picture mode, and auto‑fullscreen on connect.
60fps used to be patched at runtime by this fork. Since upstream v1.2.0 it is declared in the source (
GLOBAL_DISPLAY_MAX_FPS), so that patch has been removed — the super‑sampling change now follows the same source‑level approach instead of rewriting bytes on the wire.
- Windows 10/11 (x64)
- Apple Bonjour (for device discovery) — install it from Apple's official page: support.apple.com/106380 (auto‑localizes to your region). If it's missing, the app opens this link for you automatically on startup.
- An iPhone/iPad on the same Wi‑Fi network
Open AirPlay.sln in Visual Studio 2022 (Desktop C++ workload), or from a x64 Native Tools Command Prompt:
MSBuild AirPlay.sln /p:Configuration=Release /p:Platform=x64
Build the whole solution, not just the exe project: the super‑sampling change lives in the library layer, and the
airplay2dll.lib tracked in the repo is an older snapshot.
Output: x64\Release\AirPlayReceiver.exe (the runtime DLLs live next to it).
- Run
AirPlayReceiver.exe. - On the iPhone: Control Center → Screen Mirroring → pick the receiver.
- For sharpest video, watch fullscreen in landscape.
- Move the mouse to the top edge for the toolbar; press H for the info panel, F for fullscreen.
- Netflix / DRM content won't play — this is a hardware/OS DRM wall (FairPlay), impossible for any homemade receiver. Watch Netflix directly on the PC instead.
- YouTube's on‑screen controls occasionally get stuck (rare; reopen to clear).
- Very high resolution uses a lot of bandwidth; on weak Wi‑Fi you may see occasional frame drops.
v1.0.2 以上游 master(d0283e2) 為基底 —— 刻意不用 v1.2.0 那個 tag,因為該版本有連線問題,
上游後來在 c788d6f 才修好。在這個基底上,本 fork 額外加上:
- 高解析超採樣 —— 接收器在
/info宣告 3840x2880 的顯示器,iPhone 就會編碼更高解析的鏡像串流; 縮小塞進視窗後明顯更銳利(就像在 1080p 螢幕上看 4K 內容),直向鏡像差最多。 這是本 fork 唯一獨有的協定層改動。 - 消除綠畫面 —— SDL renderer 優先走 D3D9/OpenGL,絕不用 D3D11/D3D12(它的 YUV 路徑在某些顯卡會整片綠)。 這一版連上游新加的 OBS clean feed 視窗也一起保護,不只主視窗。
- 熱鍵永遠有效 —— 停用整個程式的 IME,
H/F在任何輸入法下都能按(不用關掉注音)。
其餘全部是上游的成果,乾淨繼承,包含 v1.2.0 加的新功能:新連線要輸入四位數 PIN 碼、 把接收器從螢幕擷取 API 隱藏的隱私開關、給 OBS 用的 clean feed 視窗(只有畫面沒有介面)、 子母畫面(PiP),以及連上時自動全螢幕。
60fps 原本是本 fork 在執行期硬 patch 出來的。上游 v1.2.0 起已在原始碼裡宣告(
GLOBAL_DISPLAY_MAX_FPS), 所以那段 patch 已移除;超採樣也跟著改成同樣的原始碼層做法,不再改封包位元組。
- Windows 10/11(x64)
- Apple Bonjour(裝置探索用)—— 從 Apple 官方頁面安裝: support.apple.com/106380(會自動導到你的語言)。 若沒裝,程式啟動時會自動幫你開這連結。
- 與 PC 同一 Wi‑Fi 的 iPhone/iPad
用 Visual Studio 2022(桌面 C++ 工作負載)開 AirPlay.sln,或在「x64 Native Tools 命令提示字元」執行:
MSBuild AirPlay.sln /p:Configuration=Release /p:Platform=x64
要建整個方案,不能只建 exe 專案:超採樣的改動在函式庫層,而 repo 追蹤的 airplay2dll.lib 是舊版快照。
輸出:x64\Release\AirPlayReceiver.exe(執行期 DLL 就在旁邊)。
- 執行
AirPlayReceiver.exe。 - iPhone:控制中心 →「螢幕鏡像」→ 選這台接收器。
- 想要最清晰的影片,把手機轉橫、影片全螢幕。
- 滑鼠移到視窗上緣叫出工具列;按 H 開資訊面板、F 全螢幕。
- Netflix/DRM 內容無法播放 —— 這是硬體/系統層級的 DRM 硬牆(FairPlay),任何自製接收器都不可能繞過。 請直接在 PC 上開 Netflix。
- YouTube 的畫面控制鈕偶爾會卡住(少見;重開即可清除)。
- 極高解析度很吃頻寬;Wi‑Fi 較弱時可能偶爾掉幀。
- xenos1337/AirPlayServer — the base receiver this project is built on. 本專案的直接基礎。
- fingergit/airplay2-win — the original project xenos built upon. 更上游的原始專案。
- Bundled open‑source libraries: SDL2, FFmpeg, Dear ImGui, Apple Bonjour (mDNSResponder), libplist, FDK‑AAC.
MIT License — see LICENSE. Original copyright © 2025 xenos1337 is retained. MIT 授權 —— 見 LICENSE,保留原作者 xenos1337 的版權聲明。