Blog | Sitemap | Forum

Bookmark using any bookmark manager!

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

Replay a specific video automatically

The demo which replays a specific video persistently:

It’s simple to make your web player gets the capability of auto-replaying a video. Here, there are two ways are available: 1. Using PlayerDIY Web Player; 2. Using flashvars code.

  • PlayerDIY Web Player
  • Flashvars Code

With PlayerDIY Web Player, all you need to do is checking the “Auto rewind” option on the following interface of PlayerDIY Web Player. (The default setting is not checked and the player won’t replay video automatically). It’s also very simple to make web player replaying all videos in playlist automatically (take a look at the example).

To implement the demo above 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=autoRewind*true*b');
so.write("flashcontent");
</script>

The line of the red code is the flashvars code for making the player replaying a video automatically. Get more information about flashvars code.

Configuration