Example 1: Using the Default Settings

Get the Flash Player to see this player.

This sample shows the player loaded with a 5-minute video, and the logo file called logo.png. The default time-frame is between 20-50 seconds.

Here's the code:

<div id="container">
    <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
    <script type="text/javascript">
        var s1 = new SWFObject("player.swf","ply","400","300","9","#000000");
        s1.addParam("allowfullscreen","true");
        s1.addParam("allowscriptaccess","always");
        s1.addVariable("file","video.flv");
        s1.addVariable("duration","300");
        s1.addVariable("logo","logo.png");
        s1.addVariable("plugins","
logomover");
        s1.addVariable("bufferlength","5");
        s1.write("container");
    </script>
</div> <!-- end container -->


Example 2: Using a Custom Time-Span

Get the Flash Player to see this player.

This sample shows the player loaded with the same video. The time-span is between 2-7 seconds, set using the flashVars logomover.mintime and logomover.maxtime.

Here's the code:

<div id="container2">
    <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
    <script type="text/javascript">
        var s1 = new SWFObject("player.swf","ply","400","300","9","#000000");
        s1.addParam("allowfullscreen","true");
        s1.addParam("allowscriptaccess","always");
        s1.addVariable("file","video.flv");
        s1.addVariable("duration","300");
        s1.addVariable("logo","logo.png");
        s1.addVariable("plugins","
logomover");
        s1.addVariable("logomover.mintime","
2");
        s1.addVariable("logomover.maxtime","
7");
        s1.addVariable("bufferlength","10");
        s1.write("container2");
    </script>
</div> <!-- end container2 -->

(If you care, that's me floating around on top of the video, from a photo taken back in 1980. The video itself is from a band I used to be in, around 2003-ish.)