How to: Add A Video Overlay (Javascript)

HTML

 <a id="video_button" class="button" href="http://youtu.be/R5EmPpwQxkA">Click here to see the Video!</a>

Javascript

<script>
  $(function() {
$('#video_button').on('click', function(event) { event.preventDefault();
WebCube.videoOverlay($(this).attr('href'), { width:640, height:360, extra_params: "&autoplay=1" }); // end WebCube.videoOverlay()
}); // end on('click')
}); </script>

 

WebCube's Javascript API...

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk