WordPress.org

Ready to get started?Download WordPress

Forums

SE HTML5 Album Audio Player
Playlist starts Open (6 posts)

  1. mtingle
    Member
    Posted 6 months ago #

    Great plugin, very useful.

    Would love to find a way to have the playlist already open as opposed to having to press a button to view it. Is there an easy way to achieve this?

    Thanks for a cool plugin.

    http://wordpress.org/plugins/se-html5-album-audio-player/

  2. sreed27
    Member
    Posted 6 months ago #

    I call this jQuery function on load to do the trick (just implemented it today in fact. Let me know if it works for you. I have this saved outside of the plugin so it doesn't get written over on updates.

    function openPlaylist(){
    (function($) {
    $('.se_albumplayer .playlistWrap').css('display','block');
    })(jQuery);

    }

  3. mtingle
    Member
    Posted 6 months ago #

    excellent! Works a treat. Thanks sreed27.

    For those needing a little extra info I added this to the header of my theme in the <header> area:

    <script>
    function openPlaylist(){
    (function($) {
    $('.se_albumplayer .playlistWrap').css('display','block');
    })(jQuery);
    
    }
    </script>

    And then I added this to the <body> code:

    <body onload="openPlaylist()">

  4. mtingle
    Member
    Posted 6 months ago #

    one thing I noticed sreed27, is that once a track is selected from the playlist, the playlist collapses again. Any easy fix to prevent this from happening?

  5. sreed27
    Member
    Posted 6 months ago #

    Hmm. Yes that does bother me too. I dug into the plugin code, and it looks like the playlistWrap.slideToggle() method is being called on four different lines. I tried commenting it out, which did keep the player from collapsing, but doing so did cause a few other errors (playback progress stopped working and songs did not automatically play on to the next)...Hope that helps a little. I'm going to live with the collapsing for now.

  6. mtingle
    Member
    Posted 6 months ago #

    I've managed to get it to work by adjusting the app.min.js file directly.

    I searched for '.slideToggle()' and removed them all. note I removed the '.' at the beginning also.

    No errors so far and tracks play continuously.

    I also changed it so that if you click the picture of the album it starts playing. I did this by changing the 'class' of the image on line 71 of functions.php to:

    class="playPauseBtn icon-play bttn"

    thanks for the coding tips.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags