looking for wordpress help .

sam.hunt0710

Elite Member
Executive VIP
Jr. VIP
Joined
Jan 8, 2010
Messages
13,685
Reaction score
7,737
I have wordpress installed on one of my domain where i want to play a music file (mp3) its of 30 seconds whenever someone opens my site ,

I have added this code just after <head>

<embed autostart="true" height="0" loop="true" src="http://examplexyz.com/wp-content/uploads/2014/06/08-example123.mp3" width="0"/>

But its playing only for once , how to make it play continuously , removed my domain name and mp3 name.

Thanks
 
Try:

<embed autostart="true" height="0" LOOP=999 PLAYCOUNT="999" src="http://examplexyz.com/wp-content/uploads/2014/06/08-example123.mp3" width="0"/>

Or:

<embed autostart="true" height="0" LOOP="true" PLAYCOUNT="999" src="http://examplexyz.com/wp-content/uploads/2014/06/08-example123.mp3" width="0"/>


If not, it could be something in Wordpress blocking it?
 
Sorry bro , I have tried both but still the mp3 file is playing for 1 time.



<embed autostart="true" height="0" LOOP=999 PLAYCOUNT="999" src="http://examplexyz.com/wp-content/uploads/2014/06/08-example123.mp3" width="0"/>

Or:

<embed autostart="true" height="0" LOOP="true" PLAYCOUNT="999" src="http://examplexyz.com/wp-content/uploads/2014/06/08-example123.mp3" width="0"/>
 
Can anyone correct this code , Bumping this thread.
 
What browser did you use to test? Firefox should not play your file atall, because it's an mp3. Try converting to ogg for cross browser compatibility.


Edit:

Try the following code instead. It is optimized for both older and newer browsers:

Code:
<EMBED SRC="/audio/media.mp3" AUTOSTART="true" HIDDEN="True" LOOP="True"/>
<NOEMBED>
    <object type="audio/mp3" data="http://www.domain.com/audio/media.mp3"><param name="src" value="http://www.domain.com/audio/media.mp3"></param><param name="autostart" value="true"></param><param name="hidden" value="True"></param><param name="loop" value="true"></param>
    </object>
</NOEMBED>
 
Last edited:
Back
Top