[英]MP4 in HTML5 Video Tag Not Playing in Internet Explorer
任何人都可以告訴我為什么這適用於Firefox和Chrome,但不適用於IE9,10或11? 它給了我一個典型的黑色屏幕,一個帶有紅色X的小白色方塊。
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Video Player Test</title>
</head>
<body>
<video style="position:fixed; top:0px; left:0px; height:100%; width:100%;" autoplay controls>
<source src="./videos/video.mp4" type="video/mp4">
<source src="./videos/video.ogg" type="video/ogg">
</video>
</body>
</html>
我已經嘗試過的事情: - 將MIME類型添加到.htaccess - 重新編碼以確保MP4正確H264。 - video.js根本沒用。
我也嘗試過使用'文件'>'打開'並使用IE在我的機器上本地打開MP4,它播放就好了,所以我認為視頻應該是正確的編碼和IE的一切。
對於IE9,使用meta標簽
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.