svn path=/trunk/; revision=69
cgi_cookie
fakemp4="$(printf %s "${_POST[fakemp4]}" |sed -rn '/^yes$/{p;q};ano' )"
-watch="$(printf %s "${_POST[watch]}" |sed -rn '/^(240p|480p|download|raspi|player)$/{p;q};aplayer' )"
+watch="$(printf %s "${_POST[watch]}" |sed -rn '/^(240p|480p|download|raspi|player|server)$/{p;q};aplayer' )"
debug '== Setting Preferences =='
debug "fakemp4 = $fakemp4"
download)
redirect "$videourl"
;;
+ server)
+ DISPLAY=:0 nohup /usr/bin/mplayer -ao pulse:jupiter --quiet "${_DATA}/videos/$info" >&- 2>&- &
+ redirect "$HTTP_REFERER"
+ ;;
*) redirect "?p=view&${watch_link}"
;;
esac
<label for="rd_wrasp">on RaspBerry</label><br>
<input type="radio" name="watch" value="player" $([ "${_COOKIE[watch]}" = player ] && printf 'checked') id="rd_wplay">
<label for="rd_wplay">in embedded player</label><br>
+ <input type="radio" name="watch" value="server" $([ "${_COOKIE[watch]}" = server ] && printf 'checked') id="rd_wserv">
+ <label for="rd_wserv">on screen connected to server</label><br>
<input type="submit" value="Set Cookie!">
</form>