Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Video format that wouldn't require a browser plugin

What is the recommended (cross-browser) video format to use on websites so that users' browsers (or most of them) wouldn't require to download a plugin to view it?

like image 276
Shahid Avatar asked Feb 11 '26 16:02

Shahid


2 Answers

There is no single video that will play in every browser. If you want it to work across the most browsers, you're going to have to encode your video more than once. Dive into HTML5 video has the gory details.

You nest your video references so that browsers try these in order, falling back if it's not supported:

  1. Ogg Theora
  2. MP4 H.264
  3. A Flash container displaying #2

Number 1 gets you Firefox 3.5 and Chrome. Number 2 gets you Safari and the mobile phone WebKit browsers. Number 3 gets you IE, Firefox ≤3, and Opera.

like image 151
Josh Lee Avatar answered Feb 14 '26 06:02

Josh Lee


There is no such format available yet. The best way to go is:

  1. Flash (most of the users have flash plugin installed already, 99% according to http://www.adobe.com/products/player_census/flashplayer/)
  2. OGG (This will be available in HTML5 as standard)
like image 42
rochal Avatar answered Feb 14 '26 05:02

rochal