Forum Moderators: phranque

Message Too Old, No Replies

Is Mozilla ignoring AUTOSTART=FALSE?

Mozilla plays embedded media content however the AUTOSTART parameter is set

         

Dj_Apx

5:41 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



Hi all

I've had lots of reports from visitors browsing my website with Mozilla/Firefox, that when they come to the media listening page, all the media content (more than 20 embedded players) plays at once.

Mozilla seems to be ignoring the AUTOSTART and AUTOLOAD parameters, which are both set to FALSE; while it works well in IE.

Since i think it's forbidden to give URLs in here, i'll just post a copy of the code :


<embed src="../audio/*****.wma" width=100% height="25" autostart="false" loop="false" align="middle" type="../audio/x-ms-wma" autoplay="false" autoload="false" autostart=false enableContextMenu="false" title="****">

Which source code should i use to prevent the embedded content from playing in mozilla or firefox agents?

iamlost

9:17 pm on Feb 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<embed> is/was a proprietary Netscape tag and is not part of the HTML 4 or xHTML 1 specifications due to its rather odd "free-attribute" concept - its attributes depend on which plug-in is being called.

HTML 4 and xHTML 1 utilise <object>:
[w3.org ]

The use of <embed> within <object> is now deprecated athough you could use it for backwards compatibility if absolutely necessary:
[w3.org ]

iamlost

9:19 pm on Feb 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sorry for my oversight:

Welcome to WebmasterWorld, Dj_Apx!

Dj_Apx

10:12 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



thanks ;-)

I'll try with <object > then
What dissuaded me from using object is, when i tried to open the Mozilla official test page for AUTOLOAD=FALSE content (real player audio), it used an OBJECT tag and worked fine in mozilla.

However, IE considered the page as "using unprotected parameters for the activeX control" or something like that... i don't want my visitors to have such warning windows on browsing.

I'll make a test with object and see what happens.

iamlost

1:12 am on Feb 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes there is a problem.
W3C has its HTML <object> tag and IE has its ActiveX <object> tag.

The IE version wants its proprietary "classid" and "codebase" attributes which cause W3C compliant browsers to choke. The compliant browsers want a "data" attribute that chokes IE. Loverly.

The problem(s) got the most attention with Flash but Quicktime and other such programs have the same difficulties.

For some guidance do a search for "flash satay" and you'll find lots of code examples and discussion. The solution(s) are simplier if streaming is not a requirement.