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"
TITLE="$info"
-meta="${_DATA}/meta/$info.meta"
-[ -n "$info" ] && video="${_DATA}/videos/$info" \
- || video="${treeroot%/}/${location#/}"
-tags="$(sed -n '2p' "$meta")"
-description="$(sed -n '3,$p' "$meta")"
-head -n1 "$meta" |read length width height x
-
-video="videos/$info"
-[ -n "$info" ] && video="videos/$info" \
- || video="${location#/}"
+if [ -n "$info" ]; then
+ video="${_DATA}/videos/$info"
+ meta="${_DATA}/meta/$info.meta"
+ tags="$(sed -n '2p' "$meta")"
+ description="$(sed -n '3,$p' "$meta")"
+ head -n1 "$meta" |read length width height x
+else
+ video="${treeroot%/}/${location#/}"
+fi
volume=$(validate "$(cat "$_DATA/mplayer.volume")" '[1-9]?[0-9]|100' 20)
}
.panel#preferences > input { display: block; }
+#videoview h1,
+#playctl h1 { font-size: 1.25em;}
#videoview h1, #videoview > a,
#playctl h1, #playctl > a {
display: inline-block;
margin-right: 1em;
+ padding: 0; margin: .5em 0;
}
#videoview video {
display: block;
$(for n in $(seq 0 5 100); do
printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
done)
+ <br>
+ <button type="submit" name="osd" value="progression">Progress</button>
</form>
<span class="info length">$(($length / 60)):$(($length % 60)) min</span>