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

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

Does Firefox 22 no longer permit autoplay of audio/video?

  • 2 antwoorde
  • 5 hierdie probleem
  • 1 view
  • Laaste antwoord deur j_pruett

more options

I built some websites using <embed src="xyz.mp3" autostart="true" loop="false" hidden="true"></embed> to autoplay some audio, and it used to work in Firefox up until release 21 or 22 -- my audio no longer plays. Is my code now obsolete or does Firefox now disallow autoplay? Notes: (1) other browsers still autoplay; (2) not all sound is blocked in Firefox -- I can still play and hear Youtubes, for example.

I built some websites using <embed src="xyz.mp3" autostart="true" loop="false" hidden="true"></embed> to autoplay some audio, and it used to work in Firefox up until release 21 or 22 -- my audio no longer plays. Is my code now obsolete or does Firefox now disallow autoplay? Notes: (1) other browsers still autoplay; (2) not all sound is blocked in Firefox -- I can still play and hear Youtubes, for example.

Gekose oplossing

If the embed has a hidden attribute then Firefox will not play the file, so you need to use other ways if you really want to hide the player (CSS: style="height:0; width:0;")
You may also need to use autostart="1" instead of true.

  • Bug 890516 - Embedded audio stopped working after installing FF 22
  • Bug 614825 - <embed> should be display:none; when hidden attribute is set

Please DO NOT comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

Lees dié antwoord in konteks 👍 1

All Replies (2)

more options

Gekose oplossing

If the embed has a hidden attribute then Firefox will not play the file, so you need to use other ways if you really want to hide the player (CSS: style="height:0; width:0;")
You may also need to use autostart="1" instead of true.

  • Bug 890516 - Embedded audio stopped working after installing FF 22
  • Bug 614825 - <embed> should be display:none; when hidden attribute is set

Please DO NOT comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

Gewysig op deur cor-el

more options

Tried your suggestion and found that in order for Firefox to autoplay, height="0" is OK, but width had to be set to "1" -- "0" resulted in NO autoplay. This results in 1 off-color pixel at the point of player placement, but it's a cheap price to pay for functionality.

Thanks for the help and the quick response.