Output will appear here after link is clicked

Establishing player via javascript and setting the link handler immediately.

  1. <script>
  2.  
  3. // Set up a function to "ping" when the link icon is clicked in the playlist.
  4. function myLinkHandler(itemData){
  5. var see = "";
  6. // Set the playlist
  7. for(var prop in itemData){
  8. see += prop + " : " + itemData[prop] + "<br>";
  9. }
  10. var outputObj = document.getElementById("output");
  11. outputObj.innerHTML = see;
  12. }
  13.  
  14. // Create a new player
  15. var player = new wimpyPlayer({
  16. linkEnable : 1
  17. });
  18.  
  19.  
  20. // Setting the "setLinkHandler" to the "myLinkHandler" function.
  21. player.setLinkHandler(myLinkHandler);
  22.  
  23.  
  24.  
  25. </script>
  26.  
  27.  
  28. <pre id="output">Output will appear here after link is clicked</pre>
giItT1WQy@!-/#