switch to cvlc player
This commit is contained in:
parent
33b69fbecf
commit
f8f416a05c
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@ strobogpio=2
|
|||
swupgpio=23
|
||||
swdowngpio=25
|
||||
|
||||
player="omxplayer"
|
||||
player="cvlc"
|
||||
|
||||
cmdgpio="$(command -v gpio)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue