phpFox Flowplayer FLV Video Player Plug-in

If you are using the Video module you may notice we are using the JS FLV Media Player by default. Its a great player but is basic in functionality so a client suggested to give Flowplayer a try. I wanted to release this with the phpFox package however due to license restrictions we can't until we have setup the proper license to distribute their package with ours. However before all that is completed a free plug-in can be released.

For more information about Flowplayers license please visit: http://flowplayer.org/download.html

Live Demo: http://sandbox.phpfox.com/natio/videos/id_9/title_...

:: Steps To Install ::

1) Download the ZIP attachment and Unzip to your computer.

2) Rename the file "plugins/flowplayer/config.php.new" to "plugins/flowplayer/config.php"

3) Upload the "plugins/" folder to your phpFox root directory.

4) Open the file: include/classes/smarty/plugins/function.videoplayer.php

Look for:

PHP:
$sPlayer '<script type="text/javascript">EmbedVideo("file/player/'. (substr($aParams['url'], 7) == 'http://' 'http' '') .'flvplayer.swf?file='$aParams['url'] .''$sVariables .'", "'$aParams['width'] .'", "'$aParams['height'] .'");</script>
        <noscript><div style="font-weight:bold; text-align:center; padding:10px;">'
App::format('Mod_Site.warning_no_javascript') .'</div></noscript>
        '
Under that add:
PHP:
require_once(App::getParam('path') . 'plugins/flowplayer/player.php');
        return; 
Thats it.

The player is using the default configuration. If you would like to modify your FLV player open the file: plugins/flowplayer/player.php
Then visit this page for more options: http://flowplayer.org/player/configuration.html

Tested the player on Firefox 3 (Linux & Windows), Opera 9 (Linux & Windows), IE 6 & 7 and Safari 3 (Windows) and player is running great.

Note: Your users will need Flash Player 9 installed in order to use the full screen option.


Attached Files

Reviews
No Reviews.