Mini FLV Player

About Flash Video

Site using our player

Site using our player

Flash video is the standard delivery method on the web, there’s no denying in that. More and more websites – Google Video and YouTube just to name two of the – rely on FLV rather than on Quicktime, RealVideo or WMV to deliver video. The reason is that 98% of internet users have the Flash plugin and that the video can be combined with text, sound, animation and interactivity.
With the aquisition of Macromedia by Adobe, expect FLV to become even more popular.

With that in mind, we’ve decided to help the Flash community with a simple, clean player that can be integrated in a bigger flash application or played standalone.

Mini FLV Player features

Compared to other flash video player, ours stands out in these areas:

  • Very small size, just 12Kb or 6Kb without some background graphics (as opposed to Macromedia Media Player that is 80Kb);
  • Clean AS2-style code that can be easily turned into a class or component;
  • flexible, easy to use, easy to extend, easy to integrate in an existing project;
  • simple API: playFile(), pause(), rewind() and setSize();
  • simple and stylish interface;
  • can be integrated in an existing application;
  • can be used as a standaone player with the file to be played set from the html container;
  • The “skin” can be easily edited;
  • It’s free for both commercial and non-commercial purposes. As a matter of courtesy, please include a link to this site.


December 30, 2005: Fixed a minor issue in Flash 7 version.

Because of its popularity, we have decided to update the player by updating to Flash 8 and improving the included documentation. We haven’t turned it into a component because we feel it’s better to let you decide how you want to use it. We’ve added more textual feedback, title, autorewind and improved resize.

Using it

If you don’t want to bother with editing the flash file, all you have to do is to pass the required parameters to the flash movie.

The modern and recommended method to embed a flash movie in a html page is using a library like SWFObject. Once you have it, you can pass variables to flash using addVariable(). Please refer to SWFObject documentation for details.

Alternatively, you can use the “traditional” method:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="200" height="150" id="player" align="middle">
      <param name="movie" value="player.swf?file=md.flv&size=true&aplay=true&autorew=false&title=myFile" />
      <param name="menu" value="false" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#999999" />
      <embed src="player.swf?file=md.flv&size=true&aplay=true&autorew=false&title=myFile"
		width="200" height="150" 

		pluginspage="" />

Note how you can send the required parameters (file name, autosize, autoplay) after the flash movie name (in red). You can specify whatever dimensions you want for the movie (in blue). Also you can specify any background for your flash movie.

If autosize is set to true, the video will display at 100% if the size of the flash movie permits, or scaled down to fit. If autosize is set to false, the video will be scaled to fit the flash movie size and you can also rescale the video player using setSize()

Please study the notes included in the Flash source file to make the most out of this player.

If you prefer to use the player in an existing application, copy the Video Player movie clip in your app, give it an instance name like “player”, and then call its play() method. For example, create a button and assign the following code to it:

        player.playFile("myfile.flv", true, true);


You can extend the player’s functionality with ease, assuming you’re familiar with Actionscript. Please refer to Media Division free download area to get a tutorial that expains how video works in flash and how to build a video player from scratch.


  MiniFLVPlayer 1.5 (87.5 KiB, 3,810 hits)