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>";
?>
Re: Using Agriya Player with vShare
Excellent! Videos now playing!
Thanks Bplex, I really appreciate all your help this afternoon! :-)
Re: Using Agriya Player with vShare
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>
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?
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?
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>
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
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
Re: Using Agriya Player with vShare
i applied beplex's code before i posted but no luck
Ill try again later today
Thanks