This is a message.

Play Again button Created Jun 24, 2009

This thread is solved

Views: 4591     Replies: 1     Last reply Jun 19, 2011  
You must login first before you can use this feature

sitschner

Posts: 4

Registered:
Jun 17, 2009

Play Again button

Posted: Jun 24, 2009

How can i hide play again button at the end?
Thanks

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» Play Again button

Posted: Jun 24, 2009

Reply to: Play Again button, from sitschner
Yes.

Flowplayer forum example

HTML setup for the player

<!-- include latest Flowplayer javascript file -->
<script language="javascript" src="path/to/flowplayer-3.2.8.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.11.swf",{
clip: {
  onBegin: function () {
    // make play button (re)appear
    this.getPlugin("play").css({opacity: 1});
  },
  onFinish: function () {
    // hide play again button
    this.getPlugin("play").css({opacity: 0});
  }
}
});
</script>