.ogg 视频无法在 Firefox 中播放

2024-03-31

我们刚刚开始使用 html5 视频,似乎无法得到.ogg要在 Firefox 中播放文件,有什么提示吗?这是我们正在使用的来源:

<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>

现场示例可以在这里看到:

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

然而我们完全困惑,一切似乎都完全正确。


我将您的 .ogg 上传到我的服务器,怀疑这是服务器问题,但它在我的服务器上运行良好

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

Content-type: binary/octet-stream

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

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

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

video/ogg                             ogm;
video/ogg                             ogv;
video/ogg                             ogg;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

.ogg 视频无法在 Firefox 中播放 的相关文章