MP3 Player

By James KanjoJames Kanjo

Description

With the traditional MP3 Player, you need to manually inject your MP3's url into the html code. This also means you need an individual code block for each song you want to play.

This is very tedious, and frankly, too complicated for less advanced users. So I've expanded upon the original code, and made it possible to dynamically play songs as specified in the URL:

Code

[[iframe http://snippets.wdfiles.com/local--code/code:mp3#MP3-URL frameborder="0" scrolling="no" width="320px" height="40px"]]

To make the player automatically start playing when the page loads, just append #autoplay to the MP3 URL. For example:

[[iframe http://snippets.wdfiles.com/local--code/code:mp3#http://squark.wdfiles.com/local--files/dev:8/1.mp3#autoplay frameborder="0" scrolling="no" width="320px" height="40px"]]

In action

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +8+x
Add a new comment
page_revision: 13, last_edited: 1256172520|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License