Shows a button during recaps, intros etc to allow the viewer to skip that part of the content. Video Cloud cue points set the in/out points, or at least the out points.
By default the plugin looks for
CODE cue points with the names
end_* cue is found with no corresponding
start_*, a start cue is inserted after the preceding cue, or at the beginning of the video if there is no preceding cue.
start_* cue is found without a corresponding
end_*, it is ignored.
If other cue names are to be used, ranges can be set in the plugin options:
The plugin would then look for
end_boring_bit cues. The value of label is the button text.
npm install --save @videojs-skip-intro/videojs-skip-intro
To include videojs-skip-intro on your website or web application, use any of the following methods.
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.
When using with Browserify, install videojs-skip-intro via npm and
require the plugin as you would any other module.
var videojs = ;// 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.;var player = ;player;
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and
require the plugin as you normally would:
MIT. Copyright (c) mister-ben <email@example.com>