switch to cvlc player

This commit is contained in:
Martin Selbmann 2020-09-22 18:16:47 +02:00
parent 33b69fbecf
commit f8f416a05c
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
folder="/mnt/video"
player="omxplayer"
player="cvlc"
playerparam=" -q"
swupgpio=23
swdowngpio=25
@ -37,6 +38,6 @@ if $(command -v pgrep) "$player" > /dev/null; then
fi
else
$(command -v "$player") "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" &
$(command -v "$player") $playerparam "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" &
fi

View File

@ -5,7 +5,7 @@ strobogpio=2
swupgpio=23
swdowngpio=25
player="omxplayer"
player="cvlc"
cmdgpio="$(command -v gpio)"