What are all the formats of video supported by html5? -


i trying develop simple webpage newly added basic elements of html5. while working video tag, see formats .avi not supported.

so there list of video formats supported html5?

even if particular format webm/ogg supported html5, safe enough presume browser used capable display video?

there no universally supported format (yet) unfortunately. technically, html5 doesn't support video formats, it's browsers support specific video formats. has led giant mess.

you can find list of format compatibility on wikipedia. that, vp8/webm best bet if want support single format. luckily <video> tag support fallbacks if providing more 1 encoding feasible uses, in case vp8/webm version combined h.264 version covers every major browser.

for multiple versions of same video, can use following code:

<video width="320" height="240">   <source src="myvideo.mp4" type="video/mp4" />   <source src="myvideo.ogv" type="video/ogg" />   <source src="myvideo.webm" type="video/webm" />   <p>other backup content, eg. flash version, should go here.</p> </video> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -