如何使用IE10使HTML5视频正常工作 [英] How do I get a HTML5 Video to work using IE10

查看:212
本文介绍了如何使用IE10使HTML5视频正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人知道如何帮助我在本地内部网上播放HTML5视频。

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

我的网络服务器= Windows Server 2008 R2标准版64位
IIS版本= IIS7

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

测试用户环境= Windows 7企业版

Test User environment = Windows 7 Enterprise

视频播放完美'Google Chrome'

Video plays perfectly using 'Google Chrome'

视频无法使用'IE10'播放

Video fails to play using 'IE10'

我的html代码如下:

My html code is as follows:

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

我的测试机器使用IE10播放HTML5Rocks视频' http://craftymind.com/factory/html5video/CanvasVideo.html '

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

问候,

Chris

推荐答案

确保将Web服务器设置为使用MIME输入 video / mp4 for .mp4。我不小心将.mp4设置为使用MIME类型 video / mpeg ,视频在Chrome中播放,但在IE11中播放。

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.

此外,您需要确保视频使用H264视频编解码器和AAC音频编解码器

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

这篇关于如何使用IE10使HTML5视频正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆