videojs-jogwheel
v1.0.0
Published
video.js plugin for rapidly jogging the video back and forth with the mouse wheel
Downloads
11
Maintainers
Readme
videojs-jogwheel
Usage
Include dist/videojs-jogwheel-es5.js or incorporate it in a bundle with webpack. The plugin will automatically be registered with video.js.
Enable the plugin for an instance of the player like this:
const videojsJogWheel = require("videojs-jogwheel").default;
let player = videojs('my-player', {
plugins: { 'jogWheel': videojsJogWheel }
});
Now wizz the mouse wheel back and forth over the video.
Build
run npm install
to install the dependencies, and grunt build
to
build (or ./node_modules/.bin/grunt build
if you do not have
grunt, grunt CLI locally installed.
This will run code checkers and linters and the test suite, report on
coverage and build build dist/videojs-jogwheel-es5.js
, an ES5 babel
transpile of the ES6 source.
Running grunt watch:build
will watch for changes to the source or
tests and invoke the full build cycle when they are detected. Running
grunt watch:test
will again watch for changes, and invoke the most
light weight possible file test cycle.
Note that in the event of stack traces being output during the full
build, with coverage reports, the stack trace line numbers will be
broken. Run test
or watch:test
for valid stack traces instead
of build
.