html - Problems embedding mp4 video -


i'm trying use html5 video tag embed mp4 i'm having issues vary across different browsers.

my code looks this:

<video controls="controls" width="640" height="360">     <source src="http://www.mydomain.com/video.mp4" type="video/mp4" /> </video> 

ie - won't recognize file when trying embed (edit: ie dragging on file size not format) , when uri video plugged address bar opens video in windows media player.

chrome, firefox - not recognized file format (edit: firefox dragging on size well, chrome browser having issues) , when uri plugged address bar attempts play video within browser fails.

could there within file prevent being embedded? if so, how can find out?

the problem browsers not supporting mp4, because proprietary format. best cross-browser support you'll have encode video in webm , ogg/vorbis formats , add files video tag own source tags.

just because browser play video if navigate directly video's url not mean browser supports format. usually, navigating straight video causes browser play video plug-in such quicktime or vlc has better codec support browser does.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -