<?xml version="1.0" encoding='utf-8'?>
<!-- 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
-->
<?xml-stylesheet type="text/xsl" href="https://mbien.dev/roller-ui/styles/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom">
    <title type="html">Michael Bien&apos;s Weblog</title>
    <subtitle type="html">don&apos;t panic</subtitle>
    <id>https://mbien.dev/blog/feed/entries/atom</id>
        <link rel="self" type="application/atom+xml" href="https://mbien.dev/blog/feed/entries/atom?tags=applets" />
    <link rel="alternate" type="text/html" href="https://mbien.dev/blog/" />
    <updated>2024-08-24T07:57:58+00:00</updated>
    <generator uri="http://roller.apache.org" version="6.1.4">Apache Roller</generator>
    <entry>
        <id>https://mbien.dev/blog/entry/using_applets_as_fallback_mode</id>
        <title type="html">Using Applets as fallback mode for video on pre html5 browsers</title>
        <author><name>mbien</name></author>
        <link rel="alternate" type="text/html" href="https://mbien.dev/blog/entry/using_applets_as_fallback_mode"/>
        <published>2009-06-23T19:04:52+00:00</published>
        <updated>2020-04-09T10:06:45+00:00</updated> 
        <category term="Java" label="Java" />
        <category term="applets" scheme="http://roller.apache.org/ns/tags/" />
        <category term="html5" scheme="http://roller.apache.org/ns/tags/" />
        <category term="java" scheme="http://roller.apache.org/ns/tags/" />
        <summary type="html">&lt;p&gt;
The upcoming html5 standard will make it very easy to embed media of not proprietary formats in webpages. For example &lt;a href=&quot;http://www.whatwg.org/specs/web-apps/current-work/#video&quot;&gt;video&lt;/a&gt; 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? 
&lt;/p&gt;
&lt;p&gt;
Firstly: don&apos;t panic! Secondly: you could consider using for example the &lt;b&gt;256kb&lt;/b&gt; large &lt;a href=&quot;http://maikmerten.livejournal.com/tag/cortado&quot;&gt;cortado applet&lt;/a&gt; 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. &lt;a href=&quot;http://www.theora.org/&quot;&gt;theora&lt;/a&gt; encoded hd movies is therefore fairly easy - &lt;b&gt;you even don&apos;t have to convert the video to an other format&lt;/b&gt;.
&lt;/p&gt;</summary>
        <content type="html">&lt;p&gt;
The upcoming html5 standard will make it very easy to embed media of not proprietary formats in webpages. For example &lt;a href=&quot;http://www.whatwg.org/specs/web-apps/current-work/#video&quot;&gt;video&lt;/a&gt; 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? 
&lt;/p&gt;
&lt;p&gt;
Firstly: don&apos;t panic! Secondly: you could consider using for example the &lt;b&gt;256kb&lt;/b&gt; large &lt;a href=&quot;http://maikmerten.livejournal.com/tag/cortado&quot;&gt;cortado applet&lt;/a&gt; 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. &lt;a href=&quot;http://www.theora.org/&quot;&gt;theora&lt;/a&gt; encoded hd movies is therefore fairly easy - &lt;b&gt;you even don&apos;t have to convert the video to an other format&lt;/b&gt;.
&lt;/p&gt;

&lt;h4&gt;source&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-xml&quot;&gt;
&amp;lt;video width=&quot;320&quot; height=&quot;240&quot; controls&amp;gt;
    &amp;lt;source src=&quot;video.ogg&quot; type=&quot;video/ogg&quot;&amp;gt;
      &amp;lt;object width=&quot;320&quot; height=&quot;240&quot; type=&quot;application/x-java-applet&quot;&amp;gt;
         Your browser does not support the &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt; element and also does not support java applets.
         You can download the movie on http://www.bigbuckbunny.org/.
         &amp;lt;param name=&quot;archive&quot; value=&quot;my/host/cortado.jar&quot; /&amp;gt;
         &amp;lt;param name=&quot;code&quot; value=&quot;com.fluendo.player.Cortado.class&quot; /&amp;gt;
         &amp;lt;param name=&quot;url&quot; value=&quot;video.ogg&quot; /&amp;gt;
      &amp;lt;/object&amp;gt;
    &amp;lt;/source&amp;gt;
&amp;lt;/video&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;400p Big Buck Bunny trailer [&lt;a href=&quot;http://www.bigbuckbunny.org/&quot;&gt;link&lt;/a&gt;]&lt;/h4&gt;
&lt;video width=&quot;640&quot; height=&quot;480&quot; controls&gt;
	&lt;source src=&quot;https://download.blender.org/peach/trailer/trailer_400p.ogg&quot; type=&quot;video/ogg&quot;&gt;
      &lt;object width=&quot;640&quot; height=&quot;480&quot; type=&quot;application/x-java-applet&quot;&gt;  
		 Your browser does not support the &lt;code&gt;video&lt;/code&gt; element and also does not support java applets. You can download the movie on http://www.bigbuckbunny.org/.
         &lt;param name=&quot;archive&quot; value=&quot;http://people.fh-landshut.de/~mbien/cortado/cortado.jar&quot; /&gt;  
         &lt;param name=&quot;code&quot; value=&quot;com.fluendo.player.Cortado.class&quot; /&gt;  
         &lt;param name=&quot;url&quot; value=&quot;https://download.blender.org/peach/trailer/trailer_400p.ogg&quot; /&gt;  
      &lt;/object&gt;
&lt;/video&gt;
&lt;p&gt;
  happy coding!
&lt;/p&gt;</content>
    </entry>
</feed>

