well found another bug damn sorry now iam only getting one thumb coming up with the related video's
Printable View
well found another bug damn sorry now iam only getting one thumb coming up with the related video's
You was getting that before, I believe. I'll look into it.
all is good thanks for helping me out this works good nowQuote:
Originally Posted by bplex
Actually, there is a problem. I noticed that on some of your videos, it works and on others, it does not. The problem is due to unescaped titles. Some of your titles have quotes in them, which would cause problems with the viewer not showing all of your related videos. I have updated the playlist_xml.php file to fix this issue.
Also, while I was at it, I fixed the "()" thing at the end of your titles. They were originally there to show the video's duration. However, there was an error in that code. It will now show your video's duration correctly.
you got her its a go if i find more bugs i'll post thanks once again
now one more ? how can i get my videos that are embedded from another site to work in my player do i have to add each to separate html code in the embedded file?
It will actually be easier to simply download the video from the other site and upload to yours than it will to try to get their videos to play on your player. Each site has different configurations and different settings and to do that, in a lot of cases, violates the terms of service from the other site (essentially, you are stealing their bandwidth. Normally, other sites will run ads or links back to their site so that after people watch them, they can visit their site, which helps them to pay for the videos that people watch) not to mention that you would spend so much time trying to write code to handle all of the different configurations.
Bplex thank you for the great updates!
I just have one mickey problem with it, when the video is finished it is only showing one related thumbnail.
Thanks again...
What's your site's URL (it would be best if you point to a video that is only showing one related video).
Thanks for the responce :)
It's weird I bought the elite player for my one site and it came with no instructions and bought the premium player for my other site and it came with 4 instruction files which told me how the change the number of thumbs shown at the end. So it was config error on my part. Your mod is going strong and much appreciated!
I tried But just showing connection please wait..........
why? why? why?........
someone help me out.
thank
zyln
please support for multi server.
thank you
The script, as I have modified it, works for multiple servers. The problem is that on your site, you haven't uploaded any actual videos. Check your PM and reply to my last message.
Also, please keep in mind that Agriya player is unsupported by the developers. If you choose to use it, you use it at your own risk.
now ok with multi server. But when I added flv url of movie link in admin panel ( Add FLV/Embed Section ) movie doesn't play with agriya player.
how do I kill that problem.
thank
That's because it isn't supposed to. When you embed a video from another site, it does not play on your player. Rather, it plays on their player (from the site you are embedding). That is the only way that you can legally embed a video from someone else's site.
Firefox for work fine, but IE for not working :(
What's your site's URL?
I looked at the URL that you PMed me. Two things.
1. Your site is not using the Agriya player. You are using the default player that comes with vShare.
2. The problem is that the path's to your video files look like "../../flvideo/somevideo.flv." This will work in Firefox, but not IE (or any other browser for that matter). You will need to change this to point to the full URL to the video (i.e. http://www.example.com/flvideo/somevideo.flv). You can fix this in your player.inc file.
Problem Fixed! my .htaccess hotlink protection use other used domain. now work fine!Quote:
Originally Posted by bplex
Regards,
eManuka
Well I have followed this tutorial right down to the wire and it still seems to freeze on "Connecting: Please Wait!"
:-(
What's your URL?
pm sent
Are you using the files from the .zip provided on page one?
Yes I am.
Is this what is causing it?
Yes. The code provided in the .zip files is actually quite broken. If you care to jump over to page two, I provided an updated player_config.php and playlist_xml.php file that should fix your problems.
I did follow those instructions. I deleted the info in that file and replaced with the info you provided, but it still seems to not play the videos...
Put the player back up.
Done
Also, you will need to change the player_config.php file to point to your video's skin. The default location that it is looking for (in the player_config) is player2/skin/skin.swf. This is not on your server.
All of the PHP files appear to be correct and working. The only thing that I can see that is causing an error is the missing "skin.swf" file. That may or may not be the problem.
The skins were named:
new_skin.fla
new_skin.fls
I have renamed them both to: skin.fla and skin.fls and the player now loads and I receive a new message now in the right hand corner that it is loading but the video does not.
Can you take a look please.
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>";
?>
Excellent! Videos now playing!
Thanks Bplex, I really appreciate all your help this afternoon! :-)
You're welcome.
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>
Quote:
Originally Posted by bplex
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?
i think my code in the playlist.xml is screwed up
Could someone post their code so i can check it out?
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>
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
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
i applied beplex's code before i posted but no luck
Ill try again later today
Thanks