This example demonstrates configuring the plugin with JSON generated data and a chapters menu for changing chapter cues.
Enabling menu
{
"../../js/videomarkers-8.1.0.js": {
"menu": true
}
}
<div class="flex w-full h-auto my-auto">
<div id="menu" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("menu").setup({
"aspectratio": "16:9",
"chaptersurl": "../data/markers.json",
"playbackRateControls": true,
"plugins": {
"../../js/videomarkers-8.1.0.js": {
"menu": true
}
},
"sources": [
{
"file": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.webm",
"type": "webm"
},
{
"file": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.mp4",
"type": "mp4"
}
],
"width": "100%"
});
</script>