Hi,
I just recently posted questions about using a PHP parser in order to make external video rss feeds work with the player (http://jeroenwijering.com/?thread=6091), but I am putting this question in a separate post because it is more related to javascript. I got the PHP parser scripts from here: http://jeroenwijering.com/?thread=5752 and then referenced the PHP files in the javascript code on my page, which goes like this...
function createPlayer() {
var fil1 = "http://michaelcbrook.com/cgi/tv.bliptv_most_popular1.php";
var fil2 = "http://michaelcbrook.com/cgi/tv.googlevideo_top_100.1.php";
var fil3 = "http://michaelcbrook.com/cgi/tv.dailymotion.1.php";
var fil4 = "http://michaelcbrook.com/cgi/tv.reuters_top_news1.php";
var fil5 = "http://michaelcbrook.com/cgi/tv.archive.org_most_recent1.php";
var s = new SWFObject('http://michaelcbrook.com/flash%20media%20player%20docs/mediaplayer.swf','mpl','850','395','7');
s.addParam('allowfullscreen','true');
s.addVariable('displayheight','375');
s.addVariable('file', fil2);
s.addVariable('height','395');
s.addVariable('width','850');
s.addVariable('frontcolor','0xCCCCCC');
s.addVariable('backcolor','0x000000');
s.addVariable('lightcolor','0x0099CC');
s.addVariable('displaywidth','500');
s.addVariable('location','http://michaelcbrook.com/flash%20media%20player%20docs/mediaplayer.swf');
s.addVariable('autostart','true');
s.addVariable('repeat','true');
s.addVariable('rotatetime','0');
s.addVariable('shuffle','false');
s.addVariable('enablejs','true');
s.addVariable('linktarget','_blank');
s.addVariable('shuffle','false');
s.write('player');
};
</script>So everything works great now, but I have a simple question that maybe someone who knows javascript better than I do could answer. How do you switch between the different PHP scripts in order to play a different feed when you click on a button or link?
see the multipleplaylists example on this [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/multipleplaylists.htm]demo page[/url]
it shows both how to use links and dropdownboxes to change playlists...