Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Audio player shows and disappear in Firefox

  • 2 risposte
  • 25 hanno questo problema
  • 16 visualizzazioni
  • Ultima risposta di snstar2006

more options

I try to use HTML5's audio tag to play a music file on my site. This is my syntax: <audio controls="controls"> <source type="audio/ogg" src="/portals/0/BelizeNationalAnthem.ogg"></source>
<source type="audio/mp3" src="/portals/0/BelizeNationalAnthem.mp3"></source>
</audio>

The problem I am encountering is that when I refresh my page, I can see the player, but only for a few seconds, then it fade out. I have tried using my Firefox to visit some other sites that use the same HTML5 audio tag, and it works fine. I try to visit my page in Chrome and IE normally. So I don't understand what is causing my Firefox to fade out the music player.

I try to use HTML5's audio tag to play a music file on my site. This is my syntax: &lt;audio controls="controls"&gt; &lt;source type="audio/ogg" src="/portals/0/BelizeNationalAnthem.ogg"&gt;&lt;/source&gt;<br/> &lt;source type="audio/mp3" src="/portals/0/BelizeNationalAnthem.mp3"&gt;&lt;/source&gt;<br/> &lt;/audio&gt; The problem I am encountering is that when I refresh my page, I can see the player, but only for a few seconds, then it fade out. I have tried using my Firefox to visit some other sites that use the same HTML5 audio tag, and it works fine. I try to visit my page in Chrome and IE normally. So I don't understand what is causing my Firefox to fade out the music player.

Modificato da snstar2006 il

Soluzione scelta

this is because the ogg-vorbis encoded file is not present on the server at the specified location

Leggere questa risposta nel contesto 👍 1

Tutte le risposte (2)

more options

Soluzione scelta

this is because the ogg-vorbis encoded file is not present on the server at the specified location

more options

Well, the file does exist on the server, but the server returns "File Not Found" error code because the MIME type for OGG files is not configured. Thanks