Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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

  • 6 respostas
  • 8 têm este problema
  • 2 visualizações
  • Última resposta por 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

Modificado por cperryk a

Todas as respostas (6)

more options

Modificado por cperryk a

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