Online Resources for Web Developers and Professionals - BETA

  search

Using FLV Player on the Web

Running FLV files on the web now a days common, In order to run FLV files on the web , you need Flash FLV Player. There are alot of player on the web for free, you can find and use it with your own choice. In this article i use a Flash FLV Player so you can see how simple it is to use FLV Player.

Steps to be followed for configuring flash player.

Download Complete files from this article, extract it and get flvplayer.swf and ufo.js files from it and put it into your web application root folder.

Now open the file in which you want to configure Flash FLV Player.

write the following code between <Head></Head> tag.

 

<script type="text/javascript" src="ufo.js"></script>

 

After that come to the point where you want to set FLV Player.

 

 

<!-- flv player -->
<p id="player2">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to
see this player.
</p>

<script type="text/javascript">
var FO = { movie:"flvplayer.swf",width:"176",height:"208",

majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file=xyz.flv
&showdigits=true&image=clicktoplay.jpg &logo=logo.png&showicons=false&volume=100" };
UFO.create( FO, "player2");
</script>

<!-- flv player -->

 

 

That's it, now run and see how it works, but for it you must have flash player install on your browser.

Explanation:

UFO.create(FO, "player2"); Create Flash Flv Player between <p id="player2"></p> define above with the parameters you set in variable FO. there are a lot of parameter but the most important is file: xyz.flv , which use flv file to be run. You can dynamic this are to display dynamic flv files according to the data., image parameter sets image that is display on first time that tell people to click me to run flv player and logo parameter set your web site logo on the player and vice versa.

 

Click here to download FLVPlayer Files.