Simple audio playback with Yahoo Mediaplayer
Recently I had need to show a list of MP3 files with a click-to-play interface.
I came upon a very simple self-contained audio player:
The code to set up my links for playing was dirt-simple:
You could use various ways to identify the links to be player-ized, but I chose to just associate the links with a class, “mp3”:
<a class="mp3" href="/path/to/file.mp3">Audio File 1</a>
Obviously, if jQuery is in use for your page, you can reduce the code to an even smaller snippet.