-
Loading a Playlist...
Hi Everyone,
Does anyone know why I may be having problems with the following in my player.inc file? So you know, I upgraded to version 3.99 of the player, and created an RSS playlist generator in PHP. Below is what I have in the javascript invocation code:
<script type="text/javascript">
var so = new SWFObject("{$config["baseurl"]}/player/player.swf","vshare_player","$player_wdith","$play er_height","8");
so.addParam("allowfullscreen","true");
so.addVariable("file","{$config["baseurl"]}/player/rssplaygen.php?flvurl={$config["baseurl"]}/flvideo/$vid.flv");
so.addVariable("image","{$config["baseurl"]}/thumb/$vid.jpg");
so.addVariable("logo","{$config["baseurl"]}/templates/images/watermark.gif");
so.addVariable("link","{$config["watermark_url"]}");
so.addVariable("linktarget","_blank");
so.addVariable("width","$player_wdith");
so.addVariable("height","$player_height");
so.addVariable("displayheight","$displayheight");
so.addVariable("bufferlength", "5");
so.addVariable("overstretch", "true");
so.addVariable("autostart", "false");
so.write('vshare_player');
</script>
You can see the results of the RSS feed generator here:
http://www.beaverwatchers.com/player/rs ... ideo/1.flv
If for some reason the above tries to download, just open the file, it's an rss/xml file
I also have added a Rewrite Rule so that the php file can be called via an xml file like this:
http://www.beaverwatchers.com/player/rs ... ideo/1.flv
For some reason the video never plays...Any ideas?
Dapanther99
-
Hi
Usally when the PHP files wants to download it's because the permission on the script are incorrect.
Have you tried to CHMOD the php file to 644 or 744
Try this and report back.
Cheers,
Mat.
-
Mat,
I am not at home so I can't access the server right now, but if I am right the script is set to 777. I did this as a default to test and was going to lock it down once I had it working. Like I said, I could be wrong though and will check it when I get home. If I can get this working, I'll share the RSS generator out to the community with instructions so they can add commercials to their videos. I know this is a hot wanted item right now and figured I would try and help the admin :)
Dapanther99
-
Hi,
Yer sure is a wanted item, that's why I installed Agriya FLV Player onto my site.
I've managed to get adverts running, mind you it is simply an image of the sites name at the moment but hey at least it's running.
I've also managed today to get the playlist up and running as well, mine uses php translated into an xml file, pulling information from the MySQL database.
I would highly recommend Agriya FLV Player to everyone, but I know it's not free :cry: .
-
Mat,
Well if I can't get this to work in the next day or two I may end up looking at changing out the player. I would hate to do that though because free is good :) (Especially to the wife who is running the budget on this site LOL)....
Dapanther99
-
Mat,
I just set the settings to 644, I tried 777, 744 and the results were the same. If you go to the url directly and not through the forum it works as it should. It may have something to do with the forum more is what I am thinking. I will be working on this more tomorrow night and let you know what I find. Thanks.
Dapanther99
-
I've sent you a PM.
Hopefully the information within it will help you.
If not let me know.
Cheers,
Mat.
-
Mat,
I think I figured out some of the issue. I was making the XML file the old way in PHP4.X. I have 5.X on the server and apparently things have changed :) I should have the PHP file done sometime over the weekend. Sorry about the delay, I've been having to take of some other projects the last week or so...
Dapanther99