Hey guys, after focusing on only IE<9, I just realized that sound doesn't work in IE9 itself!
Anyone experienced that? Why could that be?
Funny thing is I tried a .mp3 and it worked.
So this works:
var sound = new Audio;
sound.src = 'http://mcgraw-hill.faceyspacey.com/rocket-blast-3-v13/media.mp3';
but this doesn't:
sound.src = 'http://mcgraw-hill.faceyspacey.com/rocket-blast-3-v13/media.m4a';
I thought IE9 was supporting .m4a as well. Whatsup with that?
I guess m4as don't work in IE9:
I guess we're supposed to manually make the mp3s since there is licensing costs involved in encoding mp3s as I think I read in one of Ashley's articles.
I think the sole reason there is m4a format is because of IE, so that's strange that it doesn't work.
Are the mime types correctly set on your server ?
i did that and it doesnt work.
IE9 definitely plays .m4a. Visit the URL:
It returns 404 not found. So I guess you just didn't upload the audio file?
that was the wrong file. Here's the right one:
it comes up for download. m4a isnt supported in IE9.
Ashley, try to play the m4a in IE9 here:
IE9 definitely does support .m4a. All our existing games use it and play audio in IE9. Here's a demo of your arm.m4a file which plays in IE9:
I would guess your .m4a file is using a different encoding. .m4a is just a wrapper for other codecs, and it has to be the right kind (AAC) inside the file for it to play. If you encoded it using Construct 2's importer, it should play fine too.
ok. yea, that's probably it then. i used the apple AAC, rather than the generic one.
Develop games in your browser. Powerful, performant & highly capable.
I have this problem. You solved it?