[Plugin Request] add lastfm audio track
-
I would love to have a wordpress plugin which helped embed a song hosted on Last.fm into a wordpress page.
All the plugin would require from the user is the Last.fm url for the song.
embed song : http://www.last.fm/music/Leafblade/Brompton+Abbey+Demos/A+Promise+in+the+Sleep+(Demo)
from the url the plugin would check the song resource id number (181562943 in this particular track – available in page source), and add this number to the following code :
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="13" height="13" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="resourceID=#########&flp=true" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="src" value="http://static.last.fm/webclient/inline/6/inlinePlayer.swf";; /><embed type="application/x-shockwave-flash" width="13" height="13" src="http://static.last.fm/webclient/inline/6/inlinePlayer.swf";; bgcolor="#ffffff" quality="high" flashvars="resourceID=#########&flp=true" allowscriptaccess="sameDomain"></embed></object>(in this code, replace ######### which appears twice, with the number from the page source)
This code, when completed will create a little flash play button which you can embed onto a wordpress blog.
This plugin im requesting could create a new post with this code already embedded. If a coder wanted to get really deep with this plugin, i imagine it could be developed to have admin panel and configuring flash graphics… but this extra is not needed to serve a function.
Please would coders consider this !!!
thanks!
🙂
The topic ‘[Plugin Request] add lastfm audio track’ is closed to new replies.