Difference between revisions of "Help:Extensions/Last.fm Player"
Line 2: | Line 2: | ||
==Description== | ==Description== | ||
− | You can | + | You can play music from [http://www.last.fm last.fm] within '''[[Centiare:Spaces#Directory_Space|Directory]]''' listings. |
− | + | Just find your song and get the entire code string. Then, embed the code within the <nowiki><embed> ... </embed></nowiki> tags on your page. | |
==Code== | ==Code== | ||
Line 10: | Line 10: | ||
<pre> | <pre> | ||
− | < | + | <embed> |
− | + | <object width="340" height="123"><param name="movie" value="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" /> | |
− | + | <param name=FlashVars value="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" /> | |
− | </ | + | <embed src="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" width="340" FlashVars="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" height="123" type="application/x-shockwave-flash" /> |
+ | </object> | ||
+ | </embed> | ||
+ | |||
</pre> | </pre> | ||
In action: | In action: | ||
− | < | + | <embed> |
− | + | <object width="340" height="123"><param name="movie" value="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" /> | |
− | + | <param name=FlashVars value="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" /> | |
− | </ | + | <embed src="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" width="340" FlashVars="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" height="123" type="application/x-shockwave-flash" /> |
+ | </object> | ||
+ | </embed> | ||
[[Page Of::Centiare:Extensions]] | [[Page Of::Centiare:Extensions]] | ||
[[Extension Name:=Last.fm Player]] | [[Extension Name:=Last.fm Player]] | ||
[[Category:Centiare Extensions]] | [[Category:Centiare Extensions]] |
Revision as of 16:29, 27 March 2007
Description
You can play music from last.fm within Directory listings.
Just find your song and get the entire code string. Then, embed the code within the <embed> ... </embed> tags on your page.
Code
Here's an example:
<embed> <object width="340" height="123"><param name="movie" value="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" /> <param name=FlashVars value="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" /> <embed src="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" width="340" FlashVars="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" height="123" type="application/x-shockwave-flash" /> </object> </embed>
In action:
<embed> <object width="340" height="123"><param name="movie" value="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" /> <param name=FlashVars value="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" /> <embed src="http://static.last.fm/webclient/37/defaultEmbedPlayer.swf" width="340" FlashVars="viral=true&lfmMode=playlist&resourceID=70457&resourceType=10&restTitle=Andy Roberts&albumArt=http://static.last.fm/coverart/130x130/3235881.jpg&labelName=AndyRoberts" height="123" type="application/x-shockwave-flash" /> </object> </embed>
Centiare:Extensions Last.fm Player