Blog | Sitemap | Forum

Bookmark using any bookmark manager!

Customize skinning flash video player for web
Customize flash video player in the easiest way

Show or hide replay button

When the video plays to the end, you may want to add a Replay Button to your web player for visitors to watch your video again. PlayerDIY Web Player supports to customize web player with reply button by few clicks. And you could also type the character you want to show in the replay button.

The demo with replay button:

 

Implement the demo above in two easy ways:

  • PlayerDIY Web Player
  • Flashvars Code

1. Go to Template -> Options

2. Push down Replay settings. Check Show replay, and type the character you want to show on the replay button. Default value is Replay.

Please note: If uncheck both Show replay and Pause at first frame (or Pause at last frame), the screen will return to the first frame of the video after the video plays to the end.

To implement the above demo with flashvars code, the embed code will be as below:

<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent" align="center"></div>
<script type="text/javascript">
var so = new SWFObject('mwplayer.swf','player','500','450','9');
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('flashvars','playerOpts=showReplay*true*b||textReplay*Replayer*s');
so.write("flashcontent");
</script>

The line of the red code is the flashvars code for getting the replay button. Get more information about flashvars code.

Configuration