Firefox HTML5 video codes

Firefox supports the .OGV video format. This is the standard format for Gecko based browsers.

HTML5 makes it easy for Firefox/Mozilla/Gecko based browsers to integrate html 5 video with a few short lines of code.

The code:

Make sure to replace "yourvideo.OGV" and "yourposter.jpg" with the actual file you want to use.

"Firefox 3.5 supports the Ogg Theora video format, a free and open standard for video. Opera and Google Chrome will also include support for Theora in later versions. Safari 4 can also support the same format when using the Xiph Quicktime component but is not guaranteed to be present. Apple has licensed the mpeg4 format for use in Safari 4 and it is supported by default." - mozilla.org

It's quite simple to embed html5 video into webkit browsers, just a few simple lines of code and you're done. Not too bad huh?

blog comments powered by Disqus