[英]Ogg (theora / vorbis) playback in Firefox 3.6
I have this html5 code, with a MP4 for Chrome (working), an OGG for Firefox (failing) and the same ogg via a java applet for Internet Explorer (working): 我有这个html5代码,带有用于Chrome的MP4(正在工作),用于Firefox的OGG(失败)和通过用于Internet Explorer的Java小程序的相同ogg(正在工作):
<video width="848" height="480" controls="controls" autoplay="true" >
<source src="vernissage_cpal_2009.mp4" type="video/mp4" />
<source src="vernissage_cpal_2009.ogv" type="video/ogg" />
<applet code="com.fluendo.player.Cortado.class" archive="http://theora.org/cortado.jar" width="848" height="480">
<param name="url" value="vernissage_cpal_2009.ogv" />
</applet>
</video>
Firefox display a gray box with a X inside it. Firefox显示一个带有X的灰色框。 The file "vernissage_cpal_2009.ogv" also plays well inside normal media player, like VLC. 文件“ vernissage_cpal_2009.ogv”在普通媒体播放器(例如VLC)中也可以正常播放。
I had a similar issue, trying to embed ogg audio, where it was playing in FF, but not in chromium. 我遇到了一个类似的问题,试图将ogg音频嵌入在FF中播放,而不是在铬中播放。
I found I was missing a tag, type audio/ogg. 我发现我缺少标签,请输入audio / ogg。 It now plays. 现在播放。 Here is the code: 这是代码:
<object width="300" height="42">
<param name="src" value="tonystheme.ogg">
<param name="type" value="audio/ogg">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="bgcolor" value="#000000">
<embed src="tonystheme.ogg" autostart="true" loop="false" width="300" height="42"
controller="true" bgcolor="#000000"></embed>
</object>
Granted, this is not working with the new html5 code, but, it did make it so the file would play. 当然,这不适用于新的html5代码,但是确实做到了,因此文件可以播放。
使用“ video / ogg; codecs = theora,vorbis”作为您的哑剧类型,Firefox会愉快地播放它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.