This example demonstrates confguring for horizontal VU Meter display.
<div class="flex w-full h-auto my-auto">
<video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="vu-horizontal-meter"></video>
</div>
<script type="text/javascript">
var player = videojs("vu-horizontal-meter", {
"plugins": {
"audiovisualiser": {
"type": "vu-horizontal"
}
},
"sources": [
{
"src": "https://videos.electroteque.org/bitrate/elephants_dream_2000k.webm",
"type": "video/webm"
},
{
"src": "https://videos.electroteque.org/bitrate/elephants_dream_2000k.mp4",
"type": "video/mp4"
},
{
"src": "https://videos.electroteque.org/bitrate/elephants_dream_2000k.ogv",
"type": "video/ogg"
}
]
});
</script>