From: paul Date: Sat, 5 Mar 2016 15:38:23 +0000 (+0000) Subject: adapted local player to mplayer1, bugfix for location playback X-Git-Url: http://git.plutz.net/?p=serve0;a=commitdiff_plain;h=d8d654939c7eb5ca4b9502a999e6ce3e387b7f82 adapted local player to mplayer1, bugfix for location playback svn path=/trunk/; revision=110 --- 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}" diff --git a/pages/playctl.sh b/pages/playctl.sh index 015e7d3..ded8603 100755 --- a/pages/playctl.sh +++ b/pages/playctl.sh @@ -33,6 +33,10 @@ if [ -n "$info" ]; then head -n1 "$meta" |read length width height x else video="${treeroot%/}/${location#/}" + meta=''; tags=''; length=0; width=0; height=0; + description=0 fi volume=$(validate "$(cat "$_DATA/mplayer.volume")" '[1-9]?[0-9]|100' 20) + +debug VIDEO: $video