html5media: JavaScript That Enables 'Video' Tag For All Major Browsers

Thursday, 11 March 2010


HTML5 video tags make embedding videos into documents as easy as embedding an image. All it takes is a single <video> tag. Unfortunately, not all browsers natively support HTML5 video tags.

… and that's where this clever little stop-gap script comes in. It replaces the video tag with a Flash Player if the video tag is not supported natively in the current browser.