Currently I’m using soundmanager2 to power sounds in my web app. SoundManager uses Flash, which sometimes crashes, killing sounds. Is there a reliable plugin available in jQuery that powers sounds using HTML5 rather than with Flash?
My Settings:
soundManager.url = '/misc/soundmanager2/v20111220/'; // SoundManager fails if the SWF is loaded from the CDN
soundManager.debugMode = true;
soundManager.flashVersion = 9;
soundManager.useFlashBlock = false;
soundManager.useHTML5Audio = true;
SoundManager can also play pure HTML5 sound.
Flash is only (optionally) used as fallback. Or for some nifty stuff which isn’t (very well) supported (yet) by all browsers. Like a spectrum analyzer etc.
To ‘force’ SoundManager2 to use HTML5 audio you can add the following parameter:
From the official docs.