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'> </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/
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.