X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fwatch.sh;h=3398b99271fc240fb2b5ecb074b6b4b1fdcd6529;hb=a68bd6b9df0235cbe92a88f13be638825d86aac9;hp=c198f4a000f851ebb5a1c48c97133ee3747e2340;hpb=623e13703a176cf67053c5e21a6d2c71f5a96c55;p=serve0 diff --git a/actions/watch.sh b/actions/watch.sh index c198f4a..3398b99 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -58,12 +58,21 @@ case "${_COOKIE[watch]}" in volume="$(validate "$(cat "${_DATA}/mplayer.volume")" '[1-9]?[0-9]|100' 20)" [ \! -p "$fifofile" ] && rm -f "$fifofile" && mkfifo -m 600 "$fifofile" + debug PLAYURI $playuri + DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 \ - nohup /usr/bin/mplayer -ao pulse --quiet \ - --slave --input=file="$fifofile" \ - --volume="$volume" \ + nohup /usr/bin/mplayer -ao pulse -quiet \ + -slave -input file="$fifofile" \ + -volume "$volume" \ "$playuri" >/dev/null 2>/dev/null & + # # MPlayer2: + # DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 \ + # nohup /usr/bin/mplayer -ao pulse --quiet \ + # --slave --input=file="$fifofile" \ + # --volume="$volume" \ + # "$playuri" >/dev/null 2>/dev/null & + redirect "?p=playctl&${watch_link}" ;; *) redirect "?p=view&${watch_link}"