In this prototype, I'm going to try and stream a single audio file. I'll be using HTML5 elements initially. The MP3 I want to stream is the file I Feel Fantastic.mp3, intentionally given a file name that is common amongst music collections.

There's a list of supported types over on the w3schools website, however I'm hoping it's out of date.

As expected, the above test fails in Firefox and Opera. So I need to find a way to make it work in both of those browsers, since they're apart of my project contract and intended minimum support.

So there's a javascript library to play MP3 files in Firefox. Lets test that.

So it looks like jsmad is both undocumented and not currently in active development. Due to that, it's probably not a good idea for me to rest my software on top of it.

There is another player however which uses the HTML5 <audio> tag where it can, but falls back to Flash where it's unable. The user doesn't see a difference, but it's a little annoying that I have to use Flash. Lets test it here:

play pause

Works amazingly! And it's entirely configured using Javascript, so I can design the UI as a like.