summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-09-21 03:59:46 +0200
committerJonas Smedegaard <dr@jones.dk>2011-09-21 03:59:46 +0200
commit0c0bccb5a8715ff12f17f6963817c97af14c1be6 (patch)
treec8715a048451dd1fdc800b5c07d38429ac962c1c
parent58be19a16807bea664e18e3832c31261787574ec (diff)
Unconditionally include webm in html.
-rwxr-xr-xlocalvideowebencode6
1 files changed, 3 insertions, 3 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 131667a..d43285a 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -146,8 +146,8 @@ cat >"$filebase.html" <<EOF
<video width="$width" height="$height" preload controls>
<source src="$filebase.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="$filebase.ogg" type='video/ogg; codecs="theora, vorbis"' />
-${webm:+<source src="$filebase.webm" type='video/webm; codecs="vp8, vorbis"' />
-}${flash:+<object width="$width" height="$heightplus" type="application/x-shockwave-flash" data="$flashplayer.swf">
+<source src="$filebase.webm" type='video/webm; codecs="vp8, vorbis"' />
+${flash:+<object width="$width" height="$heightplus" type="application/x-shockwave-flash" data="$flashplayer.swf">
<param name="movie" value="$flashplayer.swf" />
<param name="flashvars" value="image=$filebase.jpg&amp;file=$filebase.mp4" />
}<img src="$filebase.jpg" width="$width" height="$height" alt="$title"
@@ -156,7 +156,7 @@ ${flash:+</object>
}</video>
<p><strong>Download Video:</strong>
open format <a href="$filebase.ogg">Ogg</a>,
-${webm:+open format <a href="$filebase.webm">WebM</a>,}
+open format <a href="$filebase.webm">WebM</a>,
closed Format <a href="$filebase.mp4">MP4</a>.
</p>
EOF