Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by tsphillips

I am seeing IE10 console errors like the below:

SCRIPT5022: Failed to load resource: media/sounds/thankyou.*
loader.js, line 91 character 4

Checking the web server logs, thankyou.mp3 is being served up correctly. Checking the IE10 network panel, thankyou.mp3 is being loaded correctly. This is not a problem with one file -- IE10 is throwing errors for every sound file. When I navigate directly to the URL hosting the MP3, the file loads and plays as expected. (All files are being hosted in the same server, in the same domain -- there are no crazy namespace issues.)

Any idea what may be causing this?

To get around what is essentially a crash bug, I have the sound disabled for IE10 users by ignoring any problems due to sound files not loading correctly. Not at all what I prefer, but we need to ship in a week.

Tom

1 decade ago by dominic

I&039;m not sure what's causing this issue and I can't reproduce it here. However, I have seen this before with IE9 and I assume it has something to do with how the webserver serves sound files, sometimes(?) triggering the #error event in IE.

Do you have the game online somewhere? I'd like to take a look.


You could try to just ignore this error event (while still having Sound enabled) and see if the sound files play correctly. In lib/impact/sound.js, line 67 change the false for the loadCallback to true, like so:
loadCallback( path, true, ev );

This will always tell Impact's pre-loader that everything went fine and the source was loaded correctly, despite IE triggering this error event.

Sorry about this all; but there's not much I can do to fix this :/

1 decade ago by SlotGamer

I'm getting this same thing in IE10 and it happens consistently every other time. It works the first, third, fifth time.

The second, fourth, sixth times, it doesn't play my theme music and I eventually get the "channels[0].currentTime = 0;" state error in get: function( path ) in SoundManager that was mentioned in another thread.

Following Dominic's advice , changing to loadCallback( path, true, ev ) makes it not crash but I wish I could find a solution where it plays consistently every time.
Page 1 of 1
« first « previous next › last »