Audio not working in IE9

Discussion and feedback on Construct 2

Post » Fri Jun 01, 2012 12:24 am

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?
B
4
Posts: 49
Reputation: 854

Post » Fri Jun 01, 2012 12:33 am

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';
sound.play();


but this doesn't:

var sound = new Audio;
sound.src = 'http://mcgraw-hill.faceyspacey.com/rocket-blast-3-v13/media.m4a';
sound.play();


I thought IE9 was supporting .m4a as well. Whatsup with that?
B
4
Posts: 49
Reputation: 854

Post » Fri Jun 01, 2012 12:38 am

I guess m4as don't work in IE9:

http://www.wellesley.edu/~kenny/JW-HTML5/audio.html

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.
B
4
Posts: 49
Reputation: 854

Post » Fri Jun 01, 2012 12:42 am

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 ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Jun 01, 2012 8:56 am

i did that and it doesnt work.
B
4
Posts: 49
Reputation: 854

Post » Fri Jun 01, 2012 1:02 pm

IE9 definitely plays .m4a. Visit the URL:
http://mcgraw-hill.faceyspacey.com/rocket-blast-3-v13/media.m4a
It returns 404 not found. So I guess you just didn't upload the audio file?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu Jun 14, 2012 7:23 am

that was the wrong file. Here's the right one:
http://mcgraw-hill.faceyspacey.com/rocket-blast-3-v13/media/arm.m4a

it comes up for download. m4a isnt supported in IE9.

Ashley, try to play the m4a in IE9 here:
http://www.wellesley.edu/~kenny/JW-HTML5/audio.html

B
4
Posts: 49
Reputation: 854

Post » Thu Jun 14, 2012 1:59 pm

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:
http://www.scirra.com/labs/ie9m4a/
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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu Jun 14, 2012 10:43 pm

ok. yea, that's probably it then. i used the apple AAC, rather than the generic one.
B
4
Posts: 49
Reputation: 854

Post » Wed Jan 21, 2015 9:51 pm

Hello faceyspacey.

I have this problem. You solved it?
B
7
S
1
Posts: 24
Reputation: 430

Next

Return to Construct 2 General

Who is online

Users browsing this forum: AstrologicMedia, henriquesv, Silverforce and 9 guests