Reputation: 75
I tried searching all over and couldn't find an answer.
this code doesn't work on latest version video.js
<script type="text/javascript">
_V_("example_video_1").ready(function(){
this.addEvent("ended", function(){
{window.location = "www.google.com"}
});
});
</script>
Thanks!
Upvotes: 0
Views: 1838
Reputation: 7821
videojs("example_video_1").on("ended", function() {
window.location = "http://www.google.com";
});
Upvotes: 1