The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. jemmettfoxmedia
    Posted 3 years 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'>
    <script type="text/javascript">
    	var myPlayer=this;
    	myPlayer.addEvent("ended", function(){
    		window.location = "http://google.com"

    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.


  2. jemmettfoxmedia
    Posted 3 years ago #

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

  3. poco06
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Video.js - HTML5 Video Player for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic