From 5d4cbb2eb28081d9ea56de3d5a0f06cc60a6b9d0 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 24 Apr 2015 13:40:18 +0000 Subject: [PATCH] Raspi quick play link svn path=/trunk/; revision=38 --- pages/videoview.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pages/videoview.sh b/pages/videoview.sh index 0297448..5a8f225 100755 --- a/pages/videoview.sh +++ b/pages/videoview.sh @@ -84,15 +84,10 @@ _printVideo(){ [ -z "$width" ] && width=0 [ -z "$height" ] && height=0 -# reenc="${_DATA}/vp8/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1:' <<<"$info" )" -# mpfake="${_DATA}/mp4/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1.mp4:' <<<"$info" )" -# [ -f "$reenc.mp4" ] && reenc="$reenc.mp4" || reenc="$reenc.mkv" [ -r "$meta" ] || ". ${_EXEC}/helpers/genmeta.sh" "$video" "$meta" [ -r "$thumb" ] || ". ${_EXEC}/helpers/genthumb.sh" "$video" "$thumb" -# [ -L "$mpfake" ] || ln -s "../videos/$info" "$mpfake" video="$(urlsave "videos/$info")" thumb="$(urlsave "thumbs/$info.jpg")" -# mpfake="$(urlsave "$info" |sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:mp4/\1.mp4:')" [ "$(($length % 60))" -lt 10 ] &&\ minutes="$(($length / 60)):0$(($length % 60))" ||\ @@ -100,6 +95,11 @@ _printVideo(){ linkinfo="$(urlsave "$info")" + rpibase="http://pfostenpanne/?path=http://jupiter:8000/" + + [ $height -gt 480 ] && \ + raspi="RasPi" + || raspi="RasPi" [ $height -gt 480 ] && \ alt480="480p" \ ||unset alt480 @@ -113,9 +113,7 @@ _printVideo(){ $info - ${alt480} ${alt320} ${alt240}
- - + ${alt480} ${alt320} ${alt240} ${raspi}
${minutes}min -- 2.39.2