How do I get a HTML5 Video to work using IE10

user2211781 picture user2211781 · Mar 26, 2013 · Viewed 50.9k times · Source

I am hoping someone has an idea on what I can do to help me play HTML5 videos on my local intranet.

My Web server= Windows Server 2008 R2 Standard 64bit IIS version= IIS7

Test User environment = Windows 7 Enterprise

Video plays perfectly using 'Google Chrome'

Video fails to play using 'IE10'

My html code is as follows:

<!DOCTYPE html>
<html>
    <body>
        <video src="AccReadings.mp4" width="400" height="300" preload controls>
        </video>
    </body>
</html>

My test machine using IE10 does play HTML5Rocks video 'http://craftymind.com/factory/html5video/CanvasVideo.html'

Regards,

Chris

Answer

Adamy picture Adamy · Jul 15, 2014

Make sure you set the web server to use a MIME type video/mp4 for .mp4. I accidentally set .mp4 to use MIME type video/mpeg, the video plays in Chrome, but not in IE11.

Also you need to make sure the video uses H264 video codec and AAC audio codec