Skip to content

theonion/videojs-sharetools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.