Page 9 of 10 FirstFirst ... 78910 LastLast
Results 81 to 90 of 95

Thread: Using Agriya Player with vShare

  1. #81

    Default Re: Using Agriya Player with vShare

    I tried to use HD FLV Player by Agriya. Followed all the steps mentioned in this forum above (except for few changes for the swf file names in player.inc). The player shows a black screen and no videos is played.

    My player.inc file is as follwos:

    Code:
    <?php
    
    if($config['player_autostart'] == 1) {
    	$auto_play = "true";
    } else {
    	$auto_play = "false";
    }
    
    $vshare_player = <<<EOT
    
    <script type="text/javascript" src="{$config["baseurl"]}/player2/swfobject.js"></script>
    
    <p id="vshare_player">Get Flash to see this player.</p>
    
    <script type="text/javascript">
    		var so1 = new SWFObject("{$config["baseurl"]}/player2/HDplayer.swf", "HDplayer", "{$config[player_width]}", "{$config[player_height]}", "7",  null, true);
    		so1.addParam("allowFullScreen", "true");
    		so1.addParam("allowSciptAccess", "always");
    		so1.addVariable("autoplay", "{$auto_play}");
    		so1.addVariable("config", "{$config["baseurl"]}/player2/player_config.php?id={$video_id}");
    		so1.addVariable("playList", "{$config["baseurl"]}/player2/playlist_xml.php?id={$video_id}");
    		so1.write("vshare_player");
    	</script>
    EOT;
    Please help if someone knows about the HD player to work.

    Thanks a million.

  2. #82
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Using Agriya Player with vShare

    What is your site's URL so that I can take a look?
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  3. #83

    Default Re: Using Agriya Player with vShare

    Thank you for reply.

    My site url is

    http://www.faceknock.com

  4. #84
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Using Agriya Player with vShare

    There are two problems.

    The first is that there is an error in your config file (the playlist URL is not correct). Second, there is an error in your playlist. The error that you have in both files were fixed a few pages back in the code that I released for the Agriya player. Are you using the right config and playlist files?

    Furthermore, the Agriya HD player is new (just came out a few days ago). I'm not 100% certain if the code presented here works with that new player. I would have to look at the documentation to see.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  5. #85

    Default Re: Using Agriya Player with vShare

    Can you very kindly message me the exact page of the config you are referring to please.

    Thank you

  6. #86

    Default Re: Using Agriya Player with vShare

    The code for playlist in my config file is

    Code:
          <PLAYER_SETTINGS Name=\"PlayList\" Value=\"$baseurl/player2/playlist_xml.php\" MaximumLists=\"1\"/>

  7. #87
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Using Agriya Player with vShare

    Go to page 2 of this thread. Are you using the player config code listed on that page along with the playlist xml file on that page as well?
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  8. #88

    Default Re: Using Agriya Player with vShare

    I just have upladed the playlist_xml.php file, the one on page 2 of this topic.

    No change in situation. No video is working.

    Please help.

  9. #89
    Join Date
    Dec 2008
    Posts
    152

    Default Re: Using Agriya Player with vShare

    Code:
    <?php
    
        include('../include/config.php');
        include('../include/function.php');
    
        $id = isset($_GET['id']) ? $_GET['id'] : '';
    
    $adv_flv_name = $config['baseurl'] . '/advt_flv/start.flv';
     $postroll_flv_url = $config['baseurl'] . '/advt_flv/end.flv';
    
    
        $sql = "SELECT * FROM `video` WHERE vid=$id";
        $result = mysql_query($sql) or mysql_die($sql);
    
        if (mysql_num_rows($result)>0) {
           $video_info = mysql_fetch_assoc($result);
           if($video_info['server_id'] == 0){
              $flv_url = $config['baseurl'] ."/flvideo/" .$video_info['flvdoname'];
           }
           else{
              $server_id = $video_info['server_id'];
              $sql = "select * from servers where id=$server_id";
              $result = mysql_query($sql) or mysql_die($sql);
              $server_info = mysql_fetch_assoc($result);
              $url = $server_info['url'];
              $flv_url = $url ."/" .$video_info['flvdoname'];
           }
           
        }
    
        header("content-type:text/xml;charset=utf-8");
        header("Cache-Control: no-store, no-cache, must-revalidate");
        header("Cache-Control: post-check=0, pre-check=0", false);
    
        $baseurl = $config['baseurl'];
    
        echo "<CONFIG>
           <SETTINGS>
              <PLAYER_SETTINGS Name=\"SelectedSkin\" Value=\"$baseurl/player2/skin/skin.swf\"/>
              <PLAYER_SETTINGS Name=\"SelectedLoader\" Value=\"$baseurl/player2/skin/loading.swf\"/>
              <PLAYER_SETTINGS Name=\"Protocol\" Type=\"http\" Value=\"\" />
              <PLAYER_SETTINGS Name=\"FLVPath\" Value=\"$flv_url\" ViewCountFile=\"\" />
              <PLAYER_SETTINGS Name=\"FLVList\" HasVideoList=\"no\" FlvListPath=\"$baseurl/player2/videolists.xml\" Looping=\"yes\" RefreshList=\"yes\" />
              <PLAYER_SETTINGS Name=\"PlayList\" Value=\"$baseurl/player2/playlist_xml.php\" MaximumLists=\"1\"/>
              <PLAYER_SETTINGS Name=\"Themes\" Value=\"$baseurl/player2/themes.xml\"/>
              <PLAYER_SETTINGS Name=\"LockAllControls\" Value=\"false\"/>
              <PLAYER_SETTINGS Name=\"ShowShareButton\" Value=\"true\"/>
              <PLAYER_SETTINGS Name=\"ShowReplyButton\" Value=\"true\"/>
              <PLAYER_SETTINGS Name=\"InitVolume\" Value=\"20\"/>
              <PLAYER_SETTINGS Name=\"AutoPlay\" Value=\"true\"/>
              <PLAYER_SETTINGS Name=\"FirstFrameAs\" Value=\"video\" FrameAt=\"0\" Url=\"images/vImage.jpg\" Align=\"stretch\"/>
              <PLAYER_SETTINGS Name=\"FirstVidSize\" Value=\"max\" KeepAspectRatio=\"true\"/>
              <PLAYER_SETTINGS Name=\"FullScreenControls\" Value=\"true\"/>
              <PLAYER_SETTINGS Name=\"ShowMiniShareButton\" Value=\"false\"/>
              <PLAYER_SETTINGS Name=\"ShowMiniLogo\" Value=\"false\" Url=\"images/minilogo.swf\"/>
              <PLAYER_SETTINGS Name=\"TooltipEnabled\" Value=\"true\"/>
              <PLAYER_SETTINGS Name=\"ShareVidzLink\" Value=\"$baseurl/recommend_friends.php?vid=$id\" args=\"vt=vtitle,muid=vuid,id=12,etc\"/>
              
              <PLAYER_SETTINGS Name=\"FullScreenLink\" Function=\"\" args=\"sample1.html\"/>
              
              <PLAYER_SETTINGS Name=\"BufferTime\" Value=\"3\"/>
              <PLAYER_SETTINGS Name=\"Logo\" Value=\"true\" Url=\"$baseurl/templates/images/watermark.jpg\" Transparency=\"50\"  RollOverTransparency=\"100\" LogoPosition=\"RT\" hspace=\"10\" vspace=\"10\" TargetUrl=\"$baseurl\" Target=\"_blank\" InnerScripts=\"yes\"/>
              <PLAYER_SETTINGS Name=\"External\" Value=\"no\" Url=\"http://agriya.com\"  Target=\"_blank\" />
              <PLAYER_SETTINGS Name=\"TopUrl\" Url=\"$adv_flv_name\" TargetUrl=\"$baseurl\" TargetWindow=\"_blank\" Duration=\"6\" Value=\"true\" Type=\"flv\" ImpressionUrl=\"yourphp?sgds\" ClickCountUrl=\"yourphp?sgds\"/>
              <PLAYER_SETTINGS Name=\"TailUrl\" Url=\"$postroll_flv_url \" TargetUrl=\"$baseurl\" TargetWindow=\"_blank\" Duration=\"6\" Value=\"true\" Type=\"flv\"  ImpressionUrl=\"yourphp?sgds\" ClickCountUrl=\"yourphp?sgds\"/>
           </SETTINGS>
           <LABELS>
              <TEXT Name=\"Header\" Value=\"Click here to join with these cool guys... and ger more fun here.........\" Enable=\"false\" ShowAlways=\"false\" Url=\"http://www.agriya.com\" TargetWindow=\"\" HeaderScroll=\"true\" ScrollSpeed=\"10\"/>
              <TEXT Name=\"Share\" Value=\"Share\"/>
              <TEXT Name=\"Reply\" Value=\"Replay\"/>
              <TEXT Name=\"Buffer\" Value=\"Buffering...\"/>
              <TEXT Name=\"Loading\" Value=\"Loading.....\"/>
              <TEXT Name=\"NextText\" Value=\">>Next\" Enable=\"false\"/>
              <TEXT Name=\"ListAlign\" Value=\"RTL\" Enable=\"false\"/>
           </LABELS>
           <TOOLTIP>
              <TOOL Name=\"PlayButton\" Value=\"Play\"/>
              <TOOL Name=\"PauseButton\" Value=\"Pause\"/>
              <TOOL Name=\"VolumeButton\" Value=\"Volume\"/>
              <TOOL Name=\"ShareVidz\" Value=\"Share\"/>
              <TOOL Name=\"ReplyVideo\" Value=\"Replay\"/>
              <TOOL Name=\"RewindButton\" Value=\"Rewind\"/>
              <TOOL Name=\"MuteButton\" Value=\"Mute\"/>
              <TOOL Name=\"FullScreen\" Value=\"Full Screen\"/>
              <TOOL Name=\"UnMuteButton\" Value=\"Unmute\"/>
              <TOOL Name=\"VideoSize\" Value=\"Video Size\"/>
           </TOOLTIP>
           <MSG>
              <ERROR Name=\"SelectedSkin\" Value=\" is not available...swf \"/>
              <ERROR Name=\"PlayList\" Value=\"The playlist xml not found ! \"/>
              <ERROR Name=\"FlvPath\" Value=\"The FLV Paths is not valid or missing !\"/>
              <ERROR Name=\"FlvPathFile\" Value=\"File not Found \"/>
           </MSG>
        </CONFIG>";
        ?>
    everything looks correct in my config file
    Still have the same issue as in the image i posted

  10. #90
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default Re: Using Agriya Player with vShare

    Quote Originally Posted by bplex

    Edit Changed the PHP code to have a multi-server compatible URL in it.
    Edit Changed the PHP code to link to video as a page versus video FLV.
    Edit Changed the PHP code to deal with the fact that names are being reused.
    Edit Changed the PHP code to fix an issue in which titles that have quotes in them cause the related video thumbnails to not show completely. Also fixed an error in the duration code so that it shows the duration and not "()".

    Yes the only problem is that if you have a site with a lot of videos you get a very big playlist.

Page 9 of 10 FirstFirst ... 78910 LastLast

Similar Threads

  1. Using Agriya HD Player in vShare
    By ataimoor in forum Template Modifications
    Replies: 1
    Last Post: 12-31-2008, 03:42 PM
  2. Using the Agriya Player
    By davidmsfv in forum Installation Support
    Replies: 4
    Last Post: 08-08-2008, 12:10 AM
  3. Agriya Player HELP
    By davidmsfv in forum Template Modifications
    Replies: 0
    Last Post: 05-09-2008, 07:50 AM
  4. Agriya FLV Player
    By galnet in forum Template Modifications
    Replies: 25
    Last Post: 08-19-2007, 01:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •