Support Staff2 Posted by OJay on 18 Jan, 2013 09:32 PM
Hi, first off there are known browsers and OS limitations in the
documentation of Sound and in each specific plugin they apply to. I
highly recommend starting there if you run into support issues.
I've found the most widely supported approach does the
Set up flash fallback, for those cases where the browser doesn't
support any other type of audio. Failing that, initialize the
default plugins using
Preload sounds internally or using PreloadJS.
Make sure you have multiple formats for a sound, as no one
format is supported everywhere. MP3 and ogg cover most of your
bases, but I would also suggest m4a. So that would look something
Launch all of your sounds inside of user events (touch/click).
Mobile devices tend to require this in varying degrees.
With all that, you may still run into trouble. A couple of
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 your
sound, and then it will try to play and fail.
Watch out for CORS
issues. Server setup has been responsible for a lot of issues we've
Debug. Check what plugin is running using
createjs.Sound.activePlugin.toString(). Check if the browser you
are using supports audio. See Web Audio support and HTML Audio support. Check what
formats it says it supports through
If all else fails, post something here with the problem your
having, OS and browser, and if possible the code and sound assets.
We have a smart and helpful community, after all. =)
Support has been confirmed in iOS 6, Android through the chrome
browser, and Windows 8 tablets. Note iOS 5 and ealier is not
supported by default as it only allows you to have a single audio
tag. In general, if a browser says that it supports HTML Audio or
Web Audio then it should work in theory. In practice, it
tends to take some fine tuning to figure out the exact limitations
and needs of any given device, especially for mobile devices. The
TestSuite.html example has proven to be an excellent testing tool
for us as it can let you test all the plugins and most of the
functionality. As always, if you find something that isn't working,
please let us know about it.
On our Samsung windows 8 tablet, sound is working in the
Hope that helps.
Thanks for the very thorough response, OJay! Us developers who
use these libraries really appreciate you giving us the tools to
build cool projects.
At my agency, we build immersive (Flash-like) experiences, and
our clients want these experiences to run on all devices. Audio
seems to be the one sticking point for us, as EaselJS takes care of
the canvas interface quite nicely for us.