Video tag with Cortado fallback

videotag
I used this extended video tag from Theora.org to display Ogg/Theora video’s on my work blog. Works great.

<video src=”http://www.archive.org/download/Rooms_Rules_Roles/Rooms_Roles_Rules.ogv” width=”352″ height=”288″>
<applet code=”com.fluendo.player.Cortado.class” archive=”http://theora.org
/cortado.jar” width=”352″ height=”288″>
<param name=”url” value=”http://www.archive.org/download/Rooms_Rules_Roles/Rooms_Roles_Rules.ogv”/>
</applet>
</video>


The code allows browsers that support the HTML5 video tag to play the video. It also provides a fallback for browsers that do not support (Theora playback through) the videotag; The video will be played using the Cortado Java applet. More detailed info can be found in the Theora Cookbook.

The above image shows what the video looks like in Firefox 3.5 with HTML5 support. The following image shows what it looks like when the Cortado applet plays the video in Firefox 3.0 without HTML5 support.

Screenshot

Posted on: Saturday, October 3, 2009 by: in category: Manuals, Problems and solutions