Troubleshooting with Gnome

This commit is contained in:
2021-04-11 20:31:33 +02:00
parent b1f87313b1
commit 3c64b9a4ac
3 changed files with 21 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ Requires 5G Wifi connection.
##Building on Manjaro
1. sudo pamac install cmake
2. sh install.sh
When you use gnome, you need to switch to Xord by using default session "Gnome with Xorg" at GDM.
##GTK+ Features:
1. Double click switches between fullscreen mode and normal window.
@@ -27,6 +28,14 @@ Requires 5G Wifi connection.
##Troubleshooting
If there is no Connection detectable on the apple product. Try:
<pre>systemctl stop systemd-resolved.service </pre>
<pre>systemctl stop avahi-daemon.service </pre>
<pre>systemctl start avahi-daemon.service </pre>
<pre>sudo gnome-script.sh</pre>
in the Application Folder.
If you want to have this permanently, add "ALL ALL=(ALL:ALL) NOPASSWD: /usr/bin/airplayserver" to the very end of the sudoer file. You can access it by:
<pre>sudo visudo</pre>
Add /usr/bin/airplayserver by:
<pre>sudo nano /usr/bin/airplayserver</pre>
with this:
<pre>#!/bin/bash
sudo /home/julian/AirplayServer/gnome-script.sh
cd /home/julian/AirplayServer/build
./AirplayServer</pre>

5
gnome-script.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
systemctl stop systemd-resolved.service
systemctl stop avahi-daemon.service
systemctl start avahi-daemon.service

View File

@@ -51,6 +51,10 @@ video_renderer_t *video_renderer_init(logger_t *logger, background_mode_t backgr
renderer->pipeline = gst_parse_launch("appsrc name=video_source stream-type=0 format=GST_FORMAT_TIME is-live=true ! queue ! decodebin ! videoconvert ! videoscale ! xvimagesink name=video_sink sync=false", &error);
/*
renderer->pipeline = gst_parse_launch("appsrc name=video_source stream-type=0 format=GST_FORMAT_TIME is-live=true ! queue ! decodebin ! videoconvert ! videoscale ! tee name=t ! queue ! xvimagesink name=video-sink sync=false ! queue ! v4l2sink device=/dev/video4 t.", &error);
renderer->pipeline = gst_pipeline_new("test-pipeline");
renderer->appsrc = gst_element_factory_make("appsrc","video_source");
renderer->queue = gst_element_factory_make("queue",NULL);