Steps
0. You will possibly get an error about LIBPLIST in the upcoming steps, so first run:
sudo apt install libplist-dev
1. Then install git:
sudo apt install git
2. Then use these commands:
git clone https://github.com/FD-/RPiPlay.git
cd RPiPlay
3. For building on a fresh Raspbian 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
4. At some point, if you get an error about GStreamer, run:
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
5. To Start mirroring:
cd RPiPlay
cd build
./rpiplay
6. To Stop it (this should bring up the login prompt):
Alt + PrtScr + k
7. And go to console:
Ctrl + Alt + F1
8. Raspberry Pi shut down:
sudo shutdown -h now
Credits
https://github.com/FD-/RPiPlay