Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

How do I fix the HTML5 audio player code on my website?

  • 1 відповідь
  • 5 мають цю проблему
  • 2 перегляди
  • Остання відповідь від cor-el

more options

I have a website, the URL is <theortegafamily.net> currently, and I use it for my music. I use the HTML5 audio player in the website, and you'll notice that on Firefox it works on the <theortegafamily.net/music.html> page, but not on the <theortegafamily.net/Our_Stuff/Nicolas/my_music.html> page. However, if you go to these two pages on Chrome, it does work.

I looked at the w3schools page on HTML5, and yes, I have all three audio formats there, you can even look at the code and you'll see that it's there.

So what I was wondering is if there's a simple way for me to just change the code on the website a little and it will work, or if it's a Mozilla problem and I'll have to wait for Mozilla to fix it.

I have a website, the URL is <theortegafamily.net> currently, and I use it for my music. I use the HTML5 audio player in the website, and you'll notice that on Firefox it works on the <theortegafamily.net/music.html> page, but not on the <theortegafamily.net/Our_Stuff/Nicolas/my_music.html> page. However, if you go to these two pages on Chrome, it does work. I looked at the w3schools page on HTML5, and yes, I have all three audio formats there, you can even look at the code and you'll see that it's there. So what I was wondering is if there's a simple way for me to just change the code on the website a little and it will work, or if it's a Mozilla problem and I'll have to wait for Mozilla to fix it.

Усі відповіді (1)

more options

It isn't the code, but likely caused because the media files are encoded with an unsupported codec.

In the first link the .wav file is played (right click: copy audio location) because the ogg file doesn't work and mp3 is not supported by Firefox.

If you want the ogg links to work you will probably have to recode them with the Theora codec.