From f8f416a05c72219b6ae8ac36ff2be8d9da18a0f0 Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Tue, 22 Sep 2020 18:16:47 +0200 Subject: [PATCH] switch to cvlc player --- RandomVideo.sh | 5 +++-- buzzer.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RandomVideo.sh b/RandomVideo.sh index c2f865f..e9fde60 100755 --- a/RandomVideo.sh +++ b/RandomVideo.sh @@ -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 diff --git a/buzzer.sh b/buzzer.sh index 9ab6f3a..6649370 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -5,7 +5,7 @@ strobogpio=2 swupgpio=23 swdowngpio=25 -player="omxplayer" +player="cvlc" cmdgpio="$(command -v gpio)"