为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox 17.0.1 does not play .ogg files in <audio> even if MIME type is configured on server

  • 6 个回答
  • 8 人有此问题
  • 2 次查看
  • 最后回复者为 Trurl

more options

I've put a .ogg source in an <audio> tag like so:

           <audio controls preload>
               &#060source src="iphone.ogg"&#062</source>
               Your browser does not support this
           </audio>

Following some guidance I found online, I also put a .htaccess file in the /firefoxbug folder to set the MIME types:

AddType audio/ogg .oga

AddType video/ogg .ogv

AddType application/ogg .ogg


However, it doesn't work. The console does not show any errors except: "All candidate resources failed to load. Media load paused."

If you try this example from w3schools, I get a similar problem: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_audio_all

It doesn't work here either, and the console shows this, expectantly, for the mp3 file: "Specified 'type' attribute of 'audio/mpeg' is not supported. Load of media resource horse.mp3 failed."

But here, too, there's no specific error that explains why the ogg isn't loading. It simply says, again, "All candidate resources failed to load. Media load paused."

Edit: Safe mode did not help. Neither did reinstallation. I do not experience this issue with Firefox 18.0

I've put a .ogg source in an <audio> tag like so: <audio controls preload> &#060source src="iphone.ogg"&#062</source> Your browser does not support this </audio> Following some guidance I found online, I also put a .htaccess file in the /firefoxbug folder to set the MIME types: AddType audio/ogg .oga AddType video/ogg .ogv AddType application/ogg .ogg However, it doesn't work. The console does not show any errors except: "All candidate resources failed to load. Media load paused." If you try this example from w3schools, I get a similar problem: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_audio_all It doesn't work here either, and the console shows this, expectantly, for the mp3 file: "Specified 'type' attribute of 'audio/mpeg' is not supported. Load of media resource horse.mp3 failed." But here, too, there's no specific error that explains why the ogg isn't loading. It simply says, again, "All candidate resources failed to load. Media load paused." Edit: Safe mode did not help. Neither did reinstallation. I do not experience this issue with Firefox 18.0

由cperryk于修改

所有回复 (6)

more options

由cperryk于修改

more options

hello cperryk, the demo you posted works fine for me in firefox 17 & 19. can you try to replicate the bug you're seeing when you launch firefox in safe mode once? if not, maybe an addon is interfering & blocking content here...

Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems

more options

Thank you, madperson. But starting in safemode did not solve the problem for me.

more options

Does that ogg file play if you open the file via the location bar?

more options

No, it does not. When I access the audio file directly, I see a player but the audio never loads.

more options

It's real bug. If sample rate of ogg stream is same as sample rate of audio device you will have silence. Possible to just change sample rate of audio device (last tab in device properties) to 48000Hz. It's not popular rate for web, most files will be playing fine