X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fplayctl.sh;h=c4aff61200e75fae13f7ef730586f7027e2043e5;hb=aa4516d7090b7818127a1dd39a281059d3e042cc;hp=38cd54ccdbc8b714a71c085cdae1404bb3a15184;hpb=623e13703a176cf67053c5e21a6d2c71f5a96c55;p=serve0 diff --git a/actions/playctl.sh b/actions/playctl.sh index 38cd54c..c4aff61 100755 --- a/actions/playctl.sh +++ b/actions/playctl.sh @@ -17,6 +17,7 @@ # along with Serve0 If not, see . fifofile="${_DATA}/mplayer.fifo" +statusfile="${_DATA}/mplayer.status" volfile="${_DATA}/mplayer.volume" if [ -n "${_POST[amp]+x}" ]; then @@ -29,6 +30,10 @@ elif [ -n "${_POST[ctl]+x}" ]; then printf '%s\n' $(validate "${_POST[ctl]}" "pause|stop" pause) >"$fifofile" elif [ -n "${_POST[seek]+x}" ]; then printf 'seek %s\n' $(validate "${_POST[seek]}" "[+-]?[0-9]+" 0) >"$fifofile" +elif [ -n "${_POST[osd]+x}" ]; then + case ${_POST[osd]} in + progression) printf "osd_show_progression\\n";; + esac >"$fifofile" fi & redirect "$HTTP_REFERER"