September
2007
YT-Audio: Audio Hosting From YouTube in WordPress
I’m a huge fan of the Audio Player plugin for Wordpress that lets you embed a flash player for a single MP3 file in a blog post. The problem is that you have to host the MP3 file yourself, and if your hosting service isn’t very generous with either storage space or bandwidth, it’s not a very good solution.
Most of the time that I want to attach a song to a blog post, it’s usually some pop song that I’m either listening to or my mood has reminded me of. Let’s face it, YouTube is the new MTV. Name a pop song, and the music video is probably on YouTube. I could embed the whole YouTube video of a song on my blog, but what if I just want the audio? What do I do then?
Introducing…. YT-Audio, the plugin for Wordpress to embed the audio from a YouTube video on your blog!
How does it work?
It’s actually ridiculously simple. All it does is embed YouTube’s regular flash movie player inside two iframes that chop off all but the bottom control bar of the video. Nothing fancy. Just useful.
Instructions
You install it just like any other Wordpress plugin. Unzip it into the /wp-content/plugins, directory. Then, in your post, put the text:
ytaudio(aMBgSfQI49E)
Where “aMBgSfQI49E” is the code for the video on YouTube. And you should get something like:
It’s just that simple! I’ve tested this on Firefox, Safari and IE 7. It looks pretty good in all three. Enjoy!
Change History
| 1.1 | 2007-12-04 | Modified to handle YouTube’s new flash player. |
| 1.0 | 2007-09-25 | Original version |

Erik R.


This is an awesome plugin. Thanks. Is it possible to add a feature to it that would enable me to isolate excerpts from the audio? a start/stop switch in the ytaudio code?
That’d be even more awesome!
Sorry, 123, but, if that control of the YouTube flash player is even possible, I don’t know how to do it.
Do you know of any good hosting service that will host audio files. I am referring to just the audio recorded all by itself, not as part of the video on YouTube.
Who can host the audio file that I can use for posting on several blog sites, without uploading the file on each blog site?
Any help will be greatly appreciated.
Yes. Just the audio, without the video can be hosted at Apple iTunes as a podcast. Geoff.
awesome, thanks!
thanks.
A problem with de YT code with _ inside? Thanks