Ok, I made my first pass at trying to do this with php. I started, again, with the /include/player.inc to revise the "file" flashvar. At first I just changed it to be:
Based on the advice of someone more familiar with this player, I later changed that to be:Code:so.addVariable("file","{$config["baseurl"]}/playlist.php);
However, that still did not get the desired result. In fact, I got the same result with playlist.php as I did using an XML file. I believe the problem is with the code inside playlist.php though, so I tried changing it up a number of different ways.Code:so.addVariable("file",escape("http://my.site.com/playlist.php?file=video_filename") );
- the entire file enclosed with <?php and ?>
- the $ prompts wrapped with <?php echo and ; ?> (but not the whole file being within <?php
- both of the above at the same time
- neither of the above
When I tried neither of the above, that got the closest result, in that it would play the first file (direct linked to an flv), but noth the one that uses $video_flvdoname (obviously, since it did not contain <?php anywhere. Even though it was wrong, I was still happy to at least see something play. lol.
After that I got desparate, and wrapped the entire file with <?php again, and the opened each line of the document with echo " and closed each line with \n"; That did not work either.
As it stands right now, I have the testlist.php set as:
So, at the end of this experiment, I am still in the same spot I was at the end of the xml experiment. I do believe I am on the right track though. I'm going to keep checking this out. If anyone has a suggestion, feel free to add it. I'm by no means an expert in php and basically have to learn as I go where this process is concerned.Code:<?php <playlist version="1" xmlns="http://xspf.org/ns/0/"> <title>Standard Playlist</title> <info>http://www.sportsgamingtv.com</info> <annotation>Standard Playlist File</annotation> <trackList> <track> <title>Sports Gaming TV</title> <location>http://www.sportsgamingtv.com/flvideo/118824154064749921.flv</location> <info>http://www.sportsgamingtv.com/</info> </track> <track> <title>Member Video</title> <creator>Sports Gaming TV</creator> <location>http://www.sportsgamingtv.com/flvideo/$video_flvdoname</location> <image>http://www.sportsgamingtv.com/thumb/$video_flvdoname</image> </track> </trackList> </playlist> ?>




Reply With Quote
Bookmarks