A plugin for displaying chapters
npm install @viostream/videojs-chaptersA videojs plugin to display chapters in one of the following formats:
- as markers on the progress bar with a hover over text description
- a dropdown list below the player
- a horizonal control below the player for selecting chapters
``sh`
npm install --save @Viostream/videojs-chapters
To include videojs-chapters 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][videojs], so that the videojs global is available.
`html`
The chapter options passed to the plugin are
#### chapterTypestring
Type: "horizontal"
Default:
This is the type of chapter control that will be rendered, the options are
- horizontal
- dropdown
- progressbar
#### chaptersarray
Type: null
Default:
This is an array of chapter data, composed of label and time in seconds, as shown above.
#### stylesobject
Type: null`
Default:
This is an object where you can specify colors for the plugin, as shown above.
MIT. Copyright (c) Viostream
[videojs]: http://videojs.com/