Note that there are some explanatory texts on larger screens.

plurals
  1. POHtml5 Video on Android 2.1 with multiple source files
    primarykey
    data
    text
    <p>I have done a ton of searching and am hitting a brick wall. I am able to use HTML5 on a Motorola Droid with Android 2.1. The problem is when I add fallback options for firefox, and flash that add multiple source files. If I use src within the video tag, and add the onclick="this.play();" code within the video tag, I can watch the mp4 on the Droid. I found this code at this link below. When I use this with multiple src files, I either dont know where to put this piece of code or it just doesn't work. </p> <p><a href="https://stackoverflow.com/questions/1711078/html5-video-element-on-android">HTML5 &lt;video&gt; element on Android</a></p> <p>When I use the code like below, it always work on my droid, where I touch the video thumbnail and it opens the video in the video player:</p> <pre><code>&lt;video src="video/placeholder.m4v" poster="video/placeholder.jpg" onclick="this.play();"/&gt; </code></pre> <p>This is my code but it wont allow me to click the video or shows the thumbnail in the Android browser. I have tried putting the onclick= in the src lines as well, with no luck:</p> <pre><code>&lt;video width="640" height="360" controls onclick="this.play();" /&gt;&lt;source src="2.mp4" type="video/mp4" /&gt;&lt;source src="spit.ogv" type="video/ogg" /&gt;&lt;div style="width:640px;height:360px;" id="player"&gt;&lt;/div&gt;&lt;script language="JavaScript"&gt;flowplayer("player","flowplayer-3.2.2.swf","splash.flv");&lt;/script&gt; &lt;/video&gt; </code></pre> <p>I want to update my entire site to use HTML5 through firefox, safari, flash for older browsers and hopefully for android and iphones. It seems like it is much harder to get html5 working for phones than desktop browsers. I saw this guy <a href="http://www.awakecoding.com/android/" rel="nofollow noreferrer">using this</a> but I think it is annoying (and I would need to redesign the site for these buttons) that I have to have external buttons created by java for it to work on a phone.</p> <p>Any help is greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload