vusov
asked on
Ho to disable audio of the SWF file in Java Script (HTML)
Hello All.
Could you suggest some solutions to disable audio of the .swf file using Javascript or HTML. I use <object> tag to show swf. Maybe should be some additional parameter?
Could you suggest some solutions to disable audio of the .swf file using Javascript or HTML. I use <object> tag to show swf. Maybe should be some additional parameter?
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width='80' height='80' align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value='some.swf' />
<param name="quality" value="high" />
<param name="scale" value="default" />
<param name="autoplay" value="false" />
<param name="volume" value="0" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src='some.swf' quality="high" bgcolor="#ffffff"
name="banner" align="middle" scale="default" wmode="transparent" allowscriptaccess="sameDomain"
allowfullscreen="false" autoplay="false" volume="0" width='80' height='80' type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Try the param "mute" and set it to "true". Comment back to see if it works.
ASKER
Caracena, thanks for replay. I tried this param and sound is not disabled.
Tried both in the object and embed tags? Hmm... that's strange. Try setting the autoplay to true and see what happens. If it does load without sound, then there's something causing not to load the volume values when the user starts the play on click.
ASKER
Nothing help, could you try my example http://sprava.dyndns.org/test.html
Thank you for your time
Thank you for your time
Hmm... I really thought it was a streamed movie but this is different. It seems like the SWF is treated like it was a gif. It is making a progressive download and I don't think you can play with it's sound properties. I think your best shot is to mute th SWF from Flash directly and if you want the user to start playing a sound, add a button for that in the movie.
You could also make the sound NOT start but play when the user passes it's mouse over or somthing like that... depends on what you want.
ASKER
Thank you Caracena. As I understand I need to change the SWF file, but the file is uploaded by user and it's shown on my page. So I cannot change the file. I thought should be some settings of the Flash Player that controlled sound volume.
Ok now I understand your predicament. I'll try and do some further research and if I find any way to work around your problem I'll tell you,.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks