Link to .capx file (required!):
http://
sorry i cant reproduce capx since it is happening on a production file and it is to big and would be to much to post also i cant seem to reproduce on small projects
link to the game is
apps.facebook.com/jumpythefrog
Steps to reproduce:
1. hit the play button login with facebook
2. pick a level
3. start playing
Observed result:
after a couple of minutes the audio stops and sometimes crackles speakers
i get this error
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
linking to these lines of code
switch (this.myapi) {
case API_HTML5:
this.bufferObject = new Audio();
if (api === API_WEBAUDIO && context["createMediaElementSource"])
{
this.bufferObject.addEventListener("canplay", function ()
{
self.mediaSourceNode = context["createMediaElementSource"](self.bufferObject);
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
self.mediaSourceNode["connect"](self.outNode);
});
}
this.bufferObject.autoplay = false; // this is only a source buffer, not an instance
this.bufferObject.preload = "auto";
this.bufferObject.src = src_;
break;
Expected result:
the looping audio to continue playing
Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes
Operating system & service pack:
windows 7
mac osx
Construct 2 version:
r146