I am making a video reel (a portfolio) website, using wordpress as my backend, and the videojs html5 video player with each video in a different post. I want the videos to p
you need to call a function on ended... or the relocation just there...
That's it.
Ended up using the following code:
$(document).ready(function(){
var sStr = "<?php echo get_permalink(get_adjacent_post(true,'',true)); ?>";
$(".video-js").bind('ended', function(){
window.location = sStr;
});
});
It looks like there is an ended event that you can hook up to.