7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » autoplay mp3
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1620 Views |
-
autoplay mp3

3 February 2010 at 5:38am
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 -
Re: autoplay mp3

4 February 2010 at 6:38am Last edited: 12 February 2010 2:07am
Any help plz...
i am using uncle C media example to upload mp3 and i hav eonly one mp3 in my page which i want to autoplay .means it should start playing the moment page is open,at the moment player is showing on the page and its playing when i am clicking on play button..
Special request to uncle C -
Re: autoplay mp3

12 February 2010 at 3:30am
It appears to me that the plugin doesn't support autoplay, and with good reason. Forcing someone to listen to music on a webpage is one of the most obnoxious choices a developer can make. It's right up there with animated background images.
I don't know the specifics of your project, but if I were visiting your site and all of a sudden an MP3 started playing that I didn't ask for, I'd not only leave the site, I'd be pretty angry, too.
If it's a must-have, then I think you need to look into a different flash audio player. But please, for the love of all that is sane on the Internet, avoid this at all costs.
-
Re: autoplay mp3

6 March 2010 at 7:17am
thanks for your reply UC,even i dont wants to have a autoplay in the page but my project demands a autoplay fora specific page.
| 1620 Views | ||
|
Page:
1
|
Go to Top |

