MyBB Community Forums

Full Version: Add mp3 player to web page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to add a simple mp3 player interface to a web page. It would play an mp3 file located at the web site. The controls I want are the basic ones we usually see, such as play, pause, stop. From the little searching I did, it seems HTML 5 supports this. But I could not find a tutorial. Can someone help me.
There isn't a tutorial because all you really do is use the new <audio> tag with a set source. To my knowledge it can only play one file per an audio tag so it won't allow more than one file in the same player.

http://html5doctor.com/html5-audio-the-state-of-play/

To be backwards compatible for older browsers or play more than 1 song with the same player you'll be better of with flash.
If you want a true playlist player etc, there are better things you can do then HTML 5.
(2012-07-05, 04:43 AM)Alex Smith Wrote: [ -> ]There isn't a tutorial because all you really do is use the new <audio> tag with a set source.

Thanks.
FWIW, I ended up using NiftyPlayer. I found it here: http://www.webdesignbooth.com/10-easy-to...r-website/