Code: Select all
<p id="player3"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s3 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
s3.addVariable("file","{URL}");
s3.addVariable("repeat","true");
s3.addVariable("showdigits","false");
s3.addVariable("showdownload","true");
s3.addVariable("width","240");
s3.addVariable("height","20");
s3.write("player3");
</script>
You downloaded the wrong one.BeyondHelp wrote:Code is wrong. Filename in archive is not mp3player, but mediaplayer. Fixed code below.
Code: Select all
<p id="player3"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p> <script type="text/javascript"> var s3 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7"); s3.addVariable("file","{URL}"); s3.addVariable("repeat","true"); s3.addVariable("showdigits","false"); s3.addVariable("showdownload","true"); s3.addVariable("width","240"); s3.addVariable("height","20"); s3.write("player3"); </script>
Hint: I-FrameJume wrote:This is very nice, but somehow the player can only be shown once on a page (otherwise you'll get the "get flashplayer" message). Therefore it is not possible to have 2 mp3 files on one page (even when the second link is given in a reply message).
Do you think there might be a solution for this problem?
Code: Select all
var s3 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
s3.addVariable("file","{URL}");
Code: Select all
var s4 = new SWFObject("mediaplayer.swf", "line", "240", "20", "7");
s4.addVariable("file","{URL}");
Code: Select all
<embed
src="mediaplayer.swf"
width="300"
height="20"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=20&width=300&file={URL}"
/>
http://www.hardcoreproducerforum.nl/ameisez wrote:Is there any working sample for this one with playlist?
Also, I am wondering what will be displayed on the screen if it is only playing mp3?
Is there an option to show playlist and click the title of the song to play it
Thanks
Code: Select all
<script type="text/javascript">
var s0 = new SWFObject('player/player.swf','mpl','233','155','8');
s0.addParam('allowscriptaccess','always');
s0.addParam('allowfullscreen','true');
s0.addVariable('height','156');
s0.addVariable('width','233');
s0.addVariable('file','player/mp3/playlist.xml');
s0.addVariable('frontcolor','0x1A1A1A');
s0.addVariable('lightcolor','0xAA0000');
s0.addVariable('screencolor','0xAA0000');
s0.addVariable('displaywidth','0');
s0.addVariable('searchbar','false');
s0.addVariable('overstretch','fit');
s0.addVariable('showicons','false');
s0.addVariable('showeq','true');
s0.addVariable('showstop','true');
s0.addVariable('autoscroll','false');
s0.addVariable('thumbsinplaylist','false');
s0.write('player2');
</script>
I took a deeper look at your post and it isn't a bbcode, how will I add something like what you have on your site?Tarabass wrote:http://www.hardcoreproducerforum.nl/ameisez wrote:Is there any working sample for this one with playlist?
Also, I am wondering what will be displayed on the screen if it is only playing mp3?
Is there an option to show playlist and click the title of the song to play it
Thanks
On the right![]()
Code: Select all
<script type="text/javascript"> var s0 = new SWFObject('player/player.swf','mpl','233','155','8'); s0.addParam('allowscriptaccess','always'); s0.addParam('allowfullscreen','true'); s0.addVariable('height','156'); s0.addVariable('width','233'); s0.addVariable('file','player/mp3/playlist.xml'); s0.addVariable('frontcolor','0x1A1A1A'); s0.addVariable('lightcolor','0xAA0000'); s0.addVariable('screencolor','0xAA0000'); s0.addVariable('displaywidth','0'); s0.addVariable('searchbar','false'); s0.addVariable('overstretch','fit'); s0.addVariable('showicons','false'); s0.addVariable('showeq','true'); s0.addVariable('showstop','true'); s0.addVariable('autoscroll','false'); s0.addVariable('thumbsinplaylist','false'); s0.write('player2'); </script>
Did only show you the example of how it look's with playlist and multiple mp3's. Not how to be used with bb-code. But what I can think of, is using the post-id for every instance. So you replace 's0' with 's<?php $post-id ?>' and replace 'player2' with 'player<?php player<?php $post-id ?>', or use a iframe for every instance like said before. I can't help you with that, sorry..ameisez wrote: I took a deeper look at your post and it isn't a bbcode, how will I add something like what you have on your site?
Can I add multiple instance of that kind in same page?
Thanks