问题
Possible Duplicate:
IE9 HTML5 video support
I am working with a client to try and get their video player working. It seems to work in everything that I can test in except IE9. I'm using videojs (I've tried other ones and the same result).
It seems to be that it's one of 2 things. A setting on their IIS server. Or the video file isn't encoded correctly.
Here's the test page: https://vdsc.com/video-js2/demo.html
回答1:
had a similiar issue, and i had to register the mime types via .htaccess on my server (mp4 didn t work before).
.htaccess-file:
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/mp4 .mov
AddType video/webm .webm
回答2:
pretty sure its the IIS settings; try adding these file name extensions and corresponding MIME types: .webm – “video/webm”
.ogg - “application/ogg”
.ogv - “video/ogg”
.mp4- “video/mp4″
.m4v - “video/m4v”
you can read about it here: http://blog.j6consultants.com.au/2011/01/10/cross-browser-html5-video-running-under-iis-7-5/
来源:https://stackoverflow.com/questions/9220537/html5-video-not-working-only-in-ie9