We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Şu anda bakım nedeniyle sitemiz kısıtlı işlevsellik sunmaktadır. Mevcut makaleler sorununuzu çözmediyse ve bize soru sormak isterseniz Twitter’da @FirefoxSupport hesabından ve Reddit’teki /r/firefox subreddit'inden destek gönüllülerimize ulaşabilirsiniz.

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

I made a memorial page for my son; the music plays on Chrome and Opera, but not on Firefox--why?

  • 4 yanıt
  • 4 kişi bu sorunu yaşıyor
  • 4 gösterim
  • Son yanıtı yazan: DCKGranny

more options

The page is at: http://www.angelrob.com/33bday/33rd.html

On both Chrome and Opera, the song I embedded, "Stardust," will play. It does not play on Firefox. (I bought the song from Amazon to use on this page.) Is there some coding I'm missing for Firefox?

The page is at: http://www.angelrob.com/33bday/33rd.html On both Chrome and Opera, the song I embedded, "Stardust," will play. It does not play on Firefox. (I bought the song from Amazon to use on this page.) Is there some coding I'm missing for Firefox?

Seçilen çözüm

Both object and embed require a plugin. Try this:

<audio src="Stardust.mp3" autoplay>
  <object data="Stardust.mp3" type="application/x-mplayer2" width="0" height="0">
    <param name="filename" value="Stardust.mp3">
    <param name="autostart" value="1">
    <param name="playcount" value="true"> 
    <embed bgsound src="Stardust.mp3" Autostart="True" Hidden="True" Loop="True">
  </object>
</audio>

What that does is try to use a more modern method of playing the MP3 first, and if that doesn't work, uses your object tag for the Windows Media Player, and if that doesn't work, uses your embed tag for whatever other plugin the user might have that can play MP3s. Does it work for you in all the browsers you care about?

Bu yanıtı konu içinde okuyun 👍 2

Tüm Yanıtlar (4)

more options
more options

I went to the page you suggested, and read through it many times. But I am 73 and self-taught in html coding (made myself learn in 2002 when I wanted to make a memorial website for my 16-year-old son), and I don't understand the page you sent me to. Firefox seems to require so many things that the other browsers don't! Every explanation on that page seems to require going to other pages and downloading other plug-ins. Isn't there a simple way to get Firefox to recognize my primitive html coding using bgsound? HELP! Or should I just warn my family and friends not to use Firefox when viewing my son's memorial?

DCKGranny tarafından tarihinde düzenlendi

more options

Seçilen çözüm

Both object and embed require a plugin. Try this:

<audio src="Stardust.mp3" autoplay>
  <object data="Stardust.mp3" type="application/x-mplayer2" width="0" height="0">
    <param name="filename" value="Stardust.mp3">
    <param name="autostart" value="1">
    <param name="playcount" value="true"> 
    <embed bgsound src="Stardust.mp3" Autostart="True" Hidden="True" Loop="True">
  </object>
</audio>

What that does is try to use a more modern method of playing the MP3 first, and if that doesn't work, uses your object tag for the Windows Media Player, and if that doesn't work, uses your embed tag for whatever other plugin the user might have that can play MP3s. Does it work for you in all the browsers you care about?

more options

Thank you, jscher2000! I copied your entire code, but it produced multiple renditions of the song. First I cut out the <embed bgsound> part, but I could still hear Nat singing on 2 tracks, so then I cut out the <object data> part, and it now works perfectly on all the browsers I have tried. I had also previously downloaded a plug-in for Foxfire. I guess my antique code of <embed bgsound> is of no use anymore. I will have to go and fix my other webpages. Thank you for your help!