I am trying to load new playlists with the flow plugin and when I do that I see that the original playlist is still there in the background. Is there a way to clear the old playlist and then load the new playlist. This does not happen with the normal playlist bar just with the flow plugin. Any ideas?
var player = null;
function playerReady(thePlayer) {
player = window.document[thePlayer.id];
}
function cacheHack()
{
return "?t=" +new Date().getTime();
}
function createPlayer(thePlayer, thePlaylistFile)
{
var flashvars = {
autostart:"false",
skin:"/lib/swf_player/stylish.swf",
stretching: "uniform",
controlbar:"top",
file:thePlaylistFile,
plugins:"flow-1&flow.position=bottom&flow.showtext=true&flow.size=105&flow.coverheight=55"
}
var params = {
allowfullscreen:"true",
allowscriptaccess:"always"
}
var attributes = {
id:thePlayer,
name:thePlayer
}
swfobject.embedSWF("/lib/swf_player/player-licensed_46.swf" + cacheHack(), "placeholder1", "450", "450", "9.0.124", false, flashvars, params, attributes);
}
function loadFile(theNewPlaylistFile)
{
if(player)
{
player.sendEvent('STOP');
player.sendEvent('REDRAW');
player.sendEvent('LOAD', {file: theNewPlaylistFile});
}
}
</script>
Hi Bk,
This is not yet supported, but will be added in the 1.1 release if there is enough interest in the plugin.
Now the plugin just builds the flow playlist on initialization.
Kind regards,
Wesley