It is currently Wed Jul 30, 2014 9:02 am


Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Installing HD FLV Player on PHPMelody
PostPosted: Wed Mar 10, 2010 7:36 am 
Site Admin

Joined: Sat Jun 06, 2009 9:43 am
Posts: 14
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.tpl

settings.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


Top
 Profile E-mail  
 
 Post subject: Re: Installing HD FLV Player on PHPMelody
PostPosted: Mon Jun 30, 2014 5:15 am 

Joined: Tue Oct 15, 2013 10:56 pm
Posts: 8
If you cannot succeed with the previous steps, replace "flvplayer" with "hdflvplayer" in the above steps and check.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

© Copyrights 2014 HD FLV Player - All Rights Reserved

A part of Contus