For multiple players on one page you will need the javascript (swfobject.js) and the imagefile (player-image.jpg).
What it does is place an image on the page for each player, when the player is clicked it is replaced with the mediaplayer. It isn't ready yet as the link to forward to adobe for an updated player isn't working in Safari (hence the href="#") but that seems to be an adobe ting.
If you need to get this working now, the code behind it is this:
<script type="text/javascript" src="{$JAMROOM_URL}/include/js/swfobject.js"></script>
{literal}
<script type="text/javascript">
var currentPlayer=null;
var currentFile;
var currentImage;
var s = new SWFObject("/include/flash/mediaplayer.swf","playerID","200","20","8");
s.addParam("allowfullscreen","false");
s.addVariable("file",theFile);
s.addVariable("width","200");
s.addVariable("height","20");
s.addVariable("overstretch","fit");
s.addVariable("image",theImage);
s.addVariable("showicons","false");
if (go) { s.addVariable("autostart","true"); }
s.write(thePlace);
}
</script>
{/literal}
_________________ Kulshi Mezian!
"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"
I had actually gotten this player to work quite a while ago(http://www.moneymanagementxl.com at bottom of index page) but had to alter the play.php file each time a new update was released so i have been waiting a long time for it to be a part of jamroom. So i guess i can keep on trucking the way i have in the past but not have to change the play.php file.
Although i love how you have that page with the screen shot that turn into real players. I'm going to have to find a way to use it.
Thanks
_________________ ~ Todd
=================
Happy Jamrooming
New Jersey
www.bandarray.com
I had actually gotten this player to work quite a while ago(http://www.moneymanagementxl.com at bottom of index page) but had to alter the play.php file each time a new update was released so i have been waiting a long time for it to be a part of jamroom. So i guess i can keep on trucking the way i have in the past but not have to change the play.php file.
Although i love how you have that page with the screen shot that turn into real players. I'm going to have to find a way to use it.
Thanks
What was the modification on play.php for this to work?
Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble
Posted: 06/06/08 17:56
Using the code I posted above there is no modification to play.php.
The example I linked to is no longer there as I just keep sefjam updated with the current set of files and overwrite any experiments or examples, but the code should still be good.
_________________ Kulshi Mezian!
"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"