hello
i have used the resource page example to add a mp3 in my homepage its running fine ,can i auto play the mp3 so that when every my homepage is opened it will automatically play the mp3,i have only a single mp3 in my homepage so there is no problem in auto playing the mp3 i suppose.
i have tried inserting the autoplay code in mp3.ss file under dataobject_manager/code/mp3/
ORIGINAL CODE
<% require javascript(dataobject_manager/code/mp3/audio-player.js) %>
<object type="application/x-shockwave-flash" data="$SWFLink" id="audioplayer1" height="24" width="290">
<param name="movie" value="$SWFLink">
<param name="FlashVars" value="playerID={$Count}&soundFile={$MP3Link}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
CHANGED CODE
<% require javascript(dataobject_manager/code/mp3/audio-player.js) %>
<object type="application/x-shockwave-flash" data="$SWFLink" id="audioplayer1" height="24" width="290">
<param name="movie" value="$SWFLink">
<param name="FlashVars" value="playerID={$Count}&soundFile={$MP3Link}" &autostart="true">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
changed in the last part of 4th line(added)
&autostart="true"
Please help me in autoplaying the mp3 file
thank you in advance