This post will show you how to automatically convert media links with jQuery, for instance audio links to a Flash-based audio player.
As I now use this framework to create a personal web site, which contains a bunch of links to MP3 files and YouTube clips, I want to let visitors play this content directly from the web site. I therefore want to convert these links to proper media players, depending on the content type.
Imagine my excitement, when I found a jQuery Flash and Media plugins, that convert
“a” tags that refer to MP3 files or YouTube clips to a music/video player! I use it
to automatically convert any
a tag that uses the
media class to the proper media
player, based on the media type.
The Flash plugin has been discontinued, but the jQuery media plugin is still up: