If you are here, you are viewing the deprecated API documention. You will automatically be directed to the New Bolt Player API Documentation momentarily, or you can click HERE. to be redirected.
<!-- Basic Embed -->
<script data-config="//config.playwire.com/1/videos/v2/4322636/zeus.json" data-height="100%" data-width="100%" src="//cdn.playwire.com/bolt/js/zeus/embed.js" type="text/javascript"></script>
<!-- Lazy load embed with data-autoload set to "false" and data-container with the id of "myPlayer" -->
<script data-config="//config.playwire.com/1/videos/v2/4322636/zeus.json" data-height="100%" data-width="100%" src="//cdn.playwire.com/bolt/js/zeus/embed.js" data-autoload="false" data-container="myPlayer"></script>
<!-- When the Bolt Video Player with the ID of "myPlayer" renders, log "The player is loaded" to the console -->
<script type="text/javascript">
Bolt.renderPlayer("myPlayer", function() {
console.log("The player is loaded!");
});
</script>
<!-- Callback embed with data-container set to id of "myPlayer" and data-onready calling the myApp.init function -->
<script data-config="//config.playwire.com/1/videos/v2/4322636/zeus.json" data-height="100%" data-width="100%" src="//cdn.playwire.com/bolt/js/zeus/embed.js" data-container="myPlayer" data-onready="myApp.init"></script>
<!-- When the Bolt Video Player with the ID of "myPlayer", log "The player is loaded" to the console when the video content ends-->
<script type="text/javascript">
var myApp = {
init: function(){
Bolt.on('myPlayer', Bolt.BOLT_CONTENT_COMPLETE, function(){
console.log('Content Complete');
})
}
}
</script>