API - appendPlaylist

  1. <script>
  2.  
  3.  
  4. function doit3(){
  5. // An array containing 2 Track Datasets
  6. var list = [
  7. {
  8. file:"../song1.mp3",
  9. title:"Mixer",
  10. album:"Miserable Songs",
  11. artist:"Michael Gieson"
  12. },
  13.  
  14. {
  15. file:"../song2.mp3",
  16. title:"Sleeping",
  17. album:"Miserable Songs",
  18. artist:"Michael Gieson"
  19. }
  20. ]
  21. // Grab a handle to our player object and append the list.
  22. wimpy.getPlayer("myPlayer3").appendPlaylist(list);
  23. }
  24. </script>
  25.  
  26.  
  27. <div id="myPlayer3" data-wimpyplayer data-sort="none" data-media="../song3.mp3|../song1.mp3" data-skin="../wimpy.skins/301.tsv"></div>
  28.  
  29. <p>
  30. </p><p><input type="button" onclick="doit3();" value="Add 2 tracks"></p>
  31. <p>
giItT1WQy@!-/#