Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

When I open a web page I've built on my computer, the music doesn't play. It will play if I open it in IE.

  • 6 réponses
  • 23 ont ce problème
  • 4 vues
  • Dernière réponse par blindsey2

more options

I build web pages on my computer and before I updated Firefox I could hear the music when I opened the page. Since I updated Firefox the music will not play. If I open the page in IE the music plays fine. When I go to my website on the internet, the music plays fine. It only happens when I open a page on my computer. I have Windows XP. I have downloaded all the newer plugins but nothing helps.

I build web pages on my computer and before I updated Firefox I could hear the music when I opened the page. Since I updated Firefox the music will not play. If I open the page in IE the music plays fine. When I go to my website on the internet, the music plays fine. It only happens when I open a page on my computer. I have Windows XP. I have downloaded all the newer plugins but nothing helps.

Solution choisie

You need to specify a MIME type attribute.
Otherwise Firefox doesn't know which plugin to use.
Using type="application/x-mplayer2" will use the Windows Media player.


<EMBED src="foldername/wav name.wav" loop="TRUE" HIDDEN="TRUE" type="application/x-mplayer2">

<embed src="lessons/CarrieUnderwood-LessonsLearned.wav" loop="true" hidden="true" type="application/x-mplayer2"> 
Lire cette réponse dans son contexte 👍 1

Toutes les réponses (6)

more options

Without seeing the site, this is just a guess, but you are possibly using bgsound to play the music. That is Internet Explorer coding that does not work in other browsers.

For details on fixing it see http://www.w3.org/wiki/HTML/Elements/bgsound and http://kb.mozillazine.org/Background_music_does_not_play

more options

Thanks for your reply. I don't use bg sound on my pages. I always use <EMBED src="foldername/wav name.wav" loop="TRUE" HIDDEN="TRUE"> example on my newest page: <embed src="lessons/CarrieUnderwood-LessonsLearned.wav" loop="true" hidden="true"> This always worked before I upgraded Firefox

more options

Solution choisie

You need to specify a MIME type attribute.
Otherwise Firefox doesn't know which plugin to use.
Using type="application/x-mplayer2" will use the Windows Media player.


<EMBED src="foldername/wav name.wav" loop="TRUE" HIDDEN="TRUE" type="application/x-mplayer2">

<embed src="lessons/CarrieUnderwood-LessonsLearned.wav" loop="true" hidden="true" type="application/x-mplayer2"> 
more options

Wow !! That did the trick. Thank you cor-el. I'll use that on the other pages I've built. This lets me check to make sure the song is playing right. My website is http://artisanwithin.com

more options

Is there any change this will be corrected without having to rewrite code? I only ask because I just created a large family website on CD (and directed people to use Firefox) and now none of the sounds work on the new Firefox. Any guesses why was this change made anyway? It is it more secure or something?

more options

My music plays on my website with the new Firefox. It was only on my computer that it wouldn't play. Thanks to cor-el's suggestion I added the new code to the pages I had built and the new ones I make and it works fine. I don't know if Firefox is working to correct the problem or why it happened. This is the code I now put on my pages I build changing "musicname" to the song I want to use. <embed src="folder/music name.wav" loop="true" hidden="true" type="application/x-mplayer2">