Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Member Elvedin's Avatar
    Join Date
    Jan 2013
    Location
    Bosnia And Herzegowina
    Posts
    78
    Member #
    35009
    Hello

    I found an interesting single button music player for my website called UbaPlayer
    Now i dont know how to make the music auto starting when page loads . So dont know where is the option AutoPlay...

    This code is placed in <head> section >
    Code:
    <link rel="stylesheet" type="text/css" media="screen" href="styles.css">
    <script src="jquery.js"></script>
    <script src="jquery.ubaplayer.min.js"></script>
    <script>
                $(function(){
                    $("#ubaPlayer").ubaPlayer({
                    codecs: [{name:"MP3", codec: 'audio/mpeg;'}]
                    });
    });
            </script>
    This code is places in body >
    Code:
    <ul class="controls">
                <li><a class="audioButton" href="mp3/intro.mp3"></a></li>
    </ul>
    So how to make this player autoplay on page load , thank you very much

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Member Elvedin's Avatar
    Join Date
    Jan 2013
    Location
    Bosnia And Herzegowina
    Posts
    78
    Member #
    35009
    I saw all this posts and i tried every solution , but nothing is working .
    So can you test it , and then give me codes that will work , thank you very much.

  5. #4
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    More than likely, you're trying to run a non-supported version of the .js file ( he had a statement in the beginning of the tutorial ), make sure you have the latest version of all his file.

    Warning..... Autoplay of ANY audio when a page loads in just bad etiquette ... Me personally, if I visit a page and music starts playing... I hit the back button... Normally, I'm listening to music that I want to hear when I'm browsing the Internet, so if someone has an autoplay set, it plays on top of mine...

    Most users will more likely stay around and even listen if you give them the control to turn music off and on.

  6. #5
    Member Elvedin's Avatar
    Join Date
    Jan 2013
    Location
    Bosnia And Herzegowina
    Posts
    78
    Member #
    35009
    Hi Webzarus , personally i dont like autoplay too , but I am building an website for one Car school and they want this music auto playing . So I downloaded this UbaPlayer again from here > http://www.brianhadaway.com/ubaplaye...lash-fallback/ and this should be the last version , he is explaining this code is auto play :
    Code:
    <script>
    $(function(){
        $("#ubaPlayer").ubaPlayer({
              autoPlay: $('.audioButton').eq(0)
        });
    </script>
    And my currently code is that :
    Code:
    <script>
                $(function(){
                    $("#ubaPlayer").ubaPlayer({
                    codecs: [{name:"MP3", codec: 'audio/mpeg;'}]
                    });
    });
            </script>
    If I repleace it , the player is not working anymore normaly , After clicking on button web browser is opening this sound like that > http://www.domain.com/sound.mp3

    And it should stay playing on http://www.domain.com on this button

    So maybe there should be an combination with codecs and autoplay.. But however its not autoplaying with this code. So please can you try it youself and if u figure it out send me the codes please ?

    Thank you very much

  7. #6
    Member Elvedin's Avatar
    Join Date
    Jan 2013
    Location
    Bosnia And Herzegowina
    Posts
    78
    Member #
    35009
    I know i am borring with this damn player , but please .. I need the solution as soon as possible .
    Take a look on that and give me the right solution to turn on autoplay on this damn player.
    before posting , please try youself and if its working send me , thank you very much

  8. #7
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    So what browsers is this happening in ? As the code works as designed on my local test server... Perhaps its a browser issue ...

    BTW... ie8 started with a setting allowing users to disable autoplay of music, by default its turned to allow, but if you tweak your security settings to high... It changes the value to not allow.

    I'm sure other browsers have that setting as well. Might want to look in that direction.

  9. #8
    Member Elvedin's Avatar
    Join Date
    Jan 2013
    Location
    Bosnia And Herzegowina
    Posts
    78
    Member #
    35009
    I am using google chrome , but another player called podsnack worked normaly on all browsers , it was always autoplaying .. But this one wont :S Can you give me the codes that you used ?

  10. #9
    Member Elvedin's Avatar
    Join Date
    Jan 2013
    Location
    Bosnia And Herzegowina
    Posts
    78
    Member #
    35009
    Okay , if no1 know an solution how to fix that , do anyone know any player with single button , where i can set custom button ? and to enable autoplay ? Thank you


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

css song player

,

small css music player

Click on a term to search for related topics.
All times are GMT -6. The time now is 09:39 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com