// Using Applets as fallback mode for video on pre html5 browsers

The upcoming html5 standard will make it very easy to embed media of not proprietary formats in webpages. For example video can be embedded in the same way you would probably do it with an image. But what happens when your browser does not support html5 yet?

Firstly: don't panic! Secondly: you could consider using for example the 256kb large cortado applet as fallback mode, since pre html5 browsers will ignore unknown tags like the video tag they will still read the object tag. Using an applet as cross platform fallback mode for playing e.g. theora encoded hd movies is therefore fairly easy - you even don't have to convert the video to an other format.


<video width="320" height="240" controls>
    <source src="video.ogg" type="video/ogg">
      <object width="320" height="240" type="application/x-java-applet">
         Your browser does not support the <code>video</code> element and also does not support java applets.
         You can download the movie on http://www.bigbuckbunny.org/.
         <param name="archive" value="my/host/cortado.jar" />
         <param name="code" value="com.fluendo.player.Cortado.class" />
         <param name="url" value="video.ogg" />

400p Big Buck Bunny trailer [link]

happy coding!


Post a Comment:
  • HTML Syntax: NOT allowed