45 lines
1.9 KiB
Markdown
45 lines
1.9 KiB
Markdown
#AirplayServer for Linux
|
|
|
|
Work is based on https://github.com/FD-/RPiPlay and https://github.com/antimof/UxPlay
|
|
Tested on Ubuntu 18.04, 20.04 desktop and Manjaro 20.0.3 Cinnamon.
|
|
Requires 5G Wifi connection.
|
|
|
|
##Features:
|
|
1. Based on Gstreamer.
|
|
1. Video and audio are supported out of the box.
|
|
3. Gstreamer decoding is plugin agnostic. Uses accelerated decoders if availible. VAAPI is preferable.
|
|
4. Automatic screen orientation.
|
|
6. GTK+ support
|
|
|
|
##Building on Ubuntu:
|
|
1. sudo apt-get install cmake
|
|
2. sudo apt-get install libssl-dev libavahi-compat-libdnssd-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav libglib2.0-dev libgtk2.0-dev build-essential libgtk-3-dev
|
|
3. sudo apt-get install gstreamer1.0-vaapi (For Intel graphics) (If you get Problems like a green screen. Remove this package! It worked for me.)
|
|
4. sh install.sh
|
|
|
|
##Building on Manjaro
|
|
<pre> sudo pamac install cmake </pre>
|
|
<pre> sh install.sh </pre>
|
|
When you use gnome, you need to switch to Xord by using default session "Gnome with Xorg" at GDM.There are still Problems with GTK3 and Wayland.
|
|
|
|
##GTK+ Features:
|
|
1. Double click switches between fullscreen mode and normal window.
|
|
2. Escape key ends fullscreen mode.
|
|
|
|
##Troubleshooting
|
|
If there is no Connection detectable on the apple product. Try:
|
|
<pre>sudo gnome-script.sh</pre>
|
|
in the Application Folder.
|
|
If you want to have this permanently, type:
|
|
<pre>sudo visudo</pre>
|
|
and add this to the very end of the file (replace $APPDIR with your location of the application):
|
|
<pre>ALL ALL=(ALL:ALL) NOPASSWD: $APPDIR/gnome-script.sh</pre>
|
|
Now we need the /usr/bin/airplayserver file. Create this file:
|
|
<pre>sudo nano /usr/bin/airplayserver</pre>
|
|
and add this content (replace $APPDIR with your location of the application):
|
|
<pre>#!/bin/bash
|
|
sudo $APPDIR/gnome-script.sh
|
|
sleep 1 #gives the services time to fully start
|
|
cd $APPDIR/build
|
|
./AirplayServer</pre>
|