Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 803 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 803 Bytes

VideoJS Sharetools

A customizable share tools plugin for videojs

Usage

Include the plugin:

<script src="videojs.sharetools.js"></script>

Initialize it, and add your share urls:

plugins: {
  sharetools: {
    embed: function(settings) {
      return "<div>Whatever you want!</div>"
    }
  }
}

Options

  • facebook a function that will get called with the options object passed to it.
  • twitter a function that will get called with the options object passed to it.
  • embed a function that will get called with the options object passed to it.

Using the Example

To run the testing platform:

$ bower install
$ cd example
$ npm install
$ node web.js

A browser window will open up to the location of the testing platform.