Giter Site home page Giter Site logo

emaxsaun / download Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 136 KB

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.

License: MIT License

JavaScript 100.00%

download's Introduction

Download

About this Plugin:

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.

Implementing this Plugin:

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).

Example:

<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~! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.