Asymptomatic

Flash Filter Plus and AsySound

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:

Continues here →

[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.

Other Posts

Comments

  1. Yay!! Works great!
    Just awesome I was able to implement it into the post I did earlier. ;-)
    Thanks! :)

  2. The one issue I've noted with this plugin is that in IE Flash needs to download the entire audio file before it'll play anything. Sometimes this is inconvenient.

    In Firefox, it streams like it's supposed to. Not sure what that's all about.

  3. It's about time! :P

    hehee

  4. Excellent. Just one question - does the Flash player stream or load the whole sound and then play it? There is a great flash player plugin used by loudblog.de (Loudblog Postcasting Blog), which can stream sounds, and they provide the source for it.

  5. 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.

  6. Hey can you use this anywhere else other than posts? Like the sidebar or pages wrapped with EzStatic or wp pages?

  7. That's a really good question. No, you can't. But I don't see any reason why it couldn't be altered to do as much.

    Of course, if you write out the object tag yourself, you can make AsySound.swf play anything you want.

  8. waymorefunner

    Owen you've done it again!

    Took me all of five minutes to get it up and running: Waymorefunner

    Awesome! Thanks!

  9. 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?

  10. 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.

  11. 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.

  12. Are you sure it's working as you expect? Unless you place the Flash movie URL in two places, it might not work in some browsers.

    Weird that the code gets stripped out of the src parameter. I wonder why...

  13. 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?

  14. Chaim Krause

    What tune is it that you are streaming in your example. I like it.

  15. The tune is "Let Go" by Frou Frou, from the Garden State soundtrack. It's been the anthem to my coding over the past month.

  16. 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...

  17. I've use it on the another blog system(not WordPress) and it works fine. Thank you very much!

  18. The reasoning for this is that I wanted to know how long the overall song was during playback, but the overall value can't be known until the entire file is downloaded. So that's why there's a little plus sign next to the time, indicating that the sound is longer, it's just not sure how long.

  19. 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?

  20. I am a total newbie with web design but when i found the plugin i thought it would be amazing for the blog i was starting and after a little shakyness getting it running it works great not to mention Owin(admin) responded quickly to my eamil to help me out and thats real cool.

    g-blogger.com

  21. that's a cool song, what is the title of the song and name of the artist??

  22. Er, see here for the answer I gave to this question last time.

    All the comments with light blue backgrounds are me talking. At least read those! ;)

  23. is there anyway to edit the swf file so i can make it fit the color scheme of my blog?

  24. Thank you very much indeed!

  25. 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:(

  26. The Flash source file is available on the hacks page, or just download directly.

  27. Your Well Wisher

    This shit is awesome dude!

  28. 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.

swindler-cave
Real Time Web Analytics