October 11, 201313 yr I've created this lightweight mp3 player from scratch using an audio element and raw JavaScript for the controls. Besides for the lack of support for native mp3 in most Firefox versions it seams to work fine in all modern browsers. I'm using DOM 2-style EventListeners instead of onclick, onload ect. which is very new to me. For that reason I would appreciate if anyone feels like talking a look at the code and post suggestions for improvement here. I've created a jsfiddle here: http://jsfiddle.net/Nillervision/s72b2/ If you wish to use the player in your own projects feel free to copy the source from here (HTML with css and js embedded). It's very easy to use. To add items to the playlist simply add a link to an mp3 file in the ordered list. The css works with responsive designs.
Create an account or sign in to comment