WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
[resolved] Redirect after video has finished (3 posts)

  1. jemmettfoxmedia
    Member
    Posted 1 year ago #

    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="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4'>
    
    </video>
    
    <script type="text/javascript">
     _V_("index_vid").ready(function(){
    	var myPlayer=this;
    	myPlayer.play();
    	myPlayer.addEvent("ended", function(){
    		window.location = "http://google.com"
    	});
    });
    </script>

    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.

    http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/

  2. jemmettfoxmedia
    Member
    Posted 1 year ago #

    Never mind, solved it. I'm an idiot.

  3. poco06
    Member
    Posted 1 year ago #

    Hello,
    Did you find a solution for redirection after the video. I'm interested in it if possible.
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic