vwp

videojs-watchdog-plugin

Internet watchdog for video.js

Showing:

Popularity

Downloads/wk

0

GitHub Stars

2

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Build Status

videojs-watchdog-plugin

Internet watchdog for video.js

Installation

npm install --save videojs-watchdog-plugin

The npm installation is preferred, but Bower works, too.

bower install  --save videojs-watchdog-plugin

Usage

To include videojs-watchdog-plugin on your website or web application, use any of the following methods.

<script> Tag

This is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the videojs global is available.

<script src="//path/to/video.min.js"></script>
<script src="//path/to/videojs-watchdog-plugin.min.js"></script>
<script>
  var player = videojs('my-video');

  player.watchdogPlugin();
</script>

Browserify

When using with Browserify, install videojs-watchdog-plugin via npm and require the plugin as you would any other module.

var videojs = require('video.js');

// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('videojs-watchdog-plugin');

var player = videojs('my-video');

player.watchdogPlugin();

RequireJS/AMD

When using with RequireJS (or another AMD library), get the script in whatever way you prefer and require the plugin as you normally would:

require(['video.js', 'videojs-watchdog-plugin'], function(videojs) {
  var player = videojs('my-video');

  player.watchdogPlugin();
});

License

MIT. Copyright (c) Vitaly Domnikov dotcypress@gmail.com

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial