找不到支持格式和MIME类型的视频 [英] No video with supported format and MIME type found

查看:1978
本文介绍了找不到支持格式和MIME类型的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的视频索引中有下一个代码:

I have the next code in my index for a video:

<video width="100%"  controls>
  <source src="video/v1.ogv" type="video/ogg">
  <source src="video/v1.webm" type="video/webm">
  <source src="video/v1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

当我尝试在firefox中加载它时,它将返回没有支持格式的视频和找到MIME类型。

When i try to load it in firefox it will return "No video with supported format and MIME type found."

Firebug将返回

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.

推荐答案

路径是否有效?


  • https://root/folder/video/v1.ogv

  • https://root/folder/video/v1.webm

  • https://root/folder/video/v1.ogv
  • https://root/folder/video/v1.webm

Firefox不支持.mp4文件 wh ich解释不支持video / mp4的指定类型属性。错误。

Firefox doesn't support .mp4 files which explains the Specified "type" attribute of "video/mp4" is not supported. error.

如果你正在使用Apache,您可以强制它使用正确的MIME类型。将以下内容添加到.htaccess文件中。

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

这篇关于找不到支持格式和MIME类型的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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