It’ve just tested it with my Raspberry Pi 3B+.
An open-source implementation of an AirPlay mirroring server for the Raspberry Pi.
The following packages are required for building on Raspbian:
- cmake (for the build system)
- libavahi-compat-libdnssd-dev (for the bonjour registration)
- libssl-dev (for crypto primitives)
- ilclient and Broadcom’s OpenMAX stack as present in
For downloading the code, use these commands:
git clone https://github.com/FD-/RPiPlay.git cd RPiPlay
For building on a fresh Raspbian Stretch or Buster install, these steps should be run:
sudo apt-get install cmake sudo apt-get install libavahi-compat-libdnssd-dev sudo apt-get install libssl-dev mkdir build cd build cmake .. make
GCC 5 or later is required.
Start the rpiplay executable and an AirPlay mirror target device will appear in the network.
At the moment, these options are implemented:
-n name: Specify the network name of the AirPlay server.
-b (on|auto|off): Show black background always, only during active connection, or never.
-r (90|180|270): Specify image rotation in multiples of 90 degrees.
-l: Enables low-latency mode. Low-latency mode reduces latency by effectively rendering audio and video frames as soon as they are received, ignoring the associated timestamps. As a side effect, playback will be choppy and audio-video sync will be noticably off.
-a (hdmi|analog|off): Set audio output device
-d: Enables debug logging. Will lead to choppy playback due to heavy console output.
-v/-h: Displays short help and version information.
sudo apt-get install git -y sudo apt-get install cmake -y sudo apt-get install libavahi-compat-libdnssd-dev -y sudo apt-get install libssl-dev -y
mkdir build cd build cmake .. make
sudo mv ~/RPiPlay /usr/local sudo vi /lib/systemd/system/mirror.service
[Unit] Description=rpi-mirror After=network.target Wants=network.target [Service] Type=simple PIDFile=/run/mirror-rpi.pid ExecStart=/usr/local/RPiPlay/build/rpiplay -b auto -n mirror -a analog -l Restart=on-failure # Don't restart in the case of configuration error RestartPreventExitStatus=23 [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload sudo systemctl enable mirror.service