mp4视频没有在html5中播放ie [英] mp4 video not playing in html5 with ie

查看:170
本文介绍了mp4视频没有在html5中播放ie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试在html5播放器中播放mp4视频。它在chrome中工作正常。

但是没有工作,就像Firefox一样。可能是什么原因



这是我的webconfig引用iis mime type



Hi am trying to play mp4 videos in html5 player. its working fine in chrome.
but not working ie as well as Firefox.What could be the reason

This is my webconfig to referring iis mime type

<system.webServer>
   <directoryBrowse enabled="true" />
   <staticContent>
     <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
   </staticContent>
 </system.webServer>





有什么猜测?



Any guess?

推荐答案

你可能会感到惊讶:术语MP4并不意味着某些东西。这是该技术的一般名称,但是这种压缩有几种不同的标准,以及几种不同的媒体压缩算法和支持编解码器。此外,相同的流可以打包成不同的文件/流格式,通常称为媒体容器。



难怪,浏览器只支持一些非常大的子集一组所有可能的变体,不同浏览器的不同子集。您可以做的就是将媒体文件重新掌握到最常见的位置。 HTML5 < video> 元素使用的可接受的情况非常复杂,并且是永久性更改的主题。有些背景,请参阅:

http://en.wikipedia.org/wiki/Digital_container_format [ ^ ],

< a href =http://en.wikipedia.org/wiki/Codec> http://en.wikipedia.org/wiki/Codec [ ^ ],

http://en.wikipedia.org/wiki/Codec [ ^ ],

http://en.wikipedia.org/wiki / MPEG-4 [ ^ ],

http://en.wikipedia.org/wiki/HTML5_Audio [ ^ ],

http://en.wikipedia。 org / wiki / HTML5_video [ ^ ]。



-SA
It may come to surprise for you: the term "MP4" does not mean something certain. This is a general name of the technology, but there are several different standards for this compression, and several different media compression algorithms and supporting codec. Moreover, the same streams can be packed in different file/stream formats, commonly called "media containers".

No wonder, browsers support only some subsets of the very big set of all possible variants, different subsets for different browsers. All you can do about it is to re-master your media files to something most common. The situation with acceptable used by HTML5 <video> element is extremely complicated and is a subject of permanent change. For some background, please see:
http://en.wikipedia.org/wiki/Digital_container_format[^],
http://en.wikipedia.org/wiki/Codec[^],
http://en.wikipedia.org/wiki/Codec[^],
http://en.wikipedia.org/wiki/MPEG-4[^],
http://en.wikipedia.org/wiki/HTML5_Audio[^],
http://en.wikipedia.org/wiki/HTML5_video[^].

—SA


这篇关于mp4视频没有在html5中播放ie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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