Page 8 of 10 FirstFirst ... 678910 LastLast
Results 71 to 80 of 95

Thread: Using Agriya Player with vShare

  1. #71
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Using Agriya Player with vShare

    Try this player_config.php file:

    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=\"External\" Value=\"no\" Url=\"http://agriya.com\"  Target=\"_blank\" />
        </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>";
    ?>
    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!

  2. #72
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    30

    Default Re: Using Agriya Player with vShare

    Excellent! Videos now playing!

    Thanks Bplex, I really appreciate all your help this afternoon! :-)

  3. #73
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Using Agriya Player with vShare

    You're welcome.
    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!

  4. #74
    Join Date
    Aug 2007
    Posts
    13

    Default Re: Using Agriya Player with vShare

    How do i change the embeddable code so that my users can embed this new player??

    <object width="425" height="350" type="application/x-shockwave-flash" data="http://www.xxx.com/player/player.swf"><param name="movie" value="http://www.xxx.com/player/player.swf"><param name="flashvars" value="&file=http://www.xxx.com/flvideo/xxx.flv&height=350&image=http://www.xxx.com/thumb/xxx.jpg&width=425&location=http://www.xxx.com/player/player.swf&logo=http://www.xxx.com/templates/images/watermark.gif&link=http://www.xxx.com&linktarget=_blank"/></object>

  5. #75

    Default Re: Using Agriya Player with vShare

    Quote Originally Posted by bplex
    Code:
    		<PLAYER_SETTINGS Name=\"FLVList\" HasVideoList=\"no\" FlvListPath=\"$baseurl/player2/videolists.xml\" Looping=\"yes\" RefreshList=\"yes\" />

    I do not have any such file as videolists.xml. It doesn't seem to stop anything from working (although I haven't yet tried this on multi-server), so I think I am ok. What is the file for? Where can I get a copy?

    Also, would you happen to know how to fix the ratings in the lists of videos that rotates at the end? For example, I will have a video that says "Rating 8" and show 3 stars highlighted. I assume that three stars is suppose to be the original 5 stars, plus those three, equals 8. I have no idea though.

    It should not be possible to have more than a 5 star rating. However, I'll have some videos that say they have a rating of 11, and it looks like they are 1 star. The ratings on the site itself work perfectly fine, but in the list on the agriya player they are kind of funky. Any ideas about this?

  6. #76
    Join Date
    Dec 2008
    Posts
    152

    Default Re: Using Agriya Player with vShare

    i think my code in the playlist.xml is screwed up

    Could someone post their code so i can check it out?

  7. #77
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    30

    Default Re: Using Agriya Player with vShare

    This is what my code looks like:
    Code:
    <FLV_PLAYLIST Refresh="40" Sequence="order"> 
    	<DESCRITPTION Name="Name" Value="" />
    	<DESCRITPTION Name="Rating" Value="Rating: " />
    	<DESCRITPTION Name="Comments" Value="Comments: " />
    	<DESCRITPTION Name="Authour" Value="Author : " />
    	<VIDEO Name="1 (2:30)"   Rating="0" Comments="" Views="6"  Thumbnails="thumbs/1[1].jpg,thumbs/1[2].jpg,thumbs/1[3].jpg" url="someurl" target="_self"/>
    	<VIDEO Name="2 (2:13)" Authour="Arun" Rating="5" Comments="54" Views="155" Thumbnails="thumbs/2[1].jpg,thumbs/2[2].jpg,thumbs/2[3].jpg" url="someurl2" target="_self" />
    	<VIDEO Name="3 (1:30)" Authour="Vinayak"  Rating="2" Comments="33" Views="22" Thumbnails="thumbs/3[1].jpg,thumbs/3[2].jpg,thumbs/3[3].jpg" url="someurl3" target="_self" />
    
    	<VIDEO Name="4 (0:30)"  Authour="Vinayak"  Rating="1" Comments="13" Views="6"  Thumbnails="thumbs/4[1].jpg,thumbs/4[2].jpg,thumbs/4[3].jpg"  url="someurl4" target="_self"/>
    	<VIDEO Name="5 (5:30)" Authour="Robby" Rating="2" Comments="64" Views="14" Thumbnails="thumbs/5[1].jpg,thumbs/5[2].jpg,thumbs/5[3].jpg" url="someurl5" target="_self" />
    	<VIDEO Name="6 (1:30)" Authour="Someone"  Rating="4.4" Comments="23" Views="6" Thumbnails="thumbs/6[1].jpg,thumbs/6[2].jpg,thumbs/6[3].jpg" url="someurl" target="_self"/>
    	<VIDEO Name="7" Authour=""  Rating="1.2"  Comments="23"  Views="6" Thumbnails="thumbs/7[1].jpg,thumbs/7[2].jpg" url="someurl6" arget="_self" />
    	<VIDEO Name="8" Authour="Russel" Rating="5" Comments="5" Views="5" Thumbnails="thumbs/8[1].jpg,thumbs/8[2].jpg" url="someurl7" target="_self" />
    	<VIDEO Name="9" Authour="Amir" Rating="1" Comments="6" Views="53" Thumbnails="thumbs/9.jpg" url="someurl8" target="_self" />
    </FLV_PLAYLIST>

  8. #78
    Join Date
    Dec 2008
    Posts
    152

    Default Re: Using Agriya Player with vShare

    I read all the pages regarding this install and have failed
    THis is what i get

    http://img355.imageshack.us/img355/4443 ... d01zo9.jpg

    maybe because im using the Elite version of this software?


    Edit
    Thanks for the code cdtdk

  9. #79
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    30

    Default Re: Using Agriya Player with vShare

    I am using the elite version and it works fine. What fixed the connecting issue for me was when Bplex supplied the new code for player_config file on page 5: viewtopic.php?f=3&t=3440&st=0&sk=t&sd=a&start=60

  10. #80
    Join Date
    Dec 2008
    Posts
    152

    Default Re: Using Agriya Player with vShare

    i applied beplex's code before i posted but no luck
    Ill try again later today
    Thanks

Page 8 of 10 FirstFirst ... 678910 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
  •