You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

opening new web page when video finished playing? Created Aug 27, 2010

This thread is solved

Views: 1835     Replies: 1     Last reply Sep 4, 2010  
You must login first before you can use this feature

blacklizardint

Posts: 1

Registered:
Aug 27, 2010

opening new web page when video finished playing?

Posted: Aug 27, 2010

Is it possible to have the player open a new web page when the video is finished playing the current video? This would be for a single video. Auto play on start, video plays, then goes to end.html

Thanks of any help with this.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» opening new web page when video finished playing?

Posted: Aug 31, 2010

Reply to: opening new web page when video finished playing?, from blacklizardint
This will do it:

Flowplayer forum example

HTML setup for the player

<!-- include latest Flowplayer javascript file -->
<script language="javascript" src="path/to/flowplayer-3.2.6.js"></script>

<!-- player container with optional splash image -->
<a href="path/to/video_file" id="playerContainer">
	<img src="path/to/splash_image" />
</a>


JavaScript coding

Following script will install Flowplayer into our player container


<script language="javascript">
// our custom configuration is given in third argument
flowplayer("playerContainer", "path/tohttp://releases.flowplayer.org/swf/flowplayer-3.2.7.swf",{
onFinish: function(clip) {
           window.location = 'http://youtube.com';
}
});
</script>