I had mentioned this plugin a while ago, but never released it. It's a small plugin that makes it easy to insert single MP3 files directly into your posts via a little Flash player.

Basically, you just copy up and activate the plugin, the put the URL of the MP3 file inside of brackets (those are the square ones) in your post. When you do, you get this:

[http://www.asymptomatic.net/audio/Garden State - Let Go - Frou Frou.mp3]

You can download the plugin for WordPress, which makes it easy to insert this applet or any Flash applet into your posts, and the AsySound Flash Applet over at the hacks page.

Comments

Comment by Owen on .
Owen
The Flash player script tells it to stream, but it only seems to obey these instructions when running in Firefox. I'll check out the link you suggested, and if there is any insight for improving my ActionScript there, I'll roll it in and release it. I do plan on releasing the flash source file for the applet, but I was in a rush to get the working archive online so it's not in there currently.
Comment by Andrea on .
Andrea
Yay, finally! ;-) Though it looks like I won't be able to use it after all, as I'm trying to get this to work with Custom Fields. Here's the relevant code snippet, using a plugin by coffee2code. The call includes the custom field key name and a $before and $after variable (I copied the AsySound.swf file to the root): c2c_get_custom('soundfile_mp3', '/AsySound.swf?http://localhost/Wordpress/_media/', '' Right now this code is merely echoed, not processed (i.e. the player doesn't show up). Guess a plugin function within a plugin function is a no-go?
Comment by Owen on .
Owen
Andrea, This is going to be difficult to do, since you have to insert the Flash movie filename into two places in the output, which it seems that the c2c function won't do by itself. What you can try is putting the objet tag directly into the template HTML, and then inserting two c2c_get_custom() calls - one each where the Flash needs to be inserted. Like this, in concept: <object ...> <param name="movie" value="<?php c2c_get_recent_custom(...);?> <embed src="<?php c2c_get_recent_custom(...);?>" ...></embed> </object> But this will only get the most recent one and display it. Your code kind of implies that you want to display all of the mp3s that you've added to meta info, and not just the most recent one. That seems crazy, but it could be what you actually want. If so, I'll have to think of another solution.
Comment by Andrea on .
Andrea
Whoops, sorry about the vague code snippet, I actually had the non-crazy solution in mind, i.e. displaying only the mp3 file associated with a post. I played around a little with the code you emailed me (thanks!) and found that using the full flash code as $before and $after values within the Get Custom plugin (a rather tricky copy'n'paste job) actually works, but I have to specify the absolute path to the AsySound.swf file for some reason. On the other hand, c2c_get_custom() calls within the flash code get stripped out, resulting in empty src values in the processed code. I'll email you the details later. Great plugin, thanks again.
Comment by RaynerApe on .
RaynerApe
White I am not interested in the audiostreaming part yet, I would like to thank a lot for the Filter Filter Plus plugin, unlike other solutions like Flashifier, it allows hotlinking SWFs, which is great if you have a second faster host to store those. Thanks again! Are you planning using it with other Flash objects - for example image slideshows?
Comment by Prem on .
Prem
This looks great. I look forward to trying it out. One comment from trying out the example song on your post... I'm using IE6 here and the file starts streaming and playing straight away. At first, I found it confusing to understand what the two different times on the Flash applet meant - the "song length" time was continually increasing because the browser was still downloading the file. I would suggest it might be better not to display the song length until the entire file has been cached by the browser. Well done...
Comment by Prem on .
Prem
I have installed this and all steps work, including displaying the correct object and embed tags in the source code. However, the file doesn't play - it never stops "loading". The mp3 address is correct - I can cut and paste the address to download the mp3 file off the server. The page I'm currently trying it on is here: http://www.dharmasphere.org/2005/04/15/dark-side-of-the-moon/ Any suggestions?
Comment by malyfred on .
malyfred
Hi, I'm gona to use your plugin widely on my page, but I'd like to change the design of the player. You said: "I do plan on releasing the flash source file for the applet, but I was in a rush to get the working archive online so it’s not in there currently." and my question is? What about to releas it now:o) Otherwise I have to write my own flash applet:(
Comment by Xavier on .
Xavier
Hello, I wanted to work out something like that around the similar Flash file DewPlayer which works in the same fashion as your own AsySound. Ideally, I would like to just take your plugin and use DewPLayer instead (giving you full credit, of course), but I can't find any licence file or anything about re-use. Could you let me know if that's ok with you, before I start anything ? Thank you very much.