This example demonstrates configuring the plugin with JSON generated data. This includes json data for text and thumbnails.
JSON Marker Data Loading
JSON marker files can be loaded instead. Including thumbnail image metadata. Using the chaptersurl
property.
{
"chaptersurl": "../data/markers.json"
}
JSON data
[{"startTime":120,"text":"Marker 1 Hello Long Text","thumbnail":"../images/big_buck_bunny_400k-1.jpeg"},{"startTime":300,"text":"Marker 2 Hello Long Text","thumbnail":"../images/big_buck_bunny_400k-2.jpeg"},{"startTime":510,"text":"Marker 3","thumbnail":"../images/big_buck_bunny_400k-3.jpeg"}]
<div class="flex w-full">
<div id="external-data" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#external-data", {
"clip": {
"chaptersurl": "../data/markers.json",
"sources": [
{
"src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.webm",
"type": "video/webm"
},
{
"src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.mp4",
"type": "video/mp4"
},
{
"src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.ogv",
"type": "video/ogg"
}
]
},
"share": false
});
</script>