7 days of php add-ons - Day 5: Flowplayer

Sunday, 12 April 2009


Hi, for day 5 in our series I want to show you Flowplayer, an open source flash based video player that is available under the GPL license and can also be used in commercial projects.

To get yourself a copy of Flowplayer head to their site here.

I also wanted to point out that I am not receiving any benefit for the add-ons I am mentioning in 7 days of php. I have chosen these based upon my own personal use and the quality and benefit these add-ons have provided me in my own work.

The great thing about Flowplayer is that for the free version it is almost identical to the commercial version. The main difference is the branding, but this is not very prominent and if you wanted to remove it the commercial license is very reasonably priced and you can have your own logo display in the player.

The main reason I chose to discuss Flowplayer is because the free version is a superior quality product and is so simple to install and use.

For a variety of demos you can head to their demo page here. This page includes many different tutorials on getting Flowplayer to run in different contexts commercial, scripting, skinning etc.

To checkout a basic demo head to here


Screen shot of Flowplayer showing branding before video starts.

To get Flowplayer working in the simple possible configuration there are three easy steps.

Include the Flowplayer javascript in your page:

<script src="path/to/flowplayer-3.0.6.min.js"></script>


Set up the place holder for where your video will be played:

<a
href="http://mysite.com/video/test.flv"
style="display:block;width:400px;height:300px;"
id="player">
</a>


Then a call to the flowplayer function to get your player up and running:

<script language="JavaScript">
flowplayer("player", "path/to/flowplayer-3.0.7.swf");
</script>


It's as easy as that. Flashplayer plays videos in many different formats and can also handle streaming. Check out their site for more details.
blog comments powered by Disqus