# videojs-seek-buttons Plugin for video.js to add seek buttons to the control bar. These buttons allow the user to skip forward or back by a configured number of seconds. ## Table of Contents - [Installation](#installation) - [Options](#options) - [Control position](#control-position) - [Usage](#usage) - [` ``` The dist versions will be available from services which host npm packages such as jsdelivr: * https://cdn.jsdelivr.net/npm/videojs-seek-buttons/dist/videojs-seek-buttons.min.js * https://cdn.jsdelivr.net/npm/videojs-seek-buttons/dist/videojs-seek-buttons.css ### Browserify/CommonJS When using with Browserify, install videojs-seek-buttons via npm and `require` the plugin as you would any other module. Make sure if using React to also `include "videojs-seek-buttons/dist/videojs-seek-buttons.css"`, otherwise the icons will not appear in the control bar. ```js 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-seek-buttons'); var player = videojs('my-video'); player.seekButtons({ forward: 30, back: 10 }); ``` ### 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: ```js require(['video.js', 'videojs-seek-buttons'], function(videojs) { var player = videojs('my-video'); player.seekButtons({ forward: 30, back: 10 }); }); ``` ## License Apache-2.0. Copyright (c) mister-ben <git@misterben.me> [videojs]: http://videojs.com/