This is a small JW Player Plugin to use if you want to display a download button on your player, to allow users to download the currently playing media file.
There is one file that you need to use, download.js. Upload this file to your server, it can go anywhere on the server. Now, inside of your JW Player embed code, make sure that your plugins call points to the full path to the .js file on your server (http://www.yoursite.com/download.js).
<script type="text/javascript" src="jwplayer.js"></script> <div id="player"></div> <script type="text/javascript"> jwplayer('player').setup({ 'width': '575', 'height': '400', 'file': 'video.mp4' 'image': "video.jpg", plugins: { "download.js": { } } }); </script>
The source code is available for this plugin. There is just a .js file for JavaScript. Publishing the JavaScipt can be simply done with any text editor. Enjoy~! :)