Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a HTML5 Video to work using IE10

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

like image 203
user2211781 Avatar asked Mar 26 '13 14:03

user2211781


2 Answers

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

like image 54
Adamy Avatar answered Oct 21 '22 14:10

Adamy


I just had a similar problem, my own site HTML5 did not work at all. No error message just blank.

The reason was Windows7 N (EU - no media player).

After installing the Windows Media Player, this (and also other problems) are fixed. I hope it helps :)

like image 39
Rafal Powierski Avatar answered Oct 21 '22 13:10

Rafal Powierski