-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SoundJS not setting up properly on Firefox? #47
Comments
Hi Luke, For a simple test, you might try setting up the PreloadAndPlay example on your server and changing it to load the same createjs min library you are using. If it works, the problem is in the other code. If it does not work, the problem has something to do with the server. Especially if the example works locally. Hopefully that helps. |
I'm not touching either of those, and they are both undefined on the javascript console (even locally, though I didn't expect webkitAudioContext to be defined.) My code really is as simple as the example I posted, but I'll try the PreloadAndPlay and see if that works :) |
The error you mentioned will happen if there is no active Audio plugin. Firefox requires the HTML or Flash plugin - and the HTML plugin will be activated by default. Either your browser is indicating that it can not load HTML audio, or it thinks the plugins were already registered, but there are no plugins available. In any place in your app are you registering audio plugins with SoundJS? |
No, I wasn't. Calling the following worked: Why other browsers work without this line? And thanks for the help! :) |
It seems like the parsing is happening before the built-in plugin registering is happening. A call stack would be really helpful to determine why this is happening. Firebug should be able to give you that. Also, I recommend using this instead: createjs.Sound.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin]); |
The callstack is not very clear to me, but this is it. My createjs is a "beautified" version of the minified one by the way. And adding the WebAudioPlugin before the HTMLAudioPlugin gives the same error as before. |
Ah... Seems to me that WebAudio may be falsely reporting that it works. |
I'm using the following version of CreateJS: http://code.createjs.com/createjs-2013.02.12.min.js
My code runs fine on every browser, except Firefox. For some reason, if I upload the files to the server and run from there I get a "TypeError: g is null". If I run locally it works. Again, I don't have this problem on other browsers, even when the files are on the server.
Trying to find a solution to my problem I realized createjs.Sound.activePlugin is a [WebAudioPlugin] and its capabilities are null (that is the g above) whenever I'm accessing the files from the server.
My code is basically this:
The error is on this function:
The line with error is the if(g[m]...)
My firefox version is 20.0, I'm running it on Mac
The text was updated successfully, but these errors were encountered: