title: Adding a button to JWplayer control bar to control javascript
body: <p>We feed JWplayer with an external playlist, and have an external button to shuffle this play list. I would like to move this button into the JWplayer control bar itself. </p>
  
  <p>I'm not a developer, I'm a designer - but, thanks to a link found on the JWplayer support forum I have been able to add a custom button to the control bar - via the skin.</p>
  
  <p><a href="http://www.longtailvideo.com/support/forum/Skins/13043/Adding-custom-buttons-to-the-control-bar" rel="nofollow noreferrer">http://www.longtailvideo.com/support/forum/Skins/13043/Adding-custom-buttons-to-the-control-bar</a></p>
  
  <p>However, I have a problem in getting the button to work. Speaking with the developer I need to provide an ExternalInterface function which will take the name of a javascript function (e.g. setShuffleFunction('window.toggleButton') ), and then call the javascript function with true/false (depending on the button state) when the button is clicked. I've spent hours looking in forums, and on Google and am unable to find an answer. Are you able to advise me? Thank you for your time.</p>
  
  <p>kind regards,
  Rob Willie</p>