Support » Plugins and Hacks » Video.js - HTML5 Video Player for WordPress » [Resolved] Redirect after video has finished

[Resolved] Redirect after video has finished

  • 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.


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