Loads a playlist using the "onReady" method.

  1. <script>
  2.  
  3. // Set up a function to "ping" once the player
  4. // is set up and ready to be interacted with.
  5. function doit(playerHandle){
  6. // Set the playlist
  7. player.setPlaylist("../song1.mp3|../song2.mp3");
  8. }
  9.  
  10. // Create a new player, setting the "media" option
  11. // to "none" so no playlist will load at start up
  12. // (over-riding the automatic playlist feature).
  13.  
  14. var player = new wimpyPlayer({
  15. media : "none"
  16. });
  17.  
  18. // Setting the "onReady" to the "doit" function.
  19. // Once the player is ready, the "doit" function will execute.
  20. player.onReady(doit);
  21.  
  22. </script>
giItT1WQy@!-/#