The multi-server issues that you guys are reporting is going to be due to the fat that the player_config.php file is written to only support single-server setup's and not multi-server setups. I have modified the player_config.php file so that it should work.
Also, if anyone would like any help installing this player with vShare, please let me know. I do charge a small fee for this, however. PM me if you would like more details.
Here is the modified player_config.php file which supports multi-server environments:
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>";
?>
Bookmarks