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
|
#!/bin/sh
|
||||||
|
|
||||||
folder="/mnt/video"
|
folder="/mnt/video"
|
||||||
player="omxplayer"
|
player="cvlc"
|
||||||
|
playerparam=" -q"
|
||||||
|
|
||||||
swupgpio=23
|
swupgpio=23
|
||||||
swdowngpio=25
|
swdowngpio=25
|
||||||
|
@ -37,6 +38,6 @@ if $(command -v pgrep) "$player" > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
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
|
fi
|
||||||
|
|
|
@ -5,7 +5,7 @@ strobogpio=2
|
||||||
swupgpio=23
|
swupgpio=23
|
||||||
swdowngpio=25
|
swdowngpio=25
|
||||||
|
|
||||||
player="omxplayer"
|
player="cvlc"
|
||||||
|
|
||||||
cmdgpio="$(command -v gpio)"
|
cmdgpio="$(command -v gpio)"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue