1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

looking for wordpress help .

Discussion in 'Blogging' started by sam.hunt0710, Jun 27, 2014.

  1. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    3,393
    Likes Received:
    1,233
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
    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
     
  2. Apricot

    Apricot Administrator Staff Member Moderator

    Joined:
    Mar 26, 2013
    Messages:
    11,968
    Likes Received:
    6,456
    Gender:
    Female
    Occupation:
    BHW Moderator
    Location:
    London
    Home Page:
    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?
     
  3. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    3,393
    Likes Received:
    1,233
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
    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"/>
     
  4. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    3,393
    Likes Received:
    1,233
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
  5. IMCapitalist

    IMCapitalist Senior Member

    Joined:
    Jan 21, 2014
    Messages:
    1,090
    Likes Received:
    60
    Location:
    Google Universe
    this works on my site!
     
  6. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    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: Jun 30, 2014