|
Cookbook /
DeliciousPlaytaggerSummary: Embed mp3's with the Delicious.com playtagger
Version: 28-Nov-2008
Prerequisites: none
Status:
Maintainer:
Questions answered by this recipe
DescriptionThe Delicious.com playtagger is a very simple way to embed mp3's into a webpage so that they're instantly playable. For an explanation and example, visit the Delicious.com playtagger page (formerly Del.icio.us). In a nutshell, the following code is a line of javascript which embeds a flash-mp3-player from Delicious.com. It's as simple as this - in config.php, add the following line:
## DELICIOUS PLAYTAGGER
$HTMLHeaderFmt['playtagger'] = '<script type="text/javascript" src="http://static.delicious.com/js/playtagger.js"></script>';
(this adds the script to the <head> of every page.) After adding this code, any link to an mp3 will automatically appear with a blue-play-button preceding it. Any of the following bits of code will be transformed:
NotesThe playtagger code above is great, but it doesn't [yet] allow the use of custom play/stop button icons. While surfing the web, however, I located some reverse-engineered delicious playtagger javascript code by Improbulus (http://www.consumingexperience.com/2005/11/playing-mp3s-on-your-blog-beginners.html(approve links)) which indeed allows one to substitute one's own buttons. To do this:
* if you haven't already defined , it should be the path to your /pub directory, i.e.:
$PubDirUrl = 'http://mysite.com/pmwiki/pub';
overtones99 September 29, 2009, at 01:39 AM Release Notes
See Also
ContributorsCommentsUser notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |