No video with supported format and MIME type found
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I have the next code in my index for a video:
When i try to load it in firefox it will return "No video with supported format and MIME type found."
Firebug will return
"NetworkError: 500 Internal Server Error - https://root/folder/video/v1.ogv" v1.ogv HTTP load failed with status 500. Load of media resource https://root/folder/video/v1.ogv failed. ...,c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f));if(i){if(o||e){if(o){for(l=[],... jquery.min.js (line 2) "NetworkError: 500 Internal Server Error - https://root/folder/video/v1.webm" v1.webm HTTP load failed with status 500. Load of media resource https://root/folder/video/v1.webm failed. Specified "type" attribute of "video/mp4" is not supported. Load of media resource video/v1.mp4 failed. All candidate resources failed to load. Media load paused.
Any clue? It's not working in Google Chrome neither.
If you are using Apache, you can force it to use the correct MIME type. Add the following to your .htaccess file.
# MIME types for Video AddType video/mp4 mp4 m4v f4v f4p AddType video/ogg ogv AddType video/webm webm AddType video/x-flv flv
回答2:
@Gonzalo- As @Daniel has pointed out in his answer - make sure that /video folder in source tag is accessible. For example - you are accessing your page at
https://abcdomain/approot/somepage
and assuming that you have this video folder inside approot, then you need to modify the source tag and it would be something like -