no video with supported format and MIME type found. What does this mean and how can I change this

做~自己de王妃 提交于 2019-11-26 23:01:29

问题


no video with supported format and MIME type found

A huge screen for video is displayed and says the message above. How do I solve this? This happens to me only in Mozilla Fire fox and not on Google Chrome. I am using webm videos and mp4 videos.

This is for html5 video.


回答1:


The webserver might not be sending the correct MIME types. Depending on the server you may be able to add a .htaccess file with the following:

AddType video/webm .webm
AddType video/mp4 .mp4

If that doesn't work try searching for "server mime types".




回答2:


Go to IIS Manager. Click MIME Types Under IIS. Click Add Button. Enter the following Details.

File Name Extension: .webm MIME Type: video/webm

Again Add, File Name Extension: .ogv MIME Type: video/ogg

And File Name Extension: .mp4 MIME Type: video/mp4




回答3:


<html>
<head></head>
<body>
<video width="320" height="240" controls>
<source src="ho.mp4" type="video/mp4">
<source src="ho.ogg" type="video/ogg">
Your browser does not support the video tag.
</video> 
</body>
</html>

this code worked fine for me...Found it from w3schools.com...Incase you still have issues try to add the mime types in the iis manager




回答4:


I have the same problem and this is how I fix it: Open: "C:\Users\DuongKiet\Documents\IISExpress\config\applicationhost.config" --> where "C:\Users\DuongKiet\" depends on your folder name.

Edit applicationhost.config, go to this line:

<mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />

then insert this line below:

<mimeMap fileExtension=".webm" mimeType="video/webm" /> --> problemo solved

In case you cannot locate the folder, just follow this link for instruction how to add a new mime type: http://www.misfitgeek.com/use-html5-video-tags-in-your-asp-net-applications/



来源:https://stackoverflow.com/questions/10424729/no-video-with-supported-format-and-mime-type-found-what-does-this-mean-and-how

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!