Menu
Chapters Menu
This component is used to display chapters inside of a menu.
Usage
Chapters Track
Chapters are set by providing a WebVTT file that specifies the time ranges and respective chapter titles. It should look something like this:
The chapters menu will display the currently active text track with a kind of chapters
. It can be provided like so:
Thumbnails
The chapters menu will automatically display thumbnails next to chapter items when the thumbnails
property has been set on the player. See the docs on how to correctly set up the thumbnails VTT file.
Styling
CSS Variables
See the menu CSS variables for simple customization of the default menu styles.
The following snippet contains a complete list of CSS variables and their default values. Any of the variables can be set to adjust the default chapters menu styles: