Forum Moderators: phranque
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?
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 ]
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.
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.