Support » Plugin: Video.js - HTML5 Video Player for WordPress » Redirect after video has finished

  • Resolved jemmettfoxmedia


    Is it possible to have the video to redirect to a new page once the video has finished using the plugin?

    I have tried –

    <video id="oceans-clip" class="video-js vjs-default-skin" controls autoplay preload="auto" width="640" height="264" data-setup="{}">
    	<source src="" type='video/mp4'>
    <script type="text/javascript">
    	var myPlayer=this;;
    	myPlayer.addEvent("ended", function(){
    		window.location = ""

    Which plays the video fine, just with no redirect. I have also tried with using shortcodes, but to no avail.

    Any input would be much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect after video has finished’ is closed to new replies.