.ogg视频不能在Firefox中播放 [英] .ogg video not playing in firefox

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

问题描述

我们刚刚开始使用html5视频,并且似乎无法获得 .ogg 文件在Firefox中播放,所有提示?这里是我们正在使用的源代码:

We're just getting started with html5 video, and cannot seem to get .ogg files to play in Firefox, any tips? Here is the source we are using:

<video width="640" height="360" poster="http://video.thewebreel.com/episode_001/episode_001.jpg" controls autoplay autobuffer>
  <source src="http://video.thewebreel.com/episode_001/episode_001.ogg" type="video/ogg" type='video/ogg; codecs="theora, vorbis"'/>
  <source src="http://video.thewebreel.com/episode_001/episode_001.mp4" type="video/mp4" />
</video>

可以在这里看到实际的例子:

The live example can be seen here:

http://thewebreel.com/2010/05/02/episode-1.html

然而,我们完全不知所措,一切看起来都是正确的。

However we are totally baffled, everything seems exactly right.

推荐答案

我上传了你的.ogg到我的服务器怀疑这是一个服务器问题,它在我的服务器上工作正常

I uploaded your .ogg to my server suspecting it was a server issue and it's working fine on my server

我猜这是因为你的网络服务器正在回复

I'm guessing it's because your web server is replying with

Content-type: binary/octet-stream

尝试将mime类型添加到nginx ...

Try adding the mime types to nginx...

打开Nginx mime类型配置文件,例如:/etc/nginx/mime.types

Open up the Nginx mime type configuration file, eg: /etc/nginx/mime.types

在最后一个视频mime类型之后添加这些行

Add these lines after the last video mime type

video/ogg                             ogm;
video/ogg                             ogv;
video/ogg                             ogg;

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

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