Skip to content

Instantly share code, notes, and snippets.

@singh1469
Last active May 17, 2016 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singh1469/2813b5a35464b1224c10e15698f76195 to your computer and use it in GitHub Desktop.
Save singh1469/2813b5a35464b1224c10e15698f76195 to your computer and use it in GitHub Desktop.
//<Buto embed code here>
<script>
var embedElement = document.getElementById('buto_<video_id>');
embedElement.addEventListener('playerReady',function(readyEvent){
//create variable referencing the Buto player
var player = Akita.playerInstances[this.getAttribute('data-instance-id')];
//add event listener to play event
player.video.el.addEventListener('play',function(){
//<hide text code goes here>
});
//optionally add event listener to pause event
player.video.el.addEventListener('pause',function(){
//<display text code goes here>
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment