HDFLVPlayer can be installed on any Video Sharing Script. http://www.dramauniverse.com/ installed HD FLV Player and it is built on PHP Melody
Here is the steps to add on PHPMelody.
Copy hdflvplayer folder to the root
Following two files needs to be modified.
Settings.php and player.tplsettings.php will be located inside admin folder
root/admin/settings.php
Search for the following code:
Code:
<label><input name="video_player" type="radio" value="embed" <?php echo ($config['video_player']=='embed') ? 'checked="checked"' : "";?> /> Original Player</label>
Copy the following code after the above code: (Make sure you took a back of settings.php before you do any modification)
Code:
<label><input name="video_player" type="radio" value="flvplayer" <?php echo ($config['video_player']=='flvplayer') ? 'checked="checked"' : "";?> /> Hd Flv Player</label>
player.tpl will be located inside template folder
root/templates/template name/player.tpl
Search for the following code:(Make sure you took a back of player.tpl before you do any modification)
Code:
{if $page == "detail"}
Code:
{elseif $video.video_player == "jwplayer"}
Copy the following code just above
Code:
{elseif $video.video_player == "jwplayer"}
Code:
{elseif $video.video_player == "flvplayer"}
{literal}
<div id="Playerholder">
You need to have the <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> installed and
a browser with JavaScript support.
</div>
<script type="text/javascript">
var flashvars = {
file: '{/literal}{$smarty.const._URL2}{literal}/videos.php?vid={/literal}{$video.uniq_id}{literal}',
enablejs: 'true',
stagecolor: '{/literal}{$smarty.const._BGCOLOR}{literal}',
frontcolor: '{/literal}{$smarty.const._TIMECOLOR}{literal}',
screencolor: '000000',
repeat: 'false',
logoalign:'TR',
autoplay: '{/literal}{$smarty.const._AUTOPLAY}{literal}',
playlist:'false',
playlistXML:'{/literal}{$smarty.const._URL2}/hdflvplayer/xml/playlist.xml{literal}',
type: 'video',
logopath: '{/literal}{$smarty.const._WATERMARKURL}{literal}',
logo_target: '{/literal}{$smarty.const._WATERMARKLINK}{literal}',
image: '{/literal}{$video.preview_image}{literal}',
skin: '{/literal}{$smarty.const._URL2}{literal}/hdflvplayer/skin/skin_black.swf',
buffer: '5',
controlbar: 'over'
};
var params = {
wmode: 'transparent',
allowfullscreen: 'true',
allowscriptaccess: 'always',
allownetworking: 'all'
};
var attributes = {};
swfobject.embedSWF('{/literal}{$smarty.const._URL2}{literal}/hdflvplayer/hdplayer.swf', 'Playerholder', '{/literal}{$smarty.const._PLAYER_W}{literal}', '{/literal}{$smarty.const._PLAYER_H}{literal}', '9.0.115', false, flashvars, params, attributes);
</script>
{/literal}
Search for the code
Code:
{if $page == "index"}
{elseif $video.video_player == "jwplayer"}
Copy the following code just above
Code:
{elseif $video.video_player == "jwplayer"}
Code:
{elseif $video.video_player == "flvplayer"}
{literal}
<div id="Playerholder">
You need to have the <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> installed and
a browser with JavaScript support.
</div>
<script type="text/javascript">
var flashvars = {
file: '{/literal}{$smarty.const._URL2}{literal}/videos.php?vid={/literal}{$video.uniq_id}{literal}',
enablejs: 'true',
backcolor: '{/literal}{$smarty.const._BGCOLOR}{literal}',
frontcolor: '{/literal}{$smarty.const._TIMECOLOR}{literal}',
screencolor: '000000',
repeat: 'false',
logoalign:'TR',
autoplay: '{/literal}{$smarty.const._AUTOPLAY}{literal}',
playlist:'false',
playlistXML:'{/literal}{$smarty.const._URL2}/hdflvplayer/xml/playlist.xml{literal}',
type: 'video',
logopath: '{/literal}{$smarty.const._WATERMARKURL}{literal}',
logo_target: '{/literal}{$smarty.const._WATERMARKLINK}{literal}',
image: '{/literal}{$video.preview_image}{literal}',
skin: '{/literal}{$smarty.const._URL2}{literal}/hdflvplayer/skin/skin_black.swf',
buffer: '5',
controlbar: 'over'
};
var params = {
wmode: 'transparent',
allowfullscreen: 'true',
allowscriptaccess: 'always',
allownetworking: 'all'
};
var attributes = {};
swfobject.embedSWF('hdflvplayer/hdplayer.swf', 'Playerholder', '{/literal}{$smarty.const._PLAYER_W_INDEX}{literal}', '{/literal}{$smarty.const._PLAYER_H_INDEX}{literal}', '9.0.115', false, flashvars, params, attributes);
</script>
{/literal}
After completing the above steps, please login to admin panel -> Settings -> Video Player -> Make HD FLV Player as your default player.
If you need more help or installation support please email us at support@hdflvplayer.net