Commit e5d117c8 authored by Davis King's avatar Davis King

Made video tag work in more browsers

parent aafbfefa
...@@ -1193,7 +1193,7 @@ Or it can use the elastic net regularizer: ...@@ -1193,7 +1193,7 @@ Or it can use the elastic net regularizer:
video concludes. video concludes.
</p> </p>
<center> <center>
<video src="find_max_global_example.webm"> <video src="find_max_global_example">
Video of optimizer running Video of optimizer running
</video> </video>
</center> </center>
......
...@@ -787,8 +787,9 @@ ...@@ -787,8 +787,9 @@
</img> </img>
</xsl:template> </xsl:template>
<xsl:template match="video"> <xsl:template match="video">
<video controls=""> <video controls="true" poster="{@src}.png">
<source src="{@src}" type="video/webm"/> <source src="{@src}.webm" type="video/webm"/>
<source src="{@src}.mp4" type="video/mp4"/>
<xsl:apply-templates/> <xsl:apply-templates/>
</video> </video>
</xsl:template> </xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment