Currently, SoundJS has HTML and Flash audio support, which as been well tested in modern versions:
- Internet Explorer 9 & 10
- Chrome / Android Chrome
- iOS 6+
Support for IE 7 & 8 using the Flash plugin only.
BlackBerry Browser (lightly tested)
Please review our SoundJS documentation for know browser limitations.
Yes, and it is used by default when available.
Currently the following browsers support WebAudio:
- Safari 6
- Mobile Safari on iOS6 .
You can keep track which browsers support WebAudio here.
Please note that WebAudio will only run online or using a local web server such as MAMP. The WebAudioPlugin is set up to fail when testing locally, so HTML audio will be used instead in this circumstance.
Yes,but only on iOS 6. Please refer to "Is WebAudio supported by SoundJS?"
how to determine your iOS version.
SoundJS documentation known limitations
The most significant limitation is that web audio starts muted, and must be played inside of a user event (touch) to be unmuted.
We suggest that users take the follow steps:
- Setup Flash fallback, for those cases where the browser doesn't support any other type of audio.
- Preload sounds internally or using PreloadJS.
- Make sure you have multiple formats for a sound
MP3 (Chrome, IE, Safari, and Android)and
OGG (FireFox and Opera), as no single format is supported everywhere.
- Launch at sounds inside of user events when possible (touch/click/key), as mobile devices tend to require this in varying degrees.
For example iOS 6 requires your first sound only to be played inside a user event, while Android Chrome requires every sound to be played in a user event.
Please note due to browser limitations inconsistencies may occur
Most of the time it’s because of CORS
issues caused by your assets being in a different domain or path
than your html.
However It could be because you used absolute path
c://myDocuments/.../mySound instead of relative
Most browsers can not load files using XMLHttpRequests locally
Web Audio requires XHR. The WebAudio plugin is set up
to automatically fail locally, and SoundJS will default to the
HTMLAudio plugin (which loads via tags). This might happen if you
only specify a WebAudio plugin with no fallbacks.
Make sure your audio is published with default encoding. Some browsers will support a format like mp3 but only default encoding. So the browser will say it supports your sound, it will load properly, but then it will try to play and fail.