在带有HTML5视频的Firefox中找不到具有受支持的格式和MIME类型的视频 [英] No video with supported format and MIME type found in Firefox with HTML5 video

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

问题描述

我正在尝试使用HTML5插入视频。

I'm trying to insert a video, using HTML5.

我有以下标记:

<video id="video" loop="" controls="" preload="">
    <source src="portada_2.mp4" type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"'/>
    <source src="portada_2.webm" type='video/webm;codecs="vp8, vorbis"'/>
</video>

但是当我在Firefox中打开页面时,它显示以下消息:

but when I open the page in Firefox, it shows me the following message:


未找到具有支持的格式和MIME类型的视频

No video with supported format and MIME type found

www.juanypinchame.es

www.juanypinchame.es

我已更改htaccess中的权限。

I've changed the permissions in htaccess..

我不知道如何正确配置服务器MIME类型。

I have no idea how I can properly configure Server MIME Types..

非常感谢

不起作用...
如何访问面板中的htaccess?
某人,叫我在htaccess上写一些有关mime类型的内容。我不知道如何。

doesn´t work... how can acess to the htaccess in the cpanel? someone, told me to write something about mime type on the htaccess..i dont know how.

推荐答案

添加根目录下.htaccess中的以下几行

Add the lines below to your .htaccess in the root directory

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

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

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