不是所有的webm文件都在Firefox中播放 [英] not all webm files are playing in firefox

查看:268
本文介绍了不是所有的webm文件都在Firefox中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用Miro Video Converter和FreeMakeVideo Converter编码了webm视频,结果相同:一些webm视频在Firefox中播放,而另一些在嵌入html5视频标签时不会播放。


$
$ b

在我的Apache配置中,我添加了:AddType video / webm .webm



我也添加了一个.htaccess文件:AddType video / webm .webm

没有任何区别。如果我直接在Firefox中打开webm文件,它们都可以正常工作,但是在视频中标签只有一些他们的工作。

任何想法?????

解决方案

我知道这个问题很老,但是我前几天实际上只是遇到了这个问题,我想我会回答以后遇到同样问题的冒险者。

这是Firefox中的一个已知问题。有时候,它只是不想玩webm文件。我不知道为什么,我懒得弄明白。我可以通过切换源代码的顺序来找到它。



我曾经这样做过:

 < source src =myVideo.webmtype =video / webm> 
< source src =myVideo.mp4type =video / mp4>
< source src =myVideo.ogvtype =video / ogv>

这样,firefox来了,先看了webm,然后选择试试。有些问题导致它无法播放,但是由于它支持这种格式,因此无论如何都使用该源。为了解决这个问题,我做了以下工作:

 < source src =myVideo.ogvtype =video / ogv> ; 
< source src =myVideo.mp4type =video / mp4>
< source src =myVideo.webmtype =video / webm>

这种方式当firefox读取资源时,它首先看到ogv文件并选择打开它,因为它可以支持它。从那以后没有问题。



希望这可以帮助别人......


I have coded webm videos with Miro Video Converter and also with FreeMakeVideo Converter with the same result: some webm videos play in Firefox while others won't when embedded with the html5 video tag.

In Chrome they ALL play correctly.

In my Apache configuration I have added: AddType video/webm .webm

I have also added a .htaccess file with the same: AddType video/webm .webm

Doesn't make any difference. Some of the webm files play fine, while others don't play at all.

If I open the webm files straight in Firefox they ALL work fine, but in the video tag only some of them work.

Any ideas?????

解决方案

I know this question is old but I actually just had this problem the other day and I figure I'd answer it for any future adventurer who encounters the same issue.

This is a known issue in Firefox. Sometimes, it just doesn't want to play webm files. I don't know why, I didn't bother to figure it out. I was able to figure it out by switching the order of my source tags.

I used to have it like this:

<source src="myVideo.webm" type="video/webm">
<source src="myVideo.mp4" type="video/mp4">
<source src="myVideo.ogv" type="video/ogv">

This way, firefox came it, saw webm first and chose to try and opne that. Some issue was causing it to not be able to play but, since it supports that format, it used that source anyway. To fix this I did the following:

<source src="myVideo.ogv" type="video/ogv">
<source src="myVideo.mp4" type="video/mp4">
<source src="myVideo.webm" type="video/webm">

This way when firefox reads the sources, it sees the ogv file first and chooses to open it since it can support it. Haven't had an issue since.

Hope this helps someone...

这篇关于不是所有的webm文件都在Firefox中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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