This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Audio player shows and disappear in Firefox

  • 2 பதிலளிப்புகள்
  • 25 இந்த பிரச்னைகள் உள்ளது
  • 10 views
  • Last reply by snstar2006

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.

snstar2006 மூலமாக திருத்தப்பட்டது

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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

Read this answer in context 👍 1

All Replies (2)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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

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