VideoJS Player Integration with HivecdnJS Async API


<!-- add videojs player  library script to  your page -->
<script src="https://vjs.zencdn.net/7.0.3/video.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.14.1/videojs-contrib-hls.js"></script>



<!-- add  script to  your page -->
<script>
        window.hivecdn=window.hivecdn||function(){(hivecdn.q=hivecdn.q||[]).push(arguments)};hivecdn.l=+new Date;
        hivecdn("settings",{siteId:'YOUR_SITE_ID'}) // Register your siteID
</script>

<script async  src='https://static.hivecdn.com/hivecdn.production.min.js' id="hivecdnScript"></script>

Example

// your videojs player instance
 var player = videojs('player');

// Register your videojs player instance to  hivecdn api
hivecdn("registerPlayer", player, "videojs");