There is no sophisticated way to detect it. The good news is the last stable Firefox 24.0 support play shoutcast streams in MP3 with HTML5 audio. The best way to detect the support that I wrote:
function icy(){
try{
if(!navigator.userAgent.match(/Trident\/7\./) && $.browser.mozilla && $.browser.version < 24)
return false;//https://bugzilla.mozilla.org/show_bug.cgi?id=869725
var a = document.createElement('audio');
r = !!(a.canPlayType && !!a.canPlayType("audio/mpeg; codecs=mp3").replace(/^no$/,''))
}catch(e){
r = false;
}
return r;
}
If you use the lastest jQuery 1.10.2, you need include jQuery Migrate plugin to use $.browser