Skip to content Skip to sidebar Skip to footer

Cross-platform Syntax For Mp4 Embedded In Html5

The code below produces a properly embedded video in firefox, but does not display properly in internet explorer or in android. I have all my browsers set to automatically update,

Solution 1:

Android browsers require some special handling to support MPEG-4/H.264 video format:

http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/

You can also set the preload property of the video element to "auto" to preload the video via javascript once the page loads:

document.getElementsByTagName("video").preload = "auto";

Post a Comment for "Cross-platform Syntax For Mp4 Embedded In Html5"