A customizable share tools plugin for videojs
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>"
}
}
}
facebook
a function that will get called with theoptions
object passed to it.twitter
a function that will get called with theoptions
object passed to it.embed
a function that will get called with theoptions
object passed to it.
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.