Google Ad

Working with playlist Audio Player with Playlist V2 PHP Script


Working with playlist Audio Player with Playlist V2 PHP Script

 

This section explains how to load a playlist on start (using activePlaylist, activeItem options)

Audio playlist example:

 
 
  1. <ul id="playlist-audio1">
  2. <li class="hap-playlist-item" data-type="audio" data-mp3="../mp3-dir/audio1main/01.mp3"></li>
  3. <li class="hap-playlist-item" data-type="audio" data-mp3="../mp3-dir/audio1main/02.mp3"></li>
  4. <li class="hap-playlist-item" data-type="audio" data-mp3="../mp3-dir/audio1main/03.mp3"></li>
  5. </ul>

 

To load this playlist on start use this settings:

 
 
  1. activePlaylist:"playlist-audio1",
  2. activeItem:0,

 

Soundcloud playlist example:

 
 
  1. <ul id="playlist-soundcloud1">
  2. <li class="hap-playlist-item" data-type="soundcloud" data-path="http://soundcloud.com/trance/sets/magix-revolta-2/" data-limit="12" data-download=""></li>
  3. </ul>

 

To load this playlist on start use this settings:

 
 
  1. activePlaylist:"playlist-soundcloud1",
  2. activeItem:0,

 

 

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

"