AirAP 是一个完全原生的 AirPlay 服务器,由 Swift 编写,适用于 iOS。基本上,AirAP 允许你在 iTunes 或 Mac 上将你的 iPhone 作为 AirPlay 接收器,这意味着你可以用 iPhone 播放设备的声音。
什么是 AirAP?
你是否曾想过将音频从 Mac、Apple TV 或其他 iOS 设备流式传输到 iPhone?AirAP 通过实现一个完整的 AirPlay 服务器,让这一切在 iOS 上原生运行成为可能。安装后,你的 iPhone 会在系统偏好设置的音频面板、Music.app 或任何其他兼容 AirPlay 的应用中作为可用的 AirPlay 目的地出现。
这个概念一开始可能有些反直觉——毕竟我们习惯于将 iPhone 的内容流到其他设备。但其实有很多场景你会希望反过来操作。比如你深夜在 Mac 上工作,想把音频传到 iPhone 上戴耳机,以免打扰别人(你好👋)。或者你是开发者,测试音频应用时需要快速切换不同输出设备。又或者你只是想重新利用那台老旧的有线音箱。
安装 AirAP
要试用,请打开这个 TestFlight 链接,安装 AirAP,并按照说明操作。安装完成后,只需启动 AirAP,并确保你的 iPhone 连接到与要进行流媒体播放的设备相同的 Wi-Fi 网络。你的 iPhone 会自动出现在 AirPlay 设备列表中,准备好接收音频——如果没有出现,请尝试重启应用。
编译
请确保你已安装 homebrew
brew install carthage
git clone https://github.com/neon443/AirAP
cd AirAP
carthage checkout
open AirAP.xcodeproj
After adding your Team ID in Project > AirAP > Signing and Capabilities, hit Command + R to build and run! thanks to
qasim/Airstream shairplay would not have been possible without these
© 2025 Nihaal Sharma. AirPlay, iPhone, iTunes, Mac, and Apple TV are trademarks of Apple Inc.
--- Tranlated By Open Ai Tx | Last indexed: 2026-05-19 ---