Forums

WP Audio Player's autoplay not working? (2 posts)

  1. danlm
    Member
    Posted 1 year ago #

    I've installed the WordPress Audio Player on my website (not a WP blog) and followed the guide from here: http://wpaudioplayer.com/installation

    I can get the audio to play fine but I want it to auto play when the page loads. It says on the FAQ page that to autostart I need to add this:

    [audio:http://www.domain.com/path/to/your_mp3_file.mp3|autostart=yes]

    But [audio:... isn't in any of the code. All I have which refrences the .mp3 file is this code:

    <p id="audioplayer_1">Alternative content</p>
             <script type="text/javascript">AudioPlayer.embed("audioplayer_1", {soundFile: "http://www.domain.com/path/to/your_mp3_file.mp3" });
             </script>

    So I added |autostart=yes after .mp3 so it became {soundFile: "http://www.domain.com/path/to/your_mp3_file.mp3|autostart=yes" });

    But that didn't make it auto play. Where do I add |autostart=yes ?

    Any help would be really appreciated.

    Thanks,

    Dan

  2. danlm
    Member
    Posted 1 year ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic