Open Bug 250855 Opened 20 years ago Updated 2 years ago

Mozilla should respect autoplay=false command in embed tag

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: gabrielseah, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040710
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040710

This page embeds a WMA file but autoplay is set to false. Nonetheless, Mozilla
automatically plays the WMA anyway, while IE respects the autoplay=false tag

Tag: <embed src="http://www.angelfire.com/art2/hai_ren101/DingDongSong.wma"
width="145" height="45" autoplay=false loop=false></embed>

Reproducible: Always
Steps to Reproduce:
1. Go to the webpage
2. Don't press the "play" button
3. Hear the techno music blare through your speakers



Expected Results:  
Respected the autoplay=false tag and not played the WMA until I clicked "play"
Confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Here's the problem with this, check out:
http://www.frolic.org/cjf

and you'll see that every file that is embedded will play at once.  You can see
how this will quickly annoy music fans who deal with sites with embedded music.
 I hope that this issue is assigned and given priority.

CJF
*** Bug 312409 has been marked as a duplicate of this bug. ***
Hi, i'm new here so still finding my way around. I am a developer for a company called Narrowstep and 
work on the player and have recently improved support for our player on Firefox.

I think i am finding similar effects the same bug with WMP ignoring the parameters in the embed tag 
(this is on Windows fx 1.0.7 and before only, Mac version seems fine - actually i realise i haven't tested 
the latest 1.5 beta - doing that next)

An example of one of our channels on the latest version is here**

    http://player2.narrowstep.tv/?player=hightv

You should see (on Windows) that the vcr control bar is visible (even though uiMode='none' etc) and the 
video is squashed down and looks a bit odd but on Mac it fills the frame (actually a div) properly.

I write the embed tag into the div dynamically so you can switch video (it is "on demand"!) without 
reloading the whole page - this may be relevant.

Let me know if i should enter this as a new bug and i'll try (but have enough of my own ones to deal 
with! ;)

jonny

**
The current released version (at http://high.tv does work at all well on fx) - we have lots of other 
channels - see http://www.narrowstep.com/ for more (that won't work right yet, but i expect you can 
work out where the new versions will be!)


P.S. Fx 1.5 Beta just tested on the http://www.frolic.org/cjf link on Mac.
Good news: nothing was playing on page load - bad news: app crashed when i clicked on both play 
buttons then paused one (mind you, same behaviour on Fx 1.0.7 Mac, PBF - Probably Bill's Fault)

(In reply to comment #4)
> (this is on Windows fx 1.0.7 and before only, Mac version seems fine - actually i realise i haven't tested  the latest 1.5 beta - doing that next)

Have now checked in Fx 1.5 beta 2 on Windows and the bug is still there.
This problem also exists with the newer OBJECT tags:

<object ....>
<param name="autoplay" value="false">
.....
</object>
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1b1) Gecko/20060802 SeaMonkey/1.1a
changing URL to that of comment #2 http://www.frolic.org/cjf/
as original URL doesn't contain music.
removed: http://chasmosaurine.blogspot.com/
I'd like to look into this soon.
Assignee: nobody → joshmoz
The way autoplay=false gets respected is we pass a list of attributes to the plugin and the plugin decides what to do with them. I just test this with the MOZILLA_1_8_0_BRANCH (Firefox 1.5) with a local MP3 file that played with Quicktime on Mac OS X and it worked just fine.

Can anyone still reproduce this? We do seem to be correctly passing attributes to plugins, if they aren't doing the right thing with them there is nothing we can do.
Josh: visit http://www.frolic.org/cjf/ and see if you can figure out if the plugin is at fault. Both players start playing using Firefox 1.5.0.7 on Windows XP. Note that this page uses AUTOSTART=false, but the same goes when AUTOPLAY=false is used.
I looked at that page, and the code looks like it should be working. What happens if you wrap the embed in an object tag and put autoplay/autostart=false in the object tag? I have not tested autoplay with WMA, could be a problem with the plugin.
I finally get what this bug is about - stuff with object tags works fine but it is embed tags in particular that don't work. I can fix that I think.
Thanks for getting on to this Josh, sorry i didn't manage to reply earlier but i wanted to make a clear, uncluttered test page to demonstrate the problem, which i have now done, and this can be found at:

    http://nospaces.net/wmpfxtest/

Works fine (obeys embed attributes) on Mac OS (e.g. 10.4/Fx 1.5.0.7/ WMP 9.0), but not on any Fx (without GeckoActiveX) on any version of Windows.

Hope this helps!
OS: Windows XP → All
Hardware: x86 → All
Assignee: joshmoz → nobody
Component: Plug-ins → Layout
QA Contact: plugins → layout
I recently discovered this bug when using nested <object> tags in Firefox 7.  In particular this seems to be a problem with the plugin embedded in Firefox that handles ogg playback.  It appears this plugin does not respect the autoplay parameter.  To make matters worse, even if the object isn't rendered in the browser, the file begins to play in the background with no way for the user to stop it.  In this example Flash is the preferred object and will play the MP4 movie correctly if installed and the play button is pressed.  At the same time, the OGV object starts playing, even though it should be ignored and is not rendered on the page.  Example page is here:

http://nabber.org/?RWwYBg

I know this bug is old but I think it deserves another look given that this is not standards compliant behavior because of rendering of more than one nested object tag.
I just found another bug for the <object> tag variant, I suspect they are closely related:

Bug 516070 - <object> tag autoplays when told not to
Firefox 9.0 was just released, my test page (using object) is still misbehaving.
With the new H.264 support on Windows 7 and Firefox 21.0 this is also a problem with video/mp4 playback, likely the plugin that handles that as well.  Perhaps it is the same plugin as for wma?
I have this issue too. Opened www.fastweb.it and annoying music and video are played without my consent. This never happen on Chrome.

I read about how to disable media to be automatically played but found a bug.
You have to digit about:config on the browser than     "This might void your warranty!" warning page may appear.
    Click I accept the risk! to continue to the about:config page. 

Search for media.autoplay.enabled and set to false.

but ... if i open now fastweb.it video is paused and if i click on the center of the screen for start the video the video doesn't start. 

Well this bug has been opened for so long time!
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 12 votes.
:dholbert, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dholbert)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(dholbert)
You need to log in before you can comment on or make changes to this bug.